Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am building sample WIX Project using Visual studio.
For that, I need 'msbuild.exe' path.(Ex: C:\Windows\Microsoft.NET\Framework\v4.0.30319)
How can i enumerate the 'msbuild.exe' path using C#.
Is there any API to get the latest version msbuild.exe path.

Thanks in advance.

Regards,
Dileep
Posted
Comments
Sergey Alexandrovich Kryukov 19-Feb-15 2:42am    
First of all, why? How is that related to WiX?
—SA
sdileep1 19-Feb-15 3:47am    
For building Wixproject using MSbuild.exe

If you are creating a build tool chain then just copy the MSBUILD.EXE to a Tools folder for example and reference from that directory in your scripts.
 
Share this answer
 
To get the current runtime .Net framework path use the below line:
System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900