Issue accessing GitInfo variables for Multi-targeted project in MSBuild when packing into nuget #221
Unanswered
kikaragyozov
asked this question in
Q&A
Replies: 1 comment
-
Multitargeting build does not have a See https://github.com/dotnet/msbuild/blob/main/src/Tasks/Microsoft.Common.CrossTargeting.targets and the NuGet targets at https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.targets (which are imported for both single and multi-targeting builds). You can update the target as follows to run in both scenarios: <Target Name="PopulateNETSDKAssemblyVersion" BeforeTargets="CoreCompile;GenerateNuspec;GetPackageContents" DependsOnTargets="GitVersion">
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The project targets the following frameworks:
I have the following target defined in my .csproj file:
I'm trying to build & pack a nuget package, but it always ends up with the same version of 1.0.0.
I'm using the following command to try and build my package:
Beta Was this translation helpful? Give feedback.
All reactions