Click here to Skip to main content
12,759,971 members (29,268 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
Is it possible to compile

C# Solution using command prompt ?

csc.exe <filename.cs> will compile cs file.

I am asking to compile complete solution


Thanks
:)
Posted 30-Nov-10 0:02am
Khaniya4.4K
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You can use MSBUILD[^]?

msbuild MySolution.sln /t:Rebuild /p:Configuration=Release /p:Platform="any cpu"
  Permalink  
Comments
Khaniya 30-Nov-10 6:53am
   
hey
Thanks for your answer
How can execute above from .Net application?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Thank you for your question. You can use like bellow,

devenv /build ConfigName [/project ProjName] [/projectconfig ConfigName] SolutionName


Ref:http://www.c-sharpcorner.com/UploadFile/tharakram/BuildDotNetSolution11162005052301AM/BuildDotNetSolution.aspx[^]


Thanks,
Mamun
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Here is Google Search Link for you
compile .net spulution from command prompt[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "C:\Documents and Settings\anyuser\Desktop\WpfChangeTheme\WpfChangeTheme.sln"

this may helps...

for reference
http://social.msdn.microsoft.com/Forums/en/tfsbuild/thread/723d289f-f9b6-44d5-8892-42db46201128[^]

for putting some switches please refer
http://msdn.microsoft.com/en-us/library/ms164311.aspx[^]
  Permalink  

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

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 25 Jul 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100