[wix-devs] Building wix v4

Bob Arnson bob at firegiant.com
Fri Sep 9 13:13:30 PDT 2022


I just got the same thing. Rebuild fixed it. Weird.

> -----Original Message-----
> From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of Sean
> Hall via wix-devs
> Sent: Friday, 9 September, 2022 14:42
> To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
> Cc: Sean Hall <r.sean.hall at gmail.com>
> Subject: Re: [wix-devs] Building wix v4
> 
> The readme.md at the root of repo has the current documentation of what's
> required. I also have no idea where the
> Microsoft.Azure.Webjobs.Extensions.dll stuff is coming from.
> 
> I had something similar to this yesterday:
> 
> C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools.Tes
> tSupport\WixBuildTools.TestSupport.csproj
> : error NU1102: Unable to find package WixToolset.Dtf.WindowsInstaller
> with version (>= 4.0.0-preview.1-build.509) [C:\Use
> rs\Blair\source\repos\wixtoolset\wix4\src\internal\internal.sln]
> C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools.Tes
> tSupport\WixBuildTools.TestSupport.csproj
> : error NU1102:   - Found 1 version(s) in build [ Nearest version:
> 4.0.0-preview.1-build.0 ]
> [C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\internal.sln]
> 
> Mine was with the WixToolset.Dtf.Compression.Cab.nupkg, where it was
> built as 4.0.0-preview.1-build.0. I don't know why it had set the version that
> way. After cleaning and doing a new build, it worked fine.
> 
> On Fri, Sep 9, 2022 at 9:53 AM Rob Mensching via wix-devs < wix-
> devs at lists.wixtoolset.org> wrote:
> 
> > Did you run `devbuild.cmd` in the root of the repo?
> >
> > There's no references to ` Microsoft.Azure.WebJobs.Extensions.dll` in
> > the
> > wix4 repo, so that is a complete mystery.
> >
> > -----Original Message-----
> > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of
> > Blair Murri via wix-devs
> > Sent: Thursday, September 8, 2022 10:30 PM
> > To: wix-devs at lists.wixtoolset.org
> > Cc: Blair Murri <osito at live.com>
> > Subject: [wix-devs] Building wix v4
> >
> > Hello, everyone.
> >
> > Is there a list of prereqs anywhere for building v4? So far, here's
> > what I
> > have:
> >
> >
> >   1.  Add a directory containing nuget.exe to your PATH
> >   2.  If you use ssh for your "origin" git remote, make sure your git
> > URL is a real URI: git at github.com:<yourGitHubName>/wix4.git doesn't cut
> it.
> > It instead needs to be ssh://git@github.com/<yourGitHubName>/wix4.git.
> >   3.  Only installing VS 2022 isn't enough.
> >
> > When the build reaches internal, I get the following (one warning then
> > one
> > error):
> >
> > Building internal Debug
> > WARNING: Failed to load
> > C:\Users\Blair\AppData\Local\AzureFunctionsTools\Releases\1.13.2\cli_x
> > 64\Microsoft.Azure.WebJobs
> > .Extensions.dll
> > Could not load file or assembly 'Microsoft.Azure.WebJobs.Host,
> > Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856 ad364e35' or
> > one of its dependencies. The located assembly's manifest definition
> > does not match the assembly reference.
> > (Exception from HRESULT: 0x80131040)
> >
> > Failed to load msbuild Toolset
> >   Could not load file or assembly 'Microsoft.Build, Version=14.0.0.0,
> > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
> > or one of its dependencies. The system cannot find the file specified.
> >
> > I install Microsoft Build Tools 2015 and then I get:
> >
> > Building internal Debug
> > WARNING: Failed to load
> > C:\Users\Blair\AppData\Local\AzureFunctionsTools\Releases\1.13.2\cli_x
> > 64\Microsoft.Azure.WebJobs
> > .Extensions.dll
> > Could not load file or assembly 'Microsoft.Azure.WebJobs.Host,
> > Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856 ad364e35' or
> > one of its dependencies. The located assembly's manifest definition
> > does not match the assembly reference.
> > (Exception from HRESULT: 0x80131040)
> >
> > MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program
> > Files (x86)\MSBuild\14.0\bin'.
> > Restoring NuGet package xunit.core.2.4.1.
> > Restoring NuGet package xunit.abstractions.2.0.3.
> > Restoring NuGet package xunit.assert.2.4.1.
> > Restoring NuGet package GitInfo.2.1.2.
> > Adding package 'xunit.assert.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Adding package 'GitInfo.2.1.2' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Adding package 'xunit.core.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Adding package 'xunit.abstractions.2.0.3' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'xunit.assert.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'xunit.core.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'GitInfo.2.1.2' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Restoring NuGet package xunit.extensibility.core.2.4.1.
> > Restoring NuGet package xunit.runner.msbuild.2.4.1.
> > Added package 'xunit.abstractions.2.0.3' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Restoring NuGet package xunit.extensibility.execution.2.4.1.
> > Restoring NuGet package xunit.runner.visualstudio.2.4.5.
> > Adding package 'xunit.extensibility.execution.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Adding package 'xunit.extensibility.core.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Adding package 'xunit.runner.msbuild.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'xunit.extensibility.execution.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'xunit.extensibility.core.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'xunit.runner.msbuild.2.4.1' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> >   GET
> > https://api.nuget.org/v3-
> flatcontainer/xunit.runner.visualstudio/2.4.5/xunit.runner.visualstudio.2.4.5
> .nupkg
> >   OK
> > https://api.nuget.org/v3-flatcontainer/xunit.runner.visualstudio/2.4.5
> > /xunit.runner.visualstudio.2.4.5.nupkg
> > 11ms Installing xunit.runner.visualstudio 2.4.5.
> > Adding package 'xunit.runner.visualstudio.2.4.5' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> > Added package 'xunit.runner.visualstudio.2.4.5' to folder
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\packages'
> >
> > NuGet Config files used:
> >     C:\Users\Blair\source\repos\wixtoolset\wix4\NuGet.Config
> >     C:\Users\Blair\AppData\Roaming\NuGet\NuGet.Config
> >
> > Feeds used:
> >     C:\Users\Blair\.nuget\packages\
> >     https://api.nuget.org/v3/index.json
> >     C:\Users\Blair\source\repos\wixtoolset\wix4\build\artifacts
> >
> > Installed:
> >     8 package(s) to packages.config projects Some command line
> > switches were read from the auto-response file "MSBuild.rsp". To
> > disable this file, use the "-noAutoRe sponse" switch.
> > C:\Program Files\Microsoft Visual
> > Studio\2022\Community\MSBuild\Current\Bin\amd64\msbuild.exe -
> nologo
> > -bl:..\..\build\lo gs\internal_build.binlog -m -nr:false
> > -p:Configuration=Debug -t:Pack -v:m -warnaserror
> > WixBuildTools.TestSupport\WixBuil dTools.TestSupport.csproj C:\Program
> > Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.Pack
> > ageDependencyResolution.targets(267,5)
> > : error NETSDK1004: Assets file
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\build\internal\obj\WixBui
> > ldTools.TestSuppo rt\project.assets.json' not found. Run a NuGet
> > package restore to generate this file.
> > [C:\Users\Blair\source\repos\wixt
> > oolset\wix4\src\internal\WixBuildTools.TestSupport\WixBuildTools.TestS
> > upport.csproj]
> > C:\Program
> > Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.Pack
> > ageDependencyResolution.targets(267,5)
> > : error NETSDK1004: Assets file
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\build\internal\obj\WixBui
> > ldTools.TestSuppo rt\project.assets.json' not found. Run a NuGet
> > package restore to generate this file.
> > [C:\Users\Blair\source\repos\wixt
> > oolset\wix4\src\internal\WixBuildTools.TestSupport\WixBuildTools.TestS
> > upport.csproj]
> >
> > So, being the smart-ass person I occasionally can be, I descend into
> > src\internal and run dotnet restore which produces:
> >
> > C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal>dotnet
> > restore
> > C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools
> > .TestSupport.Native\WixBuildTools.TestSupport.Nat
> > ive.vcxproj : warning NU1503: Skipping restore for project
> > 'C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\Wi
> > xBuildTools.TestSupport.Native\WixBuildTools.TestSupport.Native.vcxproj'.
> > The project file may be invalid or missing ta rgets required for restore.
> > [C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\internal.sln]
> >   Determining projects to restore...
> >   The project
> >
> C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools.Tes
> tSupport\WixBuildTools.TestSupp
> >   ort.csproj is using CentralPackageVersionManagement, a NuGet preview
> > feature.
> > C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools
> > .TestSupport\WixBuildTools.TestSupport.csproj
> > : e rror NU1102: Unable to find package
> > WixToolset.Dtf.WindowsInstaller with version (>=
> > 4.0.0-preview.1-build.509) [C:\Use
> > rs\Blair\source\repos\wixtoolset\wix4\src\internal\internal.sln]
> > C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools
> > .TestSupport\WixBuildTools.TestSupport.csproj
> > : e
> > rror NU1102:   - Found 1 version(s) in build [ Nearest version:
> > 4.0.0-preview.1-build.0 ] [C:\Users\Blair\source\repos\
> > wixtoolset\wix4\src\internal\internal.sln]
> > C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools
> > .TestSupport\WixBuildTools.TestSupport.csproj
> > : e
> > rror NU1102:   - Found 0 version(s) in C:\Program
> > Files\dotnet\library-packs [C:\Users\Blair\source\repos\wixtoolset\wi
> > x4\src\internal\internal.sln]
> > C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools
> > .TestSupport\WixBuildTools.TestSupport.csproj
> > : e
> > rror NU1102:   - Found 0 version(s) in nuget
> > [C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\internal.sln]
> >   Failed to restore
> >
> C:\Users\Blair\source\repos\wixtoolset\wix4\src\internal\WixBuildTools.Tes
> tSupport\WixBuildTools.Te
> >   stSupport.csproj (in 3.51 sec).
> >
> > Any ideas? Something else I should know about?
> >
> > Blair
> >
> ________________________________________________________________
> ____
> > WiX Toolset Developer Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
> ________________________________________________________________
> ____
> > WiX Toolset Developer Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
> ________________________________________________________________
> ____
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/


More information about the wix-devs mailing list