[wix-devs] [EXTERNAL] Re: Issues in Netfx.wixext repo

Sean Hall r.sean.hall at gmail.com
Tue Aug 25 08:40:57 PDT 2020


I don't know, maybe something is broken in your preview version of VS?

On Mon, Aug 24, 2020 at 11:03 PM James Parsons <Parsons.James at microsoft.com>
wrote:

> Hi Sean,
>
> I updated WixToolset.Sdk locally to version "4.0.0-build-0151". Now when I
> run appveyor.cmd, I'm getting an error message while executing task
> "RestoreTask" in NetFx.wixext.sln:
>
> _GetAllRestoreProjectPathItems:
>   Determining projects to restore...
> C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Preview\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(128,5):
> error : Invalid restore input. Invalid target framework 'unsupported'.
> Input files: E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj.
> [E:\GitHub\Netfx.wixext\NetFx.wixext.sln]
> Done Building Project "E:\GitHub\Netfx.wixext\NetFx.wixext.sln" (Restore
> target(s)) -- FAILED.
>
> However, that's the only issue and the remainder of appveyor.cmd builds
> and passes the tests successfully.
>
> Do you have any idea what might be causing this error? I tried adding a
> <TargetFramework> property to netfx.wixproj, but nothing seems to make a
> difference. I've attached diagnostic logging for reference.
>
> Thank you,
> James
> ------------------------------
> *From:* wix-devs <wix-devs-bounces at lists.wixtoolset.org> on behalf of
> Sean Hall via wix-devs <wix-devs at lists.wixtoolset.org>
> *Sent:* Sunday, August 16, 2020 9:52 AM
> *To:* WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
> *Cc:* Sean Hall <r.sean.hall at gmail.com>
> *Subject:* [EXTERNAL] Re: [wix-devs] Issues in Netfx.wixext repo
>
> We're still making breaking changes. Someone needs to address those
> breaking changes in NetFx.wixext and update the WixToolset.Sdk package in
> global.json.
>
> As an aside, those manually built error messages aren't relevant. If you
> wanted to try to build it manually, you have to use v4's wix.exe instead of
> v3's light.exe and candle.exe.
>
> On Wed, Aug 12, 2020 at 10:51 PM James Parsons via wix-devs <
> wix-devs at lists.wixtoolset.org> wrote:
>
> > It looks like the formatting got messed up somehow... sorry about that!
> > ________________________________
> > From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> on behalf of
> James
> > Parsons via wix-devs <wix-devs at lists.wixtoolset.org>
> > Sent: Wednesday, August 12, 2020 8:49 PM
> > To: wix-devs at lists.wixtoolset.org <wix-devs at lists.wixtoolset.org>
> > Cc: James Parsons <Parsons.James at microsoft.com>
> > Subject: [EXTERNAL] [wix-devs] Issues in Netfx.wixext repo
> >
> > Hello everyone,
> >
> > I cloned the Netfx.wixext<
> >
> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwixtoolset%2FNetfx.wixext&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=qxi1crSBAApZgpoy2bcVN7u0AuuNQJVyBBYJn9g0K0w%3D&reserved=0
> >
> > repository with the intent to build it and run the tests (particularly
> the
> > ones involving .NET Core package definitions).
> >
> > If I run AppVeyor.cmd with a fresh clone, it results in some errors (full
> > logs in appveyor_errors.txt) involving wix.targets:
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error : MissingMethodException: Method not found: 'Void
> > WixToolset.Extensibility.Services.IParseHelper.CreateSimpleRefer
> > ence(WixToolset.Data.IntermediateSection,
> > WixToolset.Data.SourceLineNumber,
> > WixToolset.Data.IntermediateSymbolDefinition, System.String)'.
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at
> > WixToolset.Util.UtilCompiler.ParseWixSearchRefElement(Intermediate
> > intermediate, IntermediateSection secti
> > on, XElement node) [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at
> > WixToolset.Util.UtilCompiler.ParsePossibleKeyPathElement(Intermediate
> > intermediate, IntermediateSection se
> > ction, XElement parentElement, XElement element, IDictionary`2 context)
> in
> > C:\projects\util-wixext\src\wixext\UtilCompiler.cs:line 296
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at WixToolset.Util.UtilCompiler.ParseElement(Intermediate
> > intermediate, IntermediateSection section, XElement
> >  parentElement, XElement element, IDictionary`2 context) in
> > C:\projects\util-wixext\src\wixext\UtilCompiler.cs:line 103
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at
> >
> WixToolset.Core.ExtensibilityServices.ParseHelper.ParseExtensionElement(IEnumerable`1
> > extensions, Intermed
> > iate intermediate, IntermediateSection section, XElement parentElement,
> > XElement element, IDictionary`2 context) in
> >
> C:\projects\core\src\WixToolset.Core\ExtensibilityServices\ParseHelper.cs:line
> > 860 [E:\GitHub\Ne
> > tfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at WixToolset.Core.Compiler.ParseFragmentElement(XElement
> node)
> > in C:\projects\core\src\WixToolset.Core\Compi
> > ler.cs:line 6118 [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at WixToolset.Core.Compiler.ParseWixElement(XElement node) in
> > C:\projects\core\src\WixToolset.Core\Compiler.c
> > s:line 223 [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at WixToolset.Core.Compiler.Compile(ICompileContext context)
> in
> > C:\projects\core\src\WixToolset.Core\Compiler
> > .cs:line 140 [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at
> > WixToolset.Core.CommandLine.BuildCommand.CompilePhase(IDictionary`2
> > preprocessorVariables, IEnumerable`1 s
> > ourceFiles, CancellationToken cancellationToken) in
> > C:\projects\core\src\WixToolset.Core\CommandLine\BuildCommand.cs:line 235
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at
> > WixToolset.Core.CommandLine.BuildCommand.ExecuteAsync(CancellationToken
> > cancellationToken) in C:\projects\
> > core\src\WixToolset.Core\CommandLine\BuildCommand.cs:line 115
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at
> >
> WixToolset.BuildTasks.WixBuild.ExecuteCoreAsync(IWixToolsetCoreServiceProvider
> > coreProvider, String comman
> > dLineString, CancellationToken cancellationToken) in
> > C:\projects\tools\src\WixToolset.BuildTasks\WixBuild_InProc.cs:line 23
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :    at WixToolset.BuildTasks.ToolsetTask.ExecuteInProc(String
> > commandLineString) in C:\projects\tools\src\WixTool
> > set.BuildTasks\ToolsetTask_InProc.cs:line 39
> > [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets(649,5):
> > error :  [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> > If I run msbuild on NetFx.wixext.sln, it results in a different set of
> > errors (full logs in msbuild_errors.txt) also involving wix.targets:
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets
> > : error WIX288: The variable
> > 'E:\GitHub\Netfx.wixext\build\Debug\ARM64\netfxca.dll' with value '' was
> > previously declared with v
> > alue ''. [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets
> > : error WIX288: The variable
> > 'E:\GitHub\Netfx.wixext\build\Debug\x86\netfxca.dll' with value '' was
> > previously declared with val
> > ue ''. [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> >
> C:\Users\japarson\.nuget\packages\wixtoolset.sdk\4.0.0-build-0143\tools\wix.targets
> > : error WIX288: The variable
> > 'E:\GitHub\Netfx.wixext\build\Debug\x64\netfxca.dll' with value '' was
> > previously declared with val
> > ue ''. [E:\GitHub\Netfx.wixext\src\wixlib\netfx.wixproj]
> > If I try to build the test data manually
> >
> Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs,
> > I get the following errors:
> > PS E:\GitHub\Netfx.wixext> candle.exe -ext WixNetFxExtension -ext
> > WixBalExtension
> >
> .\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs
> > Windows Installer XML Toolset Compiler version 3.11.2.4516
> > Copyright (c) .NET Foundation and contributors. All rights reserved.
> >
> > Bundle.wxs
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(2)
> > : error CNDL0199 : The Wix element has an incorrect namespace
> > of '
> >
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwixtoolset.org%2Fschemas%2Fv4%2Fwxs&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=qNPneNcAWHQDKR7CADnCrwmr%2BT3Z9%2F6YVVbEJZHPEZs%3D&reserved=0
> '.
> > Please make the Wix element look like the following: <Wix xmlns="
> >
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fschemas.microsoft.com%2Fwix%2F2006%2Fwi&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=MCFfgfjU3AwjHn6VBbcshzaZDQTRtQdP1KfuFXNYLtg%3D&reserved=0
> > ">.
> > If I fix the namespace issues as so:
> > xmlns="
> >
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fschemas.microsoft.com%2Fwix%2F2006%2Fwi&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=MCFfgfjU3AwjHn6VBbcshzaZDQTRtQdP1KfuFXNYLtg%3D&reserved=0
> > "
> > xmlns:bal="
> >
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fschemas.microsoft.com%2Fwix%2FBalExtension&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=x1haUcCdlkRD4CpphzezPufIf%2FhtHI0sUQpdTRn%2BB%2Fk%3D&reserved=0
> > "
> > The file compiles with candle.exe, but fails with light.exe:
> > PS E:\GitHub\Netfx.wixext> light.exe .\Bundle.wixobj
> > Windows Installer XML Toolset Linker version 3.11.2.4516
> > Copyright (c) .NET Foundation and contributors. All rights reserved.
> >
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(5)
> > : error LGHT0094 : Unresolved reference to symbol
> >
> 'WixBootstrapperApplication:WixStandardBootstrapperApplication.HyperlinkLicense'
> > in section 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(9)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:AspNetCoreRuntime310Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(10)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:DesktopNetCoreRuntime310Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(11)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:AspNetCoreRuntime311Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(12)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:DesktopNetCoreRuntime311Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(13)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:AspNetCoreRuntime312Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(14)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:DesktopNetCoreRuntime312Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(15)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:AspNetCoreRuntime313Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(16)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:DesktopNetCoreRuntime313Redist_x64' in section
> > 'Bundle:WixStdBa'.
> >
> E:\GitHub\Netfx.wixext\src\test\WixToolsetTest.Netfx\TestData\UsingDotNetCorePackages\Bundle.wxs(17)
> > : error LGHT0094 : Unresolved reference to symbol
> > 'ChainPackageGroup:DotNetCoreRuntime313Redist_x64' in section
> > 'Bundle:WixStdBa'.
> > Does anyone know what might be going on here? Am I doing something wrong?
> > I'm sorry if these are silly questions, I'm new to Wix development.
> >
> > Thank you,
> > James
> >
> > ____________________________________________________________________
> > WiX Toolset Developer Mailing List provided by FireGiant
> >
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=oZaQUP0mMOwyBscAcnJga2eXwfrAduKSyAY2vfUtD7k%3D&reserved=0
> >
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7CParsons.James%40microsoft.com%7Cac27d0cd986a4077083d08d84204c20f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637331935499221105&sdata=oZaQUP0mMOwyBscAcnJga2eXwfrAduKSyAY2vfUtD7k%3D&reserved=0
>



More information about the wix-devs mailing list