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 have searched issues to ensure it has not already been reported
GitVersion package
GitVersion.MsBuild
GitVersion version
6.0.0-rc.1
Operating system
Windows
What are you seeing?
We have GitVersion 5.* working with WiX 3.* for quite a while already. Now we are migrating to WiX 5, and one of the things that is blocking this migration is GitVersion.
It looks like a lot of changed on the WiX side, i.e. switch to SDK projects, yet DefineConstants property used by GitVersion for integration is still there. I tried a lot of options to get it work. 5.12.0 doesn't like language which is now set to "wix". It looks like it was handled in 6.*, however when run from Visual Studio GitVersion calculates DisableGitVersionTask to true (because MSBuildRuntimeType is not "Core"). When run from console with "dotnet build", it crashes attempting to launch gitversion.dll, because $(TargetFramework) is "native" in the context of WiX, and there is no folder "native" in the GitVersion.MsBuild package.
What is expected?
After GitVersion.MsBuild package added to WiX 5.0 project, and GenerateGitVersionWixDefines is set to true, GitVersion_* variables are available from WiX code.
On a sidenote: it looks like besides dropping support to .net 4.8 you are also dropping support of Visual Studio in 6.0 altogether. Are you guys sure about this decision? It's certainly no-go for my team.
Prerequisites
GitVersion package
GitVersion.MsBuild
GitVersion version
6.0.0-rc.1
Operating system
Windows
What are you seeing?
We have GitVersion 5.* working with WiX 3.* for quite a while already. Now we are migrating to WiX 5, and one of the things that is blocking this migration is GitVersion.
It looks like a lot of changed on the WiX side, i.e. switch to SDK projects, yet DefineConstants property used by GitVersion for integration is still there. I tried a lot of options to get it work. 5.12.0 doesn't like language which is now set to "wix". It looks like it was handled in 6.*, however when run from Visual Studio GitVersion calculates DisableGitVersionTask to true (because MSBuildRuntimeType is not "Core"). When run from console with "dotnet build", it crashes attempting to launch gitversion.dll, because $(TargetFramework) is "native" in the context of WiX, and there is no folder "native" in the GitVersion.MsBuild package.
What is expected?
After GitVersion.MsBuild package added to WiX 5.0 project, and GenerateGitVersionWixDefines is set to true, GitVersion_* variables are available from WiX code.
Steps to Reproduce
Alternatively, you can clone this repo and go straight to step 5: https://github.com/professor-k/wix_gv
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
The text was updated successfully, but these errors were encountered: