Generate msbuild file from solution

Here is a quick way to generate a start up msbuild file from your solutions file.

Launch Visual Studio Command prompt and change directory to your project directory and then type the following 2 commands.
set MSBuildEmitSolution=1
msbuild <<your project>>.sln

This file will be generated next to the solution file, it wil be named .sln.metaproj.

All thanks to original post at http://www.codeproject.com/Tips/177770/Creating-MSBuild-projects-from-sln-files

Enjoy

Advertisements

One Response to “Generate msbuild file from solution”

  1. Wordpress Blog Post On Generate Msbuild File From Solution - Wordpress Blogs .NET Says:

    […] Generate Msbuild File From Solution August 4th, 2013 — “Here is a quick way to generate a start up msbuild file from your solutions file. Launch Visual Studio Command prompt and change directory to your project directory and then type the following 2 commands. set MSBuildEmitSolution=1 msbuild .sln This file will be generated next to the solution file, it wil be named .sln.metaproj. […]” […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: