Skip to content

Instantly share code, notes, and snippets.

@ayrilmaz
Created October 15, 2021 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayrilmaz/9525d2c12249c92445b5c221ee4c08f4 to your computer and use it in GitHub Desktop.
Save ayrilmaz/9525d2c12249c92445b5c221ee4c08f4 to your computer and use it in GitHub Desktop.
Net Core Add External Dll Reference
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="Libext">
<HintPath>Libext.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="dll\Libext.dll" Link="Libext.dll" CopyToOutputDirectory="PreserveNewest">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
namespace LibExt
{
public static class Str
{
public static string Capital(this string text)
{
return text[0].ToString().ToUpper() + text.Substring(1).ToLower();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment