2011-07-15 124 views
1

按照Microsoft Pattern & Practice blog推薦使用MSBee。在TFS 2010中構建.NET 1.1

要建立一個.NET 1.1的應用與團隊建設

•升級.NET 1.1的解決方案,.NET 2.0。您可以通過在Visual Studio 2005中打開解決方案並運行轉換向導或運行devenv項目名稱/升級來執行此操作。

•確保.NET 1.1軟件開發工具包(SDK)安裝在生成服務器上。

•下載和http://www.codeplex.com/MSBee

•下載BuildingFx11inTB.targets從http://blogs.msdn.com/gautamg/attachment/578915.ashx

安裝的MSBuild額外•檢查從源頭控制,將建立你的.NET 1.1的項目生成類型。

•將BuildingFx11inTB.targets複製到包含構建類型的目錄,並將該文件檢入源代碼控制。

•編輯TFSBuild.proj文件:

•導入BuildingFx11inTB.targets文件:

<Import Project="$(MSBuildProjectDirectory)\BuildingFx11inTB.targets" /> 

•添加屬性定義CSHARP目標:

<PropertyGroup> 
    <AdditionalPropertiesForBuildTarget> 
      CustomAfterMicrosoftCommonTargets=$(ProgramFiles)\MSBuild\MSBee\MSBuildExtras.Fx1_1.CSharp.targets 
    </AdditionalPropertiesForBuildTarget> </PropertyGroup> 

•檢查TFSBuild。 proj進入源代碼管理。

但是這不會在TFS 2010中工作,因爲沒有更多的TFSBuild.proj文件。如果MSBee不可行並且僅通過命令行。需要生成.NET 1.1輸出,那麼我們如何生成VS 2010 IDE的.NET 1.1抱怨輸出。看來我們需要特別針對VS 2003 MSBuild生成1.1個輸出。

感謝,

回答