Skip to content

Commit 49650e3

Browse files
authored
Merge pull request #10 from gfoidl/patch-1
Added NuGet-section to ReadMe
2 parents dbe33d5 + 87abaa1 commit 49650e3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

readme.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,25 @@ namespace Sample
2929

3030
- Generates UTF-8 binary data from string literals (UTF-16).
3131
- The UTF-8 data is optimized to avoid allocation. see: [C# ReadOnlySpan and static data](https://vcsjones.dev/2019/02/01/csharp-readonly-span-bytes-static/)
32+
33+
## NuGet
34+
35+
[![NuGet](https://img.shields.io/nuget/v/StringLiteralGenerator?style=flat-square)](https://www.nuget.org/packages/StringLiteralGenerator)
36+
37+
For versions earlier than .NET 5 SDK RC2 you may also need to add a reference to `Microsoft.Net.Compilers.Toolset`.
38+
So the `csproj` may look like this:
39+
```xml
40+
<Project Sdk="Microsoft.NET.Sdk">
41+
42+
<PropertyGroup>
43+
<OutputType>Exe</OutputType>
44+
<TargetFramework>net5.0</TargetFramework>
45+
</PropertyGroup>
46+
47+
<ItemGroup>
48+
<PackageReference Include="StringLiteralGenerator" Version="1.0.0-preiew" />
49+
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.8.0-4.final" PrivateAssets="all" />
50+
</ItemGroup>
51+
52+
</Project>
53+
```

0 commit comments

Comments
 (0)