简体   繁体   English

vs2005和vs2010项目的解决方案。

[英]Solution with vs2005 and vs2010 projects.Any problems

I am currently working in a place where they still use .net 2.0. 我目前在他们仍然使用.net 2.0的地方工作。 I would like to add some projects(. net 4.0) to existing solution . 我想在现有解决方案中添加一些项目(.net 4.0)。

Would this create any issues? 这会造成任何问题吗?

I suppose as long I use a "top down approach " I should be fine no? 我想只要我使用“自上而下的方法”,我应该可以吗?

Is there something that I am missing that could cause issues? 我缺少某些可能引起问题的东西吗?

应该没有问题,但是我建议将您的项目更改为4.0,然后添加其他项目。

Assuming you are using VS2010 as IDE No, this won't create any issue. 假设您使用VS2010作为IDE,则不会产生任何问题。 Your .Net 2.0 projects will still be built against .Net framework 2 and similarly .Net 4 project will target .Net Framework 4. 您的.Net 2.0项目仍将针对.Net Framework 2构建,同样,.Net 4项目将针对.Net Framework 4。

.NET 4.0 is isolated from previous versions, so you will have to add a setting to your app.config so 4 can see the other versions. .NET 4.0与以前的版本隔离,因此您必须在app.config中添加一个设置,以便4可以看到其他版本。

  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>

I have one solution with five 2.0 projects and six 3.5 projects and one 4.0 project in Visual Studio 2010. 在Visual Studio 2010中,我有一个包含五个2.0项目,六个3.5项目和一个4.0项目的解决方案。

There were issues with the auto-generated designer code for Strongly-Typed DataSet classes that were fairly easy to resolve. 自动生成的针对强类型数据集类的设计器代码存在一些问题,这些问题很容易解决。 I do suggest opening any entities that use designers so the auto-generated code is updated to Visual Studio 2010. This includes settings, resources, Windows.Form form/control classes, and so on. 我确实建议打开任何使用设计器的实体,以便将自动生成的代码更新为Visual Studio2010。这包括设置,资源,Windows.Form表单/控件类,等等。

Two other issues required updating to Crystal Reports for Visual Studio 2010 and updating to Visual Studio Tools for Office 3.0 for the projects that used Cystal Reports and Office. 对于使用Cystal Reports和Office的项目,需要另外两个问题更新到Visual Studio 2010的Crystal ReportsOffice 3.0的Visual Studio Tools

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM