我想在dos下,编译C#程序(要用csc),需要设置环境变量,但是忘记真么设置的了。
安装了vs.net。 请高手指点。
安装了vs.net。 请高手指点。
解决方案 »
- webBrowserBody.Url 不能赋值(不能跳转到其他页面)
- 急急急!!!在线等!!!!!!listview删除时绑定数据库,sql语句怎么写~
- 请教下服务器端生成的 excel如何下载到客户端
- 关于cdo的方法生成mht文件后,图片没有固化的问题???
- 谁有使用异步通讯实现同步效果(伪同步)的经验
- c#winform程序数据存入oracle,中文为??????字符集问题
- 本人想做一个登录系统,通过数字证书和动态密码登录,该怎么做?
- 问一个处理异常的问题
- 菜鸟问题!程序的写法!
- SqlHelper中数据库连接的问题
- 新手问题之六:能定义全局变量吗?
- 如何改变DataGrid(winForm)某个单元格的背景颜色,或者字体颜色也行。
是csc.exe,敲错键盘了
还是不能用csc呢
@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET 2003
@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
@SET FrameworkVersion=v1.1.4322
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1
@rem Root of Visual Studio common files.@if "%VSINSTALLDIR%"=="" goto Usage
@if "%VCINSTALLDIR%"=="" set VCINSTALLDIR=%VSINSTALLDIR%@rem
@rem Root of Visual Studio ide installed files.
@rem
@set DevEnvDir=%VSINSTALLDIR%@rem
@rem Root of Visual C++ installed files.
@rem
@set MSVCDir=%VCINSTALLDIR%\VC7@rem
@echo Setting environment for using Microsoft Visual Studio .NET 2003 tools.
@echo (If you have another version of Visual Studio or Visual C++ installed and wish
@echo to use its tools from the command line, run vcvars32.bat for that version.)
@rem@REM %VCINSTALLDIR%\Common7\Tools dir is added only for real setup.@set PATH=%DevEnvDir%;%MSVCDir%\BIN;%VCINSTALLDIR%\Common7\Tools;%VCINSTALLDIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;%FrameworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;
@set INCLUDE=%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\PlatformSDK\include\prerelease;%MSVCDir%\PlatformSDK\include;%FrameworkSDKDir%\include;%INCLUDE%
@set LIB=%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib\prerelease;%MSVCDir%\PlatformSDK\lib;%FrameworkSDKDir%\lib;%LIB%@goto end:Usage@echo. VSINSTALLDIR variable is not set.
@echo.
@echo SYNTAX: %0
=================
把以上内容存为一个bat,
我的目的是可以用csc命令。
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
添加到我的电脑上点右键:系统特性-->高级-->环境变量中的Path变量