Details of the ProjectReference Publish property #9056
-
Hi there, wix 4 is amazing for simple installers compared to wix 3. Wonderful work! But I have come upon a wrinkle. This code worked for initial bring up: <ProjectReference Include="..\Path_to\ProjectName.csproj" />
...
<Files Include="$(var.ProjectName.TargetDir)/**/*">
<Exclude Files="Output.exe" />
</Files>
...
<Component>
<File
Id="MainExe"
Source="$(var.ProjectName.TargetDir)\Output.exe" />
</Component> But then I realized I needed the output of my published target. I found an SO article referencing the Publish property on ProjectRefrence. So I add that, and now I get WIX0369 errors about duplicate component guids on the MainExe. Luckily, I found this other discussion about publish whose syntax below moved me past the errors but it does bring up questions. <BindPath Include="$(MSBuildThisFileDirectory)\obj\$(Platform)\$(Configuration)\publish\ProjectName" >
<BindName>BinPublishPath</BindName>
</BindPath>
Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
FYI: We keep discussions open so they are more easily found by others. |
Beta Was this translation helpful? Give feedback.
!(bindpath.ProjectName)
. It does change to match Publish.