[wix-devs] wix3 build errors

Rob Mensching rob at firegiant.com
Sun Jan 6 09:43:34 PST 2019


Ahh, interesting. I would not have guessed that causes problems. We should ensure all the projects have the ToolsVersion set to avoid future build issues.

Note: 5490 is slated to go into WiX v4. That means we won't be taking this fix into WiX v3.x so you should work in the wix4 repo (since the harvesting work isn't extracted into it's own repo yet).


-----Original Message-----
From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of David Ing via wix-devs
Sent: Saturday, January 5, 2019 5:17 PM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Cc: David Ing <ding at panopto.com>
Subject: Re: [wix-devs] wix3 build errors

The solution was to patch
`src/ext/DifxAppExtension/wixlib/DIFxAppExtension.wixproj` as follows.

```
-<Project DefaultTargets="Build" xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" xmlns="
http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> ```

Now I will be able to schedule some work for myself (to begin in a few weeks).  I will fork the wix3 repo so I can build this feature:
https://github.com/wixtoolset/issues/issues/5490

I will email this list when the work is completed.

Thanks for your help everyone.




On Sat, Jan 5, 2019 at 2:03 PM Rob Mensching <rob at firegiant.com> wrote:

> You’ll probably need to dig into that part of the build on your machine.
> It works for most others so something is different in your situation.
>
>
>
>
>
> *From:* David Ing <ding at panopto.com>
> *Sent:* Saturday, January 5, 2019 11:57 AM
> *To:* Rob Mensching <rob at firegiant.com>
> *Cc:* WiX Toolset Developer Mailing List 
> <wix-devs at lists.wixtoolset.org>
> *Subject:* Re: [wix-devs] wix3 build errors
>
>
>
> I tried Rob's suggestion of git-cleaning my folder and then re-running 
> the build from a normal (non-elevated) prompt ... but I got the same 5 
> errors that started this email thread.
>
>
>
> So I went back to the elevated prompt and rebuilt everything and I'm 
> back to these errors:
>
>   c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\Extensions.wxs(26):
> error LGHT0103: The system cannot find the file 
> '!(bindpath.x86)\difxapp_x86.wixlib'.
> [c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj]
>
>   c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\Extensions.wxs(27):
> error LGHT0103: The system cannot find the file 
> '!(bindpath.x64)\difxapp_x64.wixlib'.
> [c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj]
>
>
>
> I tried building *wix3\src\ext\DifxAppxExtension\difxapp.proj* 
> directly and the build succeeded, but the files were not found 
> anywhere on my
> system:  difxapp_x86.wixlib, difxapp_x64.wixlib
>
>
>
> So my question is:  How can the difxapp build succeed without 
> depositing the relevant files?  I'm attaching the full build output for that project.
> The build command was:  *msbuild difxapp.proj -maxcpucount:1
> /p:StopOnFirstFailure=true*
>
>
>
>
>
>
>
> On Fri, Jan 4, 2019 at 9:31 PM Rob Mensching <rob at firegiant.com> wrote:
>
> 1. If you built elevated once, you may have created the build folder 
> elevated and prevented your later builds from working (and would 
> explain the access denned). Do a "git clean -fdx" elevated from the 
> root then try building non-elevated.
>
> 2. For some reason your build is not building 
> wix3\src\ext\DifxAppxExtension\. Try building that directly. That 
> creates the missing difxapp*.wixlibs.
>
>
> -----Original Message-----
> From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of 
> David Ing via wix-devs
> Sent: Friday, January 4, 2019 9:24 PM
> To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
> Cc: David Ing <ding at panopto.com>
> Subject: Re: [wix-devs] wix3 build errors
>
> I was able to get rid of 3 build errors by running in an elevated prompt.
> I have installed  VS 2010, 2012, 2013, 2015, and 2017.
>
> My command line (from VS2017 elevated prompt) is:
>
> msbuild wix.proj -maxcpucount:1 /p:StopOnFirstFailure=true
>
>
> I have two remaining build errors.  How might I fix them?
>
> "c:\dev\github\wixtoolset\wix3\wix.proj" (default target) (1) -> 
> "c:\dev\github\wixtoolset\wix3\src\setup\setup.proj" (default target) 
> (153)
> ->
> "c:\dev\github\wixtoolset\wix3\src\setup\Bundle\Bundle.wixproj" 
> (default
> target) (154) ->
> "c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj" 
> (default
> target) (155) ->
> (Link target) ->
>   c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\Extensions.wxs(26): 
> error
> LGHT0103: The system cannot find the file 
> '!(bindpath.x86)\difxapp_x86.wixlib'.
> [c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj]
>   c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\Extensions.wxs(27): 
> error
> LGHT0103: The system cannot find the file 
> '!(bindpath.x64)\difxapp_x64.wixlib'.
> [c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj]
>
>     0 Warning(s)
>     2 Error(s)
>
>
>
> On Fri, Jan 4, 2019 at 7:25 PM Christopher Painter via wix-devs < 
> wix-devs at lists.wixtoolset.org> wrote:
>
> > I frequently see WiX msbuild  hangs in pipelines.  I use 32bit msbuild.
> >  I tend to add /p:RunWiXToolsOutOfProc=true by habit now to avoid 
> > that.  I just took it out and it built fine without it.
> >
> > I just built a new hyper-v machine with an 8 core 5.0ghz  i9-9900k, 
> > 64gb of RAM and dual  1TB Samsung 970 Pro NVME  drives and I have 
> > gigabit fiber to the house.  Creating a build server  VM and 
> > installing VS
> > 2010/12/13/15/17  went by surprisingly quick.
> >
> >
> > ________________________________
> > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> on behalf of 
> > Rob Mensching via wix-devs <wix-devs at lists.wixtoolset.org>
> > Sent: Friday, January 4, 2019 9:13 PM
> > To: WiX Toolset Developer Mailing List
> > Cc: Rob Mensching
> > Subject: Re: [wix-devs] wix3 build errors
> >
> > All those VS copies are needed because of the OFFICIAL_WIX_BUILD. If 
> > you don't need an official build (and you don't to do dev work) 
> > don't set that.  The RunWixToolsOutOfProc shouldn't be necessary 
> > either (unless you are using 64-bit MSBuild, but most people don't do that).
> >
> > You're in for a whole lot more work trying to do an official build.
> >
> > -----Original Message-----
> > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of 
> > David Ing via wix-devs
> > Sent: Friday, January 4, 2019 7:02 PM
> > To: WiX Toolset Developer Mailing List 
> > <wix-devs at lists.wixtoolset.org>
> > Cc: David Ing <ding at panopto.com>
> > Subject: Re: [wix-devs] wix3 build errors
> >
> > Thanks for all your suggestions.
> >
> > I had built `OneTimeWixBuidInitialization.proj` from an elevated 
> > prompt prior to sending the email.
> >
> > Threading wasn't the issue because I still had the error upon 
> > running `msbuild wix.proj -maxcpucount:1`.
> >
> > Christopher Painter pasted some YML which unfortunately was garbled 
> > (newlines were removed), but I was able to determine some 
> > command-line arguments to add to my call.
> >
> > msbuild wix.proj -maxcpucount:1 /p:RunWixToolsOutOfProc=true 
> > /p:StopOnFirstFailure=true /p:OFFICIAL_WIX_BUILD=C:\wixsn\wix.snk
> >
> >
> > This produced a new build error which stated that I must install VS 
> > 2010, 2012, 2013, 2015, and 2017 (also per Christopher's suggestion).
> > I am still installing the versions that I did not have beforehand 
> > (2010, 2012, 2013) so I can try again.  I will post an update when I
> learn more.
> >
> > BTW ... you all should consider switching this email list over to 
> > nabble ... The gstreamer group switched 6 months ago (
> > http://gstreamer-devel.966125.n4.nabble.com/) and it is SOOOOOOO nice.
> > I think it is free.
> > GStreamer-devel | Mailing List Archive< 
> > http://gstreamer-devel.966125.n4.nabble.com/>
> > gstreamer-devel.966125.n4.nabble.com
> > GStreamer-devel forum and mailing list archive. GStreamer mailing 
> > list, where development discussions occur. Ask here if you have 
> > problems with GStreamer. Please submit patches and report bugs in...
> >
> >
> >
> >
> > On Fri, Jan 4, 2019 at 6:53 PM Blair Murri via wix-devs < 
> > wix-devs at lists.wixtoolset.org> wrote:
> >
> > > And OneTimeWixBuidInitialization.proj needs to be built elevated.
> > > Nothing else requires elevation, for interactive login sessions
> > >
> > > Get Outlook for Android<https://aka.ms/ghei36>
> > >
> > > ________________________________
> > > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> on behalf 
> > > of Rob Mensching via wix-devs <wix-devs at lists.wixtoolset.org>
> > > Sent: Friday, January 4, 2019 3:56:04 PM
> > > To: WiX Toolset Developer Mailing List
> > > Cc: Rob Mensching
> > > Subject: Re: [wix-devs] wix3 build errors
> > >
> > > OneTimeWixBuidInitialization.proj is necessary (as documented) but 
> > > you don't need the full VS matrix unless you want to do an 
> > > official build, which isn't necessary in most developer scenarios.
> > >
> > >
> > > -----Original Message-----
> > > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf 
> > > Of Christopher Painter via wix-devs
> > > Sent: Friday, January 4, 2019 3:24 PM
> > > To: WiX Toolset Developer Mailing List 
> > > <wix-devs at lists.wixtoolset.org>
> > > Cc: Christopher Painter <chrpai at iswix.com>
> > > Subject: Re: [wix-devs] wix3 build errors
> > >
> > > You need to run the OneTimeWixBuildInitialization.proj build once.
> > > You'll also need a very long list of stuff installed to build 
> > > everything from end to end. It's something like VS2010, 2012, 
> > > 2013,
> > > 2015
> > and 2017.
> > >
> > >
> > > Here's the Azure DevOps pipeline YAML that builds WiX3.
> > >
> > >
> > > resources: - repo: self clean: true queue: name: Default demands:
> > > msbuild
> > > steps: - task: MSBuild at 1 displayName: 'Build solution 
> > > tools/OneTimeWixBuildInitialization.proj' inputs: solution:
> > > tools/OneTimeWixBuildInitialization.proj - task: MSBuild at 1
> displayName:
> > > 'Build solution wix.proj' inputs: solution: wix.proj msbuildVersion:
> > > 15.0
> > > configuration: Release msbuildArguments:
> > > '/p:RunWixToolsOutOfProc=true /p:StopOnFirstFailure=true 
> > > /p:OFFICIAL_WIX_BUILD=C:\wixsn\wix.snk
> > > /p:VS2017Path="C:\Program Files (x86)\Microsoft Visual 
> > > Studio\2017\Professional\Common7\IDE"' - task: CopyFiles at 2
> displayName:
> > > 'Copy Files to: $(build.artifactstagingdirectory)' inputs:
> SourceFolder:
> > > '$(system.defaultworkingdirectory)' Contents:
> 'build\ship\x86\wix3*.exe'
> > > TargetFolder: '$(build.artifactstagingdirectory)' flattenFolders:
> > > true
> > > -
> > > task: PublishBuildArtifacts at 1 displayName: 'Publish Artifact: drop'
> > > inputs: PathtoPublish: '$(build.artifactstagingdirectory)'
> > >
> > >
> > > ________________________________
> > > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> on behalf 
> > > of David Ing via wix-devs <wix-devs at lists.wixtoolset.org>
> > > Sent: Friday, January 4, 2019 5:11 PM
> > > To: wix-devs at lists.wixtoolset.org
> > > Cc: David Ing
> > > Subject: [wix-devs] wix3 build errors
> > >
> > > I am new to wix3 and I am having a problem building with msbuild 
> > > from my VS
> > > 2017 Developer command prompt.  Please help me get past the build
> error.
> > >
> > > I tried searching the archive for this mailing list and there is 
> > > some kind of ht://Dig error ... so I apologize if this question 
> > > has already been answered.
> > >
> > > To build I cloned wix3  `git clone 
> > > https://github.com/wixtoolset/wix3.git
> > > [https://avatars1.githubusercontent.com/u/4491243?s=400&v=4]<
> > > https://github.com/wixtoolset/wix3.git>
> > >
> > > wixtoolset/wix3<https://github.com/wixtoolset/wix3.git>
> > > github.com
> > > WiX Toolset v3.x. Contribute to wixtoolset/wix3 development by 
> > > creating an account on GitHub.
> > >
> > >
> > >
> > > -b wix3111` and then I executed `msbuild wix.proj`.
> > >
> > > Here is the bottom of my build output which sumarizes the build
> failures.
> > >
> > > --------------------------------------------
> > > Done Building Project
> > > "c:\dev\github\wixtoolset\wix3\test\src\WixTests\WixTests.csproj"
> > > (default
> > > targets) -- FAILED.
> > >
> > > Done Building Project
> > > "c:\dev\github\wixtoolset\wix3\test\src\WixTests\WixTests.csproj"
> > > (default
> > > targets) -- FAILED.
> > >
> > > Done Building Project "c:\dev\github\wixtoolset\wix3\test\test.proj"
> > > (default targets) -- FAILED.
> > >
> > > Done Building Project "c:\dev\github\wixtoolset\wix3\wix.proj"
> > > (default
> > > targets) -- FAILED.
> > >
> > >
> > > Build FAILED.
> > >
> > > "c:\dev\github\wixtoolset\wix3\wix.proj" (default target) (1) -> 
> > > "c:\dev\github\wixtoolset\wix3\test\test.proj" (default target)
> > > (163)
> > > -> "c:\dev\github\wixtoolset\wix3\test\src\WixTests\WixTests.csproj"
> > > (default
> > > target) (170) ->
> > > (ResolveComReferences target) ->
> > >   C:\Program Files (x86)\Microsoft Visual
> > >
> > >
> >
> Studio\2017\Professional\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2729,5):
> > > warning MSB3290: Failed to create the wrapper assembly for type 
> > > library "IWshRuntimeLibrary". Access is denied. (Exception from
> > > HRESULT: 0x80070005
> > > (E_ACCESSDENIED))
> > > [c:\dev\github\wixtoolset\wix3\test\src\WixTests\WixTests.csproj]
> > >
> > >
> > > "c:\dev\github\wixtoolset\wix3\wix.proj" (default target) (1) -> 
> > > "c:\dev\github\wixtoolset\wix3\src\setup\setup.proj" (default
> > > target)
> > > (152)
> > > ->
> > > "c:\dev\github\wixtoolset\wix3\src\setup\Bundle\Bundle.wixproj"
> > > (default
> > > target) (153) ->
> > > "c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj"
> > > (default
> > > target) (154) ->
> > > (Link target) ->
> > >   c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\Extensions.wxs(26):
> > > error
> > > LGHT0103: The system cannot find the file 
> > > '!(bindpath.x86)\difxapp_x86.wixlib'.
> > > [c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj]
> > >   c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\Extensions.wxs(27):
> > > error
> > > LGHT0103: The system cannot find the file 
> > > '!(bindpath.x64)\difxapp_x64.wixlib'.
> > > [c:\dev\github\wixtoolset\wix3\src\setup\CoreMsi\CoreMsi.wixproj]
> > >
> > >
> > > "c:\dev\github\wixtoolset\wix3\wix.proj" (default target) (1) -> 
> > > "c:\dev\github\wixtoolset\wix3\test\test.proj" (default target)
> > > (163)
> > > ->
> >
> "c:\dev\github\wixtoolset\wix3\test\src\UnitTests\Burn\BurnUnitTest.vcxproj"
> > > (default target) (165) ->
> > >   LINK : fatal error LNK1256: ALINK operation failed (80040436) :
> > > Error signing assembly -- Access is denied.
> > >
> > > [c:\dev\github\wixtoolset\wix3\test\src\UnitTests\Burn\BurnUnitTest.
> > > vc
> > > xproj]
> > >
> > >
> > > "c:\dev\github\wixtoolset\wix3\wix.proj" (default target) (1) -> 
> > > "c:\dev\github\wixtoolset\wix3\test\test.proj" (default target)
> > > (163)
> > > ->
> >
> "c:\dev\github\wixtoolset\wix3\test\src\UnitTests\dutil\DUtilUnitTest.vcxproj"
> > > (default target) (167) ->
> > >   LINK : fatal error LNK1256: ALINK operation failed (80040436) :
> > > Error signing assembly -- Access is denied.
> > >
> > > [c:\dev\github\wixtoolset\wix3\test\src\UnitTests\dutil\DUtilUnitTest.
> > > vcxproj]
> > >
> > >
> > > "c:\dev\github\wixtoolset\wix3\wix.proj" (default target) (1) -> 
> > > "c:\dev\github\wixtoolset\wix3\test\test.proj" (default target)
> > > (163)
> > > -> "c:\dev\github\wixtoolset\wix3\test\src\WixTests\WixTests.csproj"
> > > (default
> > > target) (170) ->
> > > (CoreCompile target) ->
> > >
> > >
> >
> Extensions\UtilExtension\UtilExtension.WixInternetShortcutTests.cs(11,11):
> > > error CS0246: The type or namespace name 'IWshRuntimeLibrary' 
> > > could not be found (are you missing a using directive or an 
> > > assembly
> > > reference?)
> > > [c:\dev\github\wixtoolset\wix3\test\src\WixTests\WixTests.csproj]
> > >
> > >     1 Warning(s)
> > >     5 Error(s)
> > >
> > > Time Elapsed 00:03:15.38
> > > --------------------------------------------
>
>
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-devs mailing list