开发者

Things to consider before move to VS2010 from VS2008 C#

开发者 https://www.devze.com 2023-02-22 22:32 出处:网络
We have got a C# Windows application which uses devexpress controls, enterprise library and CC.net 开发者_如何转开发for building. We are planning to migrate VS2010 soon.

We have got a C# Windows application which uses devexpress controls, enterprise library and CC.net 开发者_如何转开发for building. We are planning to migrate VS2010 soon.

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:

http://msdn.microsoft.com/en-us/library/ee855831.aspx


If you are still targeting .NET 3.5 then the move should be very smooth. We recently moved a very large WinForms app across and encountered a couple of minor issues:

  • Some of our resx files contained serialized generic lists of our own custom types, which caused compile errors. Never got to the bottom of why this was, but we just deleted them from the resx files and set the [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] attribute on the offending properties
  • The syntax checking of XML comments is slightly stricter, meaning you could get extra warnings (and with all warnings as errors turned on this broke our build)


We did a similar migration almost a year ago (just after Visual Studio 2010 was released). That was a little bit too early as DevExpress were not quite ready with their .NET 4 version yet. We had to run the web application in "compatibility mode" for a week or so.

There were very few issues. From what I remember (our product is half .NET and half C++):

  • Some third party controls needed updating
  • Some internal names crashed with new .NET 4 BCL classes.
  • C++ project started to use MSBuild so that was some work up upgrade the project files.


I faced this : on XP machine, trying to build a project referencing a COM with multiple objects inside. 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.

EDIT: solution here.

0

精彩评论

暂无评论...
验证码 换一张
取 消