[wix-devs] Error in build

Sean Hall r.sean.hall at gmail.com
Thu Jan 20 18:52:18 PST 2022


>From what I understand, the files src\Directory.Packages.props and
src\global.json is generated once. They are the stateful parts of the
build, and deleted as part of clean. The versions in those files are
populated by the git height. When building any of the binaries or Nuget
packages, the version is calculated the same way. But for those, the
version is always recalculated. I don't know how those versions can get out
of sync when you're doing a build directly after a clean, but I would
expect them to get out of sync after committing.

I think I've seen this before, but it was always a warning. I didn't enable
turning warnings into errors for the extensions, so maybe a preview version
is turning those warnings into errors? I don't see how fixing the SDK
version in the global.json would help, or why putting it in the root
directory would help.

On Thu, Jan 20, 2022 at 3:47 PM Mark Stega via wix-devs <
wix-devs at lists.wixtoolset.org> wrote:

> 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
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-devs mailing list