MSBuild target for publishing NuGet packages locally and automatically deleting cached copies.
- NuGet 4.0 or higher
- Projects must use the newer SDK-style format
- The
dotnet
tool (part of the .NET SDK) must be on the PATH
Simply add this NuGet package reference to your .csproj file.
<PackageReference Include="LocalNuGet" Version="1.0.*" PrivateAssets="All" />