Visual Studio 2017 csproj - dotnet pack ProjectReference as exact version
I am trying to get the dotnet package to create exact version references when creating NuGet packages. Let's say I have the following class hierarchy:
api.csproj:
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\api.types\api.types.csproj" />
</ItemGroup>
</ItemGroup>
api.types.csproj has no other dependencies and is just used for wired objects.
I have a custom process that updates the version in all of my csproj files before rebuilding and building. When I run the dotnet package, I would like to be able to control the dependency in api.nupkg so that api.types is the exact version reference. Is there a way to do this?
+3
source to share
No one has answered this question yet
Check out similar questions: