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
Which version of Visual Studio are you building with (if any)?
MSBuild version 17.6.3+07e294721 for .NET Framework
Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?
N/A (Building in Visual Studio works because Dependencies are restored implicitly)
Which version of .NET are you building with?
.NET Framework 4.8
If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?
N/A
Describe the problem and the steps to reproduce it.
We build our Setup projects by calling the MSBuild task from a "master" MSBuild file. The Build target is defined like this:
<!-- alternative A: -->
<TargetName="BuildSetup">
<MSBuildProjects="@(SetupProjects)"Targets="Restore;Build"Properties="$(SetupProperties)"/>
</Target>
<!-- alternative B: -->
<TargetName="BuildSetup">
<MSBuildProjects="@(SetupProjects)"Targets="Restore"Properties="$(SetupProperties)"/>
<MSBuildProjects="@(SetupProjects)"Targets="Build"Properties="$(SetupProperties)"/>
</Target>
Neither of these two alternatives works on the first try. The whole build has to be started a second time for it to succeed. In the first build, WiX extensions and Heat are not included, causing the build to fail.
What is especially weird is that two separate builds with "Restore" first and then "Build" DO work (e.g. by commenting out one of the two MSBuild calls each time in alternative B).
@(SetupProjects) contains a wixlib with harvesting (using the workaround from #3496) and an MSI package. The errors occur during linking the package because of missing references from the extensions, but neither of the two projects include the extensions (or the harvesting part) during the first build.
Describe the behavior you expected and how it differed from the actual behavior.
Building via MSBuild should work immediately from a clean working directory.
The text was updated successfully, but these errors were encountered:
We are now using a separate Restore target in our master build file that calls the MSBuild task with the Restore target on the setup projects and use the -Restore flag when calling MSBuild in CI.
This is needed because the MSBuild task doesn't support that flag yet (see dotnet/msbuild#2811).
We build our Setup projects by calling the MSBuild task from a "master" MSBuild file. The Build target is defined like this:
Neither of these two alternatives works on the first try. The whole build has to be started a second time for it to succeed. In the first build, WiX extensions and Heat are not included, causing the build to fail.
What is especially weird is that two separate builds with "Restore" first and then "Build" DO work (e.g. by commenting out one of the two MSBuild calls each time in alternative B).
@(SetupProjects)
contains a wixlib with harvesting (using the workaround from #3496) and an MSI package. The errors occur during linking the package because of missing references from the extensions, but neither of the two projects include the extensions (or the harvesting part) during the first build.Building via MSBuild should work immediately from a clean working directory.
The text was updated successfully, but these errors were encountered: