在使用Windows Server 2008 R2的构建服务器上使用Devenv.com构建VS 2003解决方案

时间:2012-11-01 02:51:47

标签: windows-server-2008-r2 tfsbuild .net-1.1 visual-studio-2003

我正在尝试在Windows Server 2008 R2计算机上的TFS构建服务器2008上构建.NET Framework 1.1解决方案(VS 2003)。我按照本网站的说明进行操作

http://blogs.msdn.com/b/nagarajp/archive/2005/10/26/485368.aspx

并建议第二个解决方案。构建服务器完成前4个步骤(初始化构建,获取源代码,标记源代码和编译任何cpu /发布的源代码)但在此之后它只显示正在构建并且不执行任何操作。我一夜之间就离开了工作,它仍然显示Buiid正在进行中。我检查了事件日志,它显示以下消息:

The application (Visual Studio .NET 2003, from vendor Microsoft) has the following problem: Visual Studio .NET 2003 has a known compatibility issue with this version of Windows.

当我登录到构建服务器然后尝试打开Visual Studio 2003时,它会向我显示一个弹出窗口,其中包含相同的消息,然后我必须单击“运行程序”以进一步操作。但由于我正在使用命令行构建解决方案,我想知道我该怎么做?我也尝试在兼容模式(Windows XP Service Pack 3)中运行此程序并检查选项“Disabe visual themes”和“禁用桌面组合”但没有运气。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:3)

这是1.1 Framework项目的配置文件的修改版本,用于在Windows Server 2008 R2上使用Build Server 2008进行构建:

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="DesktopBuild"     xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">

<ProjectExtensions>
<ProjectFileVersion>2</ProjectFileVersion>
<Description></Description>
<BuildMachine>UNKNOWN</BuildMachine>
</ProjectExtensions>
<PropertyGroup>
<TeamProject>1.1 Framework</TeamProject>
<BuildDirectoryPath>UNKNOWN</BuildDirectoryPath>
<DropLocation>\\UNKNOWN\drops</DropLocation>
<RunTest>false</RunTest>
<RunCodeAnalysis>Never</RunCodeAnalysis>
<WorkItemType>Bug</WorkItemType>
<WorkItemFieldValues>System.Reason=Build Failure;System.Description=Start the build    using Team Build</WorkItemFieldValues>
<WorkItemTitle>Build failure in build:</WorkItemTitle>
<DescriptionText>This work item was created by Team Build on a build failure. </DescriptionText>
<BuildlogText>The build log file is at:</BuildlogText>
<ErrorWarningLogText>The errors/warnings log file is at:</ErrorWarningLogText>
<UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems>
<AdditionalVCOverrides></AdditionalVCOverrides>
<CustomPropertiesForClean></CustomPropertiesForClean>
<CustomPropertiesForBuild></CustomPropertiesForBuild>
</PropertyGroup>
<ItemGroup>
</ItemGroup>
<ItemGroup>
<ConfigurationToBuild Include="Release|Any CPU">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>
</ItemGroup>
<ItemGroup>
</ItemGroup>
<PropertyGroup>
<VS2003_Devenv>C:\Program Files (x86)\Microsoft Visual Studio .NET    2003\Common7\IDE\devenv.com</VS2003_Devenv> 
<VS2003_Configuration>Release</VS2003_Configuration> 
</PropertyGroup> 
<ItemGroup>
<VS2003_OutputFiles Include="$(SolutionRoot)\DSC.STARS\Main\DSC.STARS.Web\**\*.*" />
</ItemGroup>
<Target Name="AfterCompile">  
<Exec Command="&quot;$(VS2003_Devenv)&quot; &quot;$(SolutionRoot)\DSC.STARS\Main\DSC.STARS.SOLUTION.sln&quot; /build release" />  
 <MakeDir Directories="$(BinariesRoot)\$(VS2003_Configuration)"  Condition="!Exists('$(BinariesRoot)\$(VS2003_Configuration)')" />

<Copy SourceFiles="@(VS2003_OutputFiles)" DestinationFiles="@(VS2003_OutputFiles- >'$(BinariesRoot)\$(VS2003_Configuration)\%(RecursiveDir)%(Filename)%(Extension)')"/>
</Target>
</Project>