Trying to build using MSBuild on command line fails - Advanced Installer Community
nlafratta_nu
Posts: 6
Joined: Wed Mar 09, 2016 11:28 pm

Trying to build using MSBuild on command line fails

I have 12.7.2 installed and am trying to build my solution from the command line with MSBuild. Everything works fine if I build through Visual Studio 2012. I get my .msi just fine. But if I build through MSBuild at the command line, it fails on the AIP project but does not give any detailed error why. I was able to repeat this in a clean solution with only a brand new AIP project in it. Please see attached log file of the MSBuild command run. Any idea on how this can be fixed? I cannot integrate with our CI for automated builds until this is working.

Thanks in advance, Nathan
Attachments
msbuild.txt
(24.18 KiB) Downloaded 1350 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Trying to build using MSBuild on command line fails

Hello and welcome to Advanced Installer forums,

Thank you for your sent files. Unfortunately, for now I'm not able to isolate the exact root cause of this error. I've created a task in our bug tracking system to further investigate this issue and I'll get back to you as soon as we have a conclusion for this error.

Thank you for your patience and understanding.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nlafratta_nu
Posts: 6
Joined: Wed Mar 09, 2016 11:28 pm

Re: Trying to build using MSBuild on command line fails

Thanks Dan, do you have a link for the bug so I can track its progress?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Trying to build using MSBuild on command line fails

Hello,

I've noticed that you are using the MSBuild from C:\Windows\Microsoft.NET\Framework64\v4.0.30319 in your script.

Can you please use the MSBuild from C:\Program Files (x86)\MSBuild\12.0\Bin and see if the behaviour still persist?

Let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nlafratta_nu
Posts: 6
Joined: Wed Mar 09, 2016 11:28 pm

Re: Trying to build using MSBuild on command line fails

I have C:\Program Files (x86)\MSBuild\ but no 12.0 folder below that, and no MsBuild.exe in any subfolder of it. I'm not sure what version of VS you have installed, but I have Visual Studio 2012 Ultimate.

Thanks
nlafratta_nu
Posts: 6
Joined: Wed Mar 09, 2016 11:28 pm

Re: Trying to build using MSBuild on command line fails

Also, I have already reinstalled Visual Studio, and this is a new machine with all Miscrosoft Updates installed.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Trying to build using MSBuild on command line fails

Hello,

We performed several tests and this seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

I will update this thread as soon as a fix will be available.

By the way, have you tried to install a later version of MSBuild and see if the behaviour still persist? For example, you can use the Microsoft Build Tools 2015.

You will have to use the MSBuild.exe from the installation folder of Microsoft Build Tools 2015.

Let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nlafratta_nu
Posts: 6
Joined: Wed Mar 09, 2016 11:28 pm

Re: Trying to build using MSBuild on command line fails

Hi Dan, is this fixed in the March 23rd release?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Trying to build using MSBuild on command line fails

Hello,

No, we did not add any fix regarding this issue in the 12.8 release.

have you tried my suggestion? Did it worked?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nlafratta_nu
Posts: 6
Joined: Wed Mar 09, 2016 11:28 pm

Re: Trying to build using MSBuild on command line fails

This appears to be because TFS was by default pointing to the x64 version of MsBuild. Problem resolved.

Return to “Common Problems”