[wix-devs] Issues in Netfx.wixext repo

James Parsons Parsons.James at microsoft.com
Wed Aug 12 20:51:40 PDT 2020


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%7Cbb964fac8b1e4e138af608d83f3bf2c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637328874003588750&sdata=dBdBgIV%2BkZSvot6pSxWXh7%2F8MIPfjBHuYBjqk3QtY1g%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%7Cbb964fac8b1e4e138af608d83f3bf2c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637328874003598745&sdata=kcn73qTS%2FTBw%2B7WS%2BIxYMxElgc%2FsmaK0JGsA1m%2Bpcik%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%7Cbb964fac8b1e4e138af608d83f3bf2c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637328874003598745&sdata=jtiLqRqz001LHyXBr3E1Eh7rCjGRYLmuJiCyjSizlwE%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%7Cbb964fac8b1e4e138af608d83f3bf2c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637328874003598745&sdata=jtiLqRqz001LHyXBr3E1Eh7rCjGRYLmuJiCyjSizlwE%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%7Cbb964fac8b1e4e138af608d83f3bf2c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637328874003598745&sdata=0h2amQy57Cs7ZZtk7v2s3ipdO092B4j%2B2SDH%2Bg5qZEY%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




More information about the wix-devs mailing list