从 vs 2005 迁移到 vs 2008
我在一家大公司工作,我们还没有将 dotnet 运行时 3.0+ 分发到桌面,所以我们都使用 vs 2005 和 c# 2.0
迁移到 vs 2008 并仍然针对 2.0 有什么大的好处(因为运行时部署将不会很快到达)对于开发人员来说。
另外,如果建议升级到 vs 2008,是否有任何问题或需要担心或准备的事情。
注:我们主要做winforms项目
i work at a large company and we haven't distributed dotnet runtimes 3.0+ out to the desktops so we are all using vs 2005 and c# 2.0
is there any big benefit of moving to vs 2008 and still targeting 2.0 (since the runtime deployment will not be there soon) for the developers.
also, if the suggestion is to do the upgrade to vs 2008, are there any gotchas or things to worry about or prepare for.
Note: We are mostly doing winforms projects
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
关于这个主题在另一个线程上有一些很好的讨论 和关于这个。
There is some good discussion on this topic on another thread and on this one.
IDE 的一些改进包括更好的 XML 编辑器和新的 Web 表单设计器。
我建议您升级到 VS2008 SP1,其中还包括用于编辑 XML 架构的架构查看器。
如果您的目标是 .NET 2.0,则您的代码不需要任何新程序集,因此您的代码仍然可以在没有 .NET 3.5 的计算机上运行。 您应该将 .NET 2.0 SP1 和 SP2 部署到桌面。 然后,我相信您编写的任何使用 .NET 3.5 SP1 程序集的新代码都可以简单地随代码一起传送该程序集。 不会对计算机上的其他任何人产生影响。 .NET 2.0 到 .NET 3.5 SP1 都使用相同的 CLR,因此不存在冲突。
Some of the IDE improvements include a far better XML editor and the new web forms designer.
I would recommend you upgrade to VS2008 SP1, which also includes a schema viewer for editing XML schemas.
If you target .NET 2.0, then your code cannot require any of the new assemblies, so your code would still work on a machine without .NET 3.5. You should roll out .NET 2.0 SP1 and SP2 to the desktops. Then, I believe that any new code you write that uses a .NET 3.5 SP1 assembly could simply ship that assembly with the code. There would be no affect on anyone else on the computer. .NET 2.0 through .NET 3.5 SP1 all use the same CLR, so there is no conflict.
您需要记住它支持.NET 2.0 SP1,因此可能需要升级。
另一件需要记住的事情是,您仍然可以使用一些 C# 3.0 功能,同时仍然面向 .NET 框架。 例如,您可以使用 lambda、自动属性。 不过,您不能使用扩展方法或任何 linq 内容。 仅仅因为这个原因,我就会切换到2008年; C# 3.0 的改进至少在改变它的成本方面提高了生产力。
最后,我不确定 IDE 的改进; 我使用 Resharper,所以 Visual Studio 本身所做的事情我无法理解。
You'll need to keep in mind that it supports .NET 2.0 SP1, so there might be an upgrade needed.
Another thing to keep in mind is that you can still use some of the C# 3.0 features while still targeting the .NET framework. For instance, you can use lambdas, auto-properties. You can't use extension methods or any of the linq stuff, though. I would switch to 2008 for this reason alone; the C# 3.0 improvements increases productivity at least to the extent that it costs to change it.
Finally, I'm not sure about the IDE improvements; I use Resharper so what Visual Studio does on its own escapes me.
就我个人而言,我喜欢使用 VS2008 来降低目标 2.0 应用程序。 大多数新的语言功能(包括 LINQ)都可以在面向 2.0 应用程序时使用。 确实,您需要提供自己的 System.Core 替代品。 有多个可用,因此您不必手动编写代码。 我觉得其中许多功能足以改进我的编程,足以保证这种方法。
语言功能 我喜欢使用向下定位的
Personally, I love to use VS2008 to down target 2.0 applications. Most of the new language features, including LINQ, can be used when down targeting 2.0 applications. True you need to provide you're own replacement for System.Core. There are several available so you don't have to hand code it. I feel like many of these features improve my programming enough to warrant this approach.
Language Features I enjoy using down targetted
我认为迁移到 2008 年的最大好处将是 C# 3.0 中的新功能。 自 2.0 以来,.NET 3.5 的运行时 (CLR) 并没有发生太大变化。 您可能需要向所有客户端推出升级,但这还不错(只需告诉人们使用 Windows Update 更新他们的 .NET 运行时即可。)
程序员会感谢您的,2008 年有一些很棒的新功能!
I think the biggest benefits of moving to 2008 will be the new features in C# 3.0. The runtime (CLR) for .NET 3.5 has not really changed a whole lot since 2.0. You may need to push out upgrades to all the clients, but that's not too bad (just tell people to update their .NET runtime using Windows Update.)
The programmers will thank you, there are some great new features in 2008!
我会说不,但从另一个角度思考这个问题,
仍然没有。
I would say no, but think about this question from the otherside,
Still No.