[wix-devs] Error in build

Mark Stega mark at optimiumhealth.com
Thu Jan 20 13:47:28 PST 2022


I had an update to VS2022 17.1 and the Wix4 build stopped working. I added a root level global.json, but was advised to post the error first.

>From a VS2022 17.0.5 developer command prompt (and after removing the global.json) I did a 'build clean' followed by a 'build'.

The build worked.

So I did another 'build clean' followed by another 'build'.

This failed (I marked the errors with >>> below hopefully with enough context:

...
Test run for C:\Solutions\TemporarySolutions\wix4\build\wix\Debug\net472\WixToolsetTest.Sdk.dll (.NETFramework,Version=v4.7.2)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
[xUnit.net 00:02:26.07]     WixToolsetTest.Sdk.MsbuildFixture.ReportsInnerExceptionForUnexpectedExceptions [SKIP]
  Skipped WixToolsetTest.Sdk.MsbuildFixture.ReportsInnerExceptionForUnexpectedExceptions [1 ms]
Results File: C:\Solutions\TemporarySolutions\wix4\src\wix\..\..\build\logs\TestResults\WixToolsetTest.Sdk.trx

Passed!  - Failed:     0, Passed:    57, Skipped:     1, Total:    58, Duration: 2 m 19 s - WixToolsetTest.Sdk.dll (net472)
Some command line switches were read from the auto-response file "MSBuild.rsp". To disable this file, use the "-noAutoResponse" switch.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\msbuild.exe -nologo -bl:..\..\build\logs\wix_pack.binlog -m -nr:false -p:Configuration=Debug -v:m -warnaserror pack_t.proj
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Core.4.0.0-preview.1-build.189.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\wix.4.0.0-preview.1-build.189.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Core.Native.4.0.0-preview.1-build.189.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Core.ExtensionCache.4.0.0-preview.1-build.189
  .nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Core.Burn.4.0.0-preview.1-build.189.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Core.WindowsInstaller.4.0.0-preview.1-build.1
  89.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Converters.4.0.0-preview.1-build.189.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Core.TestPackage.4.0.0-preview.1-build.189.nu
  pkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Converters.Symbolizer.4.0.0-preview.1-build.1
  89.nupkg'.
  Successfully created package 'C:\Solutions\TemporarySolutions\wix4\build\artifacts\WixToolset.Sdk.4.0.0-preview.1-build.189.nupkg'.
ext build Debug
Building ext\Util Debug using
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

>>> C:\Solutions\TemporarySolutions\wix4\src\ext\Util\wixlib\util.wixproj : error : Unable to find package WixToolset.Sdk with version (= 4.0.0-p
review.1-build.190)
C:\Solutions\TemporarySolutions\wix4\src\ext\Util\wixlib\util.wixproj : error :   - Found 1 version(s) in build [ Nearest version: 4.0.0-prev
iew.1-build.189 ]

>>> C:\Solutions\TemporarySolutions\wix4\src\ext\Util\wixlib\util.wixproj : error :   - Found 0 version(s) in nuget

>>> C:\Solutions\TemporarySolutions\wix4\src\ext\Util\wixlib\util.wixproj : error : C:\Program Files\dotnet\sdk\6.0.101\Sdks\WixToolset.Sdk\Sdk n
ot found. Check that a recent enough .NET SDK is installed and/or increase the version specified in global.json.
C:\Solutions\TemporarySolutions\wix4\src\ext\Util\wixlib\util.wixproj : warning NU1503: Skipping restore for project 'C:\Solutions\TemporaryS
olutions\wix4\src\ext\Util\wixlib\util.wixproj'. The project file may be invalid or missing targets required for restore. [C:\Solutions\Tempo
rarySolutions\wix4\src\ext\Util\Util.wixext.sln]
...



I ran 5 builds, 2 failed and 3 succeeded, #6 is underway

Build #1 - OK
Build #2 - Failed
Build #3 - OK
Build #4 - OK
Build #5 - Failed


More information about the wix-devs mailing list