简体   繁体   English

从3.5转换为4.0框架

[英]Converting from 3.5 to 4.0 framework

we are trying to convert our web application from .net framework 3.5 to 4.0 我们正在尝试将Web应用程序从.net Framework 3.5转换为4.0
The application contains a wcf project. 该应用程序包含一个wcf项目。 will VS 2010 convert this project and update the service references in the web application automatically? VS 2010将转换此项目并自动更新Web应用程序中的服务引用吗? or should i do it manually by updating every service reference? 还是应该通过更新每个服务参考手动进行操作?

Why not just back-up the project, then convert? 为什么不只是备份项目,然后转换呢? That'll tell you how well it'll convert immediately afterwards, when you try to run it. 这将告诉您,当您尝试运行它时,它将立即转换得很好。

我猜想VS2010会自动执行。但是如果我没记错的话,目标框架仍将保持3.5。

Where did you create the service reference? 您在哪里创建服务参考? VS2010 or VS2008 VS2010或VS2008

if you did it in VS2010 I wouldn't worry about updating it since VS2010 uses svcutil v4 to create the reference even if the target framework for the project was 3.5. 如果您在VS2010中完成此操作,则无需担心对其进行更新,因为VS2010使用svcutil v4创建引用,即使该项目的目标框架为3.5。 If you dig into the code generated you can see it was generated with WCF 4 tools. 如果您深入研究生成的代码,则可以看到它是使用WCF 4工具生成的。

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

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