Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Is it possible to compile
 
C# Solution using command prompt ?
 
csc.exe will compile cs file.
 
I am asking to compile complete solution
 

Thanks
Smile | :)
Posted 29-Nov-10 23:02pm
Khaniya4.1K
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 at 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
0 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 165
2 jlopez788 109
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,589
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 23 Feb 2012
Copyright © CodeProject, 1999-2014
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