I'm using VS 2012 with WiX Toolset 3.8 extension installed. When building if the project has a reference to the System Tools extension VS will crash with the following output. I don't see anything in the stack trace specifically regarding the System Tools ext, but if I remove the reference from the project it builds fine. Any ideas on which assembly it's not able to load or how I can work around this?
C:\Program Files (x86)\WiX Toolset v3.8\bin\Light.exe -out "C:\Projects\ME365\OnPrem-branch\InstallerPackage\bin\Debug\Mobile Entree 365.msi" -pdbout "C:\Projects\ME365\OnPrem-branch\InstallerPackage\bin\Debug\Mobile Entree 365.wixpdb" -cultures:null -ext "..\..\..\..\Program Files (x86)\msiext-1.4\WixExtensions\WixSystemToolsExtension.dll" -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\WixIIsExtension.dll" -ext "C:\Program Files (x86)\msiext-1.4\WixExtensions\WixDataSourceExtension.dll" -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\WixSqlExtension.dll" -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\WixUtilExtension.dll" -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\WixNetFxExtension.dll" -sice:ICE17 -contentsfile obj\Debug\InstallerPackage.wixproj.BindContentsFileListnull.txt -outputsfile obj\Debug\InstallerPackage.wixproj.BindOutputsFileListnull.txt -builtoutputsfile obj\Debug\InstallerPackage.wixproj.BindBuiltOutputsFileListnull.txt -wixprojectfile C:\Projects\ME365\OnPrem-branch\InstallerPackage\InstallerPackage.wixproj obj\Debug\pth29CD6C5BF626AAA39D1868C124E7F882\Database.wixobj obj\Debug\pth29CD6C5BF626AAA39D1868C124E7F882\PowershellScripts.wixobj obj\Debug\pth29CD6C5BF626AAA39D1868C124E7F882\SharePointApp.wixobj obj\Debug\pth29CD6C5BF626AAA39D1868C124E7F882\WebsiteIIS.wixobj obj\Debug\pth29CD6C5BF626AAA39D1868C124E7F882\WebsiteDirectory.wixobj obj\Debug\CustomActionDefinitions.wixobj obj\Debug\Features.wixobj obj\Debug\Product.wixobj light.exe(0,0): error LGHT0001: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
Stack Trace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.Tools.WindowsInstallerXml.WixExtension.Load(String extension)
at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Tools.WindowsInstallerXml.Build.Tasks.WixToolTask.ExecuteToolThread(Object parameters)