v4 HarvestDirectory and preprocessor variable #7215
Replies: 4 comments 4 replies
-
Use the MSBuild |
Beta Was this translation helpful? Give feedback.
-
So, I am getting different results from MSBuild that I am from Visual Studio, though neither work. In Visual Studio, I am getting the error in my original post. I ran MSBuild and it seems to be ignoring my CompilerAdditionalOptions in the wixproj. Text log attached. Is there something else I need to add to the msbuild command line to pass that variable to WIX? |
Beta Was this translation helpful? Give feedback.
-
I honestly don't use MSBuild that much - usually Visual Studio or dotnet publish. I just tried this command line and got the same error: msbuild -r /p:Configuration=DEBUG /p:PlatformTarget=x64 Msi.wixproj Now that VS is working, I am good, but since v4 is in testing, I was not sure if this was a bug or just my unfamiliarity with MSBUILD... |
Beta Was this translation helpful? Give feedback.
-
Ah - got it. that makes sense. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been unable to get HarvestDirectory working with a preprocessor variable. I have used wix v3 a lot, but this is my first attempt at v4.
Here is my wixproj (mostly copied from the docs)
However, I am getting this error:
wix.exe : error WIX0288: The variable 'SourceFolder' with value '<my path>' was previously declared with value '<my path>'.
In Visual studio in the properties of the wixproj, I have set the Additional build parameters to have the -d... shown above in the wixproj.
Any help would be appreciated. Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions