You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've no clue how MSBuild targets work, but I somehow managed to get some code that ended up doing part of what I wanted, but when I introduced GitInfo.txt, problems started occuring.
This works correctly and packs nuget packages with versions "0.0.0." when ran with MSBuild.exe \t:pack, but when I introduced separate GitInfo.txt files with versions 1.0.0, the build fails, because the packing created a nuget versioned as "1.0.0", whereas the file I'm looking to copy is "1.0.0.0" - error.
Could someone please help me out? I know I can supply a version by using /p:PackageVersion=X.X.X.X but I don't know how to make that happen as part of my .csproj file.
EDIT: Seems the issue is coming from the fact that $(GitCommits) is 0, and because I'm sending 1.0.0.0 as the version, it gets trimmed to 1.0.0?
The text was updated successfully, but these errors were encountered:
Greetings all.
I've no clue how MSBuild targets work, but I somehow managed to get some code that ended up doing part of what I wanted, but when I introduced GitInfo.txt, problems started occuring.
My .csproj file contains the following 2 targets:
This works correctly and packs nuget packages with versions "0.0.0." when ran with MSBuild.exe \t:pack, but when I introduced separate
GitInfo.txt
files with versions1.0.0
, the build fails, because the packing created a nuget versioned as "1.0.0", whereas the file I'm looking to copy is "1.0.0.0" - error.Could someone please help me out? I know I can supply a version by using /p:PackageVersion=X.X.X.X but I don't know how to make that happen as part of my .csproj file.
EDIT: Seems the issue is coming from the fact that $(GitCommits) is 0, and because I'm sending 1.0.0.0 as the version, it gets trimmed to 1.0.0?
The text was updated successfully, but these errors were encountered: