[wix-devs] Issues in Netfx.wixext repo

James Parsons Parsons.James at microsoft.com
Wed Aug 12 20:49:45 PDT 2020


Hello everyone,

I cloned the Netfx.wixext<https://github.com/wixtoolset/Netfx.wixext> 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 'http://wixtoolset.org/schemas/v4/wxs'.  Please make the Wix element look like the following: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">.
If I fix the namespace issues as so:
xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msbuild_errors.txt
URL: <http://lists.wixtoolset.org/pipermail/wix-devs-wixtoolset.org/attachments/20200813/d85f34f0/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: appveyor_errors.txt
URL: <http://lists.wixtoolset.org/pipermail/wix-devs-wixtoolset.org/attachments/20200813/d85f34f0/attachment-0001.txt>


More information about the wix-devs mailing list