从Visual Studio 2008升级到2015-我应该担心什么?

问题描述:

我刚刚接管了一些新应用程序的所有权-主要由C#和&针对.Net Framework 3.5的ASP.Net Web项目.

I have just taken over ownership of some apps in a new job - mainly consisting of C# & ASP.Net web projects, targeting .Net Framework 3.5.

当前该公司使用VS 2008作为解决方案,我想将其升级到2015.

Currently the company uses VS 2008 for the solutions, I'd like to look at upgrading to 2015.

我可以轻松地做到这一点,而无需对编译后的代码进行任何重大更改吗?我可能会遇到什么问题? 如果一切顺利,我如何确定新的编译代码与旧的代码相同?

Can I easily do this without making any breaking changes to the compiled code? What problems might I expect to come across? And if all goes ok, how can I be sure that the new compiled code is identical to the old?

(免责声明:我在Microsoft的Visual Studio上工作)

(Disclaimer: I worked on Visual Studio at Microsoft)

VS2015与VS2008几乎完全向后兼容,包括对.NET 2.0项目的支持,但请注意以下几点:

VS2015 is almost fully backwards-compatible with VS2008, including support for .NET 2.0 projects, though note a few things:

  • 不支持.NET智能设备项目(.NET Compact Framework/Windows CE),VS2008是支持它们的VS的最新版本
  • 代码编辑器不再缩进空行(此更改是在VS2010中引入的,并且仍然使我个人感到恼火)
  • VS2015确实支持在不同版本的VS之间进行双向项目(即不再进行强制项目升级),但是这不能追溯到2008年,我记得2010 SP1是您可以在VS2015中打开而无需重新保存的最早的项目版本.
  • IDE对ASP.NET MVC的支持不包括从GUI内生成ASPX引擎视图的支持,而是由所有菜单项创建Razor视图,尽管IDE仍支持在MVC项目中使用ASPX视图(只是复制+粘贴文件) ,我猜)
  • 当帮助/文档系统从Microsoft Document Explorer移至您可以使用浏览器访问的小型Web服务器时,在Visual Studio 2010中对其进行了全面改进,但用户的强烈反对迫使Microsoft在Visual Studio中添加了(新的)Microsoft Help Viewer. Studio 2012-体验不如2008年(我认为)要好.

否则,您无需担心.

差不多了:)