欢迎来到天天文库
浏览记录
ID:14982579
大小:25.37 KB
页数:19页
时间:2018-07-31
《c 中csc命令的用法(the usage of csc command in c )》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、c#中csc命令的用法(TheusageofCSCcommandinc#)TheusageofCSCcommandinc#CSC.exeC#tocompileVisualcodeintoILfile,therearemanyparametersandswitches.ThecorrectunderstandinganduseoftheseparametersandsometimesswitchingsolutionsMakesomeseeminglytoughquestions.Herethroughatabletoroughlyexplainthespecificeffectsoft
2、heseparametersandswitches.TheseparametersandswitchoptionsareinaccordancewithArrangedinalphabeticalorder.The"*",somecommonlyusedparametersorswitches.///////////////////////////////////////////////////////////////////////////////CommandlineexampleCompilingFile.cstogenerateFile.exe:CSCFile.csCompil
3、ingFile.cstogenerateFile.dll:CSC/target:libraryFile.csCompileFile.csandcreateMy.exe:CSC/out:My.exeFile.csThroughtheuseofoptimizationandtheDEBUGsymbolisdefinedinthecurrentdirectory,compileallC#files.TheoutputisFile2.exe:CSC/define:DEBUG/optimize/out:File2.exe*.csCompileallC#filesinthecurrentdirec
4、tory,thedebugversionofFile2.dll.Nologosandwarningsaredisplayed:CSC/target:library/out:File2.dll/warn:0/nologo/debug*.csAlloftheC#filesinthecurrentdirectorycompiledforSomething.xyz(aDLL):CSC/target:library/out:Something.xyz*.cs//////////////////////////////////////////////////////////////////////
5、/////////Tabscriptisusedwhendoingapage,rememberIEWebControlseemstohave,goonlinetofindit.ItturnsoutthatMicrosoftdoesn'tsupportthisanymoreControl,alsodoesnotprovidedownload...Noway,havetofindGooglehelp.Soonfoundit.Afterinstallation,runbuild.bat.resultsonlyTheruntimefilecopy,nottogenerateDLLfiles..
6、.Lookatwhatbuild.batwrote:@if"%_echo%"echooff"=="IfnotexistbuildMKDIRbuildCsc.exe/out:buildMicrosoft.Web.UI.WebControls.dll@IEWebControls.rspXcopysrcRuntimebuildRuntime/E/Y/I/QNotethered,itisCSC.exenottowritetheabsolutepath.ButmyPATHissimplynotregistered.ChangeC:WINDOWSMicrosoft.NETFramewo
7、rkv1.1.4322/csc.exe/out:buildMicrosoft.Web.UI.WebControls.dll@IEWebControls.rspYoucan,butthereisawarning:srctreeview.cs(1193,13):warningCS0618:'System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,System.
此文档下载收益归作者所有