ADX WIX setup project fails to build on .NET 4.5, 4.5.1 or 4.6

Add-in Express™ Support Service
That's what is more important than anything else

ADX WIX setup project fails to build on .NET 4.5, 4.5.1 or 4.6
 
EnterpriseDev


Guest


I created a simple ADX COM Outlook Add-in from scratch without modifying any code. By default it gets .NET 4.5 on my machine. Then added a setup WIX project using ADX. Compiling that gives the error below. The same happens for targeting 4.5.1 and 4.6. It works fine with targeting .NET Client 4.0. Any clue?

I am using VS 2017 latest upgrades and ADX 8.7.4330.

Severity Code Description Project File Line Suppression State
Error Failed to load MSBuild wrapper object: Could not load file or assembly 'Microsoft.Build.Utilities.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Det går inte att hitta filen. NetConversion4_to_451Setup(1.0.0) heat.exe
0
Posted 16 Jul, 2018 04:28:57 Top
Andrei Smolin


Add-in Express team


Posts: 19012
Joined: 2006-05-11
Hello,

What WiX Toolset build are you using?


Andrei Smolin
Add-in Express Team Leader
Posted 16 Jul, 2018 05:19:34 Top
EnterpriseDev


Guest


WiX Toolset v3.11.0.1701. This is the latest stable version as far as I am aware of. You should be able to reproduce this on your side I think by creating a sample WIX Setup project with .NET 4.5 or later on the actual ADX COM Add-in project.

Update: I noted it is not the latest version actually. I will try the latest version now to see if it makes a difference. Sorry!!!

Update 2: WiX version 3.11.1.2318 has the same issue so did not help. Also recreating the Setup project after WiX upgrade did not help.
Posted 16 Jul, 2018 05:25:56 Top
Andrei Smolin


Add-in Express team


Posts: 19012
Joined: 2006-05-11
We are unable to reproduce this issue. I have WiX 3.11.1.2318, VS 2017 15.7.3. The add-in project is created for .NET 4.5. I simply build it and create a setup project.

Create a Windows Forms Applicaiton project, add a WiX Setup project to the solution, add the application project to the references of the setup project. Try to change the .NET Framework version used by the application project and build the setup project. See http://temp.add-in-express.com/support/WindowsFormsApp3.zip.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Jul, 2018 07:31:33 Top
EnterpriseDev


Guest


Thanks so much. I ran the sample project you provided and get the error below (slightly different but still). This points to something that is wrong with my build environment.

Severity Code Description Project File Line Suppression State
Error Failed to load MSBuild engine: MSBuildToolsPath is not specified for the ToolsVersion "14.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0", or the value specified evaluates to the empty string. SetupProject1 heat.exe 0

UPDATE: Solution was to reinstall MSBuild tools for Visual Studio 2013 (the one required for .NET 4.5.1). So must have been the Visual Studio instance that was somehow a bit corrupt.
https://download.microsoft.com/download/9/B/B/9BB1309E-1A8F-4A47-A6C5-ECF76672A3B3/BuildTools_Full.exe
Posted 16 Jul, 2018 07:53:24 Top
Andrei Smolin


Add-in Express team


Posts: 19012
Joined: 2006-05-11
Great!


Andrei Smolin
Add-in Express Team Leader
Posted 16 Jul, 2018 08:41:19 Top