Created
October 15, 2021 07:43
-
-
Save ayrilmaz/9525d2c12249c92445b5c221ee4c08f4 to your computer and use it in GitHub Desktop.
Net Core Add External Dll Reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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