[英]Things to consider before move to VS2010 from VS2008 C#
We have got a C# Windows application which uses devexpress controls, enterprise library and CC.net for building. 我们有一个C#Windows应用程序,它使用devexpress控件,企业库和CC.net进行构建。 We are planning to migrate VS2010 soon. 我们计划很快迁移VS2010。
Have you come across similar situations? 你遇到过类似的情况吗? Are there any unforeseen issues? 有没有不可预见的问题?
If your code makes use of any of these features listed in column 1, you might need to take a look at this: 如果您的代码使用了第1列中列出的任何这些功能,您可能需要查看以下内容:
http://msdn.microsoft.com/en-us/library/ee855831.aspx http://msdn.microsoft.com/en-us/library/ee855831.aspx
We did a similar migration almost a year ago (just after Visual Studio 2010 was released). 我们差不多一年前(在Visual Studio 2010发布之后)进行了类似的迁移。 That was a little bit too early as DevExpress were not quite ready with their .NET 4 version yet. 这有点太早,因为DevExpress尚未准备好他们的.NET 4版本。 We had to run the web application in "compatibility mode" for a week or so. 我们必须以“兼容模式”运行Web应用程序一周左右。
There were very few issues. 问题很少。 From what I remember (our product is half .NET and half C++): 从我记忆中(我们的产品是一半.NET和一半C ++):
If you are still targeting .NET 3.5 then the move should be very smooth. 如果你仍然以.NET 3.5为目标,那么移动应该非常顺利。 We recently moved a very large WinForms app across and encountered a couple of minor issues: 我们最近移动了一个非常大的WinForms应用程序并遇到了一些小问题:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
attribute on the offending properties 从来没有深究这是为什么,但我们只是从resx文件中删除它们并在有问题的属性上设置[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
属性 I faced this : on XP machine, trying to build a project referencing a COM with multiple objects inside. 我遇到了这个问题 :在XP机器上,尝试构建一个引用内部有多个对象的COM的项目。 Specifically, i've encountered this with INetFwMgr
- (The type or namespace name 'INetFwMgr' could not be found (are you missing a using directive or an assembly reference?)
. Its seems that i am not the only one . 具体来说,我在INetFwMgr
遇到过这种INetFwMgr
- (The type or namespace name 'INetFwMgr' could not be found (are you missing a using directive or an assembly reference?)
INetFwMgr
(The type or namespace name 'INetFwMgr' could not be found (are you missing a using directive or an assembly reference?)
。似乎我不是唯一一个 。
EDIT: solution here . 编辑: 这里的解决方案 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.