Installing Win SDK for Svr 2008 after VS 2008 breaks VS command line build environment
来源:百度文库 编辑:神马文学网 时间:2024/10/06 11:22:27
Microsoft Windows SDK Blog
The Microsoft Windows SDK is a set of tools, codesamples, documentation, compilers, headers, and libraries thatdevelopers can use to create applications that run on Microsoft Windowsoperating systems. The Windows SDK combines two formerly separate SDKs:the Platform SDK (PSDK) and the .NET Framework SDK. For moreinformation on the Windows SDK, visit ourMSDN Developer Center.
Installing Win SDK for Svr 2008 after VS 2008 breaks VS command line build environment
Issue: Afterinstalling the Windows SDK for Server 2008, you are no longer able tobuild at the VS2008 command line. You receive an error that csc, vbc,and/or msbuild commands are not recognized. You are able to buildwithout problems in the VS IDE.
Cause: The VC++ compilers that install with the Windows SDK overwrite vcvars32.bat improperly.
Workaround:Repair the VS2008 command line build environment by editing c:\ProgramFiles\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat manually.
Close all instances of Visual Studio:
1. UseNotepad to edit the file %\Program Files\Microsoft Visual Studio9.0\VC\bin\vcvars32.bat. Change the top few lines where the variablesare set.
Change these lines:
@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=Framework32
@SET FrameworkVersion=v2.0.50727
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
to the following, in order to set the correct path to the frameworkdir:
@SET VSINSTALLDIR=c:\Program Files\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=c:\Program Files\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=c:\Windows\Microsoft.NET\Framework
@SET FrameworkVersion=v2.0.50727
@SET Framework35Version=v3.5
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
Open the VS command line build environment and verify that you can build successfully.
Pleaseemail us directly if you need additional help.
Karin Meier
Windows SDK Program Manager
The Microsoft Windows SDK is a set of tools, codesamples, documentation, compilers, headers, and libraries thatdevelopers can use to create applications that run on Microsoft Windowsoperating systems. The Windows SDK combines two formerly separate SDKs:the Platform SDK (PSDK) and the .NET Framework SDK. For moreinformation on the Windows SDK, visit ourMSDN Developer Center.
Installing Win SDK for Svr 2008 after VS 2008 breaks VS command line build environment
Issue: Afterinstalling the Windows SDK for Server 2008, you are no longer able tobuild at the VS2008 command line. You receive an error that csc, vbc,and/or msbuild commands are not recognized. You are able to buildwithout problems in the VS IDE.
Cause: The VC++ compilers that install with the Windows SDK overwrite vcvars32.bat improperly.
Workaround:Repair the VS2008 command line build environment by editing c:\ProgramFiles\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat manually.
Close all instances of Visual Studio:
1. UseNotepad to edit the file %\Program Files\Microsoft Visual Studio9.0\VC\bin\vcvars32.bat. Change the top few lines where the variablesare set.
Change these lines:
@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=Framework32
@SET FrameworkVersion=v2.0.50727
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
to the following, in order to set the correct path to the frameworkdir:
@SET VSINSTALLDIR=c:\Program Files\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=c:\Program Files\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=c:\Windows\Microsoft.NET\Framework
@SET FrameworkVersion=v2.0.50727
@SET Framework35Version=v3.5
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
Open the VS command line build environment and verify that you can build successfully.
Pleaseemail us directly if you need additional help.
Karin Meier
Windows SDK Program Manager
Installing Win SDK for Svr 2008 after VS 2008 breaks VS command line build environment
RealPlayer SP v1.1.2 Build 12.0.0.641 for Win...
RealPlayer SP v1.1.2 Build 12.0.0.6411 for Win...
RealPlayer SP v1.1.2 Build df12.0.0.641 for Win...
vs 2008 msvcr90d.dll错误
Command-line interactive programs in UNIX she...
DOS 命令帮助文档 command line shell
NVIDIA Forums > CUDA 1.1 and vs 2008
美国总统选举- 奥巴马 VS 麦凯恩 2008
Windows Live Sync vs. Live Mesh vs. SkyDrive: Which is Right for You?
MySpace ID vs Facebook Connect: A Battle for ...
真话VS假话VS废话VS屁话
俞敏洪VS马云VS牛根生VS史玉柱
俞洪VS马云VS牛根生VS史玉柱
Dueling Coupes: 2008 BMW 335i vs 2008 Infinit...1
Dueling Coupes: 2008 BMW 335i vs 2008 Infinit...2
Dueling Coupes: 2008 BMW 335i vs 2008 Infinit...3
Dueling Coupes: 2008 BMW 335i vs 2008 Infinit...4
VS 2008 "website" 项目转化为 "web application" 项目
Vs 2008 解决方案的目录结构设置和管理
Creating an Environment for Ongoing Learning ...
Creating an Environment for Ongoing Learning ...
生肖vs
command