Hans
Hans

Reputation: 2852

MsBuild: Generate binaries instead of zip file

I want to build a solution and have the generated artifacts (binaries) in a folder rather than having them packaged in a zip file. How can I do that?

Upvotes: 0

Views: 210

Answers (2)

Hans
Hans

Reputation: 2852

What I found working was to simply providing OutputPath:

msbuild.exe <solution.sln> /p:OutputPath="<target_directory>"

Just be careful the targe_directory shouldn't end with \ .

Upvotes: 0

Sudeep Reddy
Sudeep Reddy

Reputation: 651

You can try publishing them to a file system from visual studio

enter image description here

or you if you want to use the console you can try using this

Using MSBuild, how do I build an MVC4 solution from the command line (applying Web.config transformations in the process) and output to a folder?

Upvotes: 1

Related Questions