Document NuGet bug in README.md

This commit is contained in:
Rob Richardson 2016-11-10 10:42:51 -07:00
Родитель 50aef01684
Коммит e5b7c63f47
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,17 @@ This is a very simple console application that allows the user to invoke MSBuild
You can create a nupkg out of this project by simply using the `dotnet pack` command.
### NuGet bug
There's a bug in NuGet that doesn't include the `*.runtimeconfig.json` in the nupkg. For your project, you'll need to copy these lines from dotnet-packer.csproj to your csproj file, changing `dotnet-packer.runtimeconfig.json` to match your project name.
``` <ItemGroup>
<Content Include="$(OutputPath)\dotnet-packer.runtimeconfig.json">
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
</ItemGroup>```
## A short FAQ
### Is the tool neccessary if I just want to create a target?