.NET 項目 在 Visual Studio 各種版本間的轉換

來源:互聯網
上載者:User

剛進新公司一周,而新公司的項目是在VS2008的環境中開發的。

但是,已經習慣了VS2010的各種擴充給我帶來的便利。

於是,自主的轉換成了Vs2010開啟的項目。

然後,又將源碼提交到團隊管理中了。

所以,那些用VS2008開發的孩子們,就悲催了。

不過方法來了:

首先:查看一下該項目的.SLN檔案並用記事本開啟,

VS2008 為

Microsoft Visual Studio Solution File, Format Version 10.00# Visual Studio 2008

VS2010為

Microsoft Visual Studio Solution File, Format Version 11.00# Visual Studio 2010

於是,根據對比,聰明的我們就知道怎麼修改了;

然後,還需要查看一下.CSPROJ檔案:

VS2008為

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

VS2010為

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

於是,我們又發現他們當中的“ToolsVersion”的不同。那麼我們進行相應的修改就OK了。

最後,我們就可以雙擊開啟我們要開發的項目了。

 

 

終極省力

一園友在Codeproject上發現了一個解決該問題的寶貝“Visual Studio版本轉換工具”。

作者是:CodeBureau - Matt Simner,原地址是:SolutionConverter 

 

參考文章:

http://www.cnblogs.com/zhuqil/archive/2010/05/31/SolutionConverter.html

http://www.cnblogs.com/boyliupan/archive/2010/06/22/1762726.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.