从框架3.5转换为框架4 [英] Conversion from Framework 3.5 to Framework 4

查看:90
本文介绍了从框架3.5转换为框架4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个.Net Framework 3.5的Web应用程序。要求是将整个应用程序转换为Framework 4.我想知道如何继续以及可能的问题是什么。任何人都可以帮助我。



谢谢,

karthik。

Hi,
I have a web application which is .Net Framework 3.5.The requirement is to convert the entire application into Framework 4. I want to know how to proceed and what are the possible issues.Can any one help me.

Thank you,
karthik.

推荐答案

不需要特别转换任何内容:Framework 4.0向后兼容3.5。在程序集中,您可以更改目标。如果您使用VS 2010打开3.5解决方案,解决方案和所有项目文件将在您允许的情况下自动转换。



-SA
There is not need to convert anything specifically: Framework 4.0 is backward-compatible with 3.5. In your assemblies, you can change the target. If you open 3.5 solution with VS 2010, the solution and all project files will be converted automatically, with your permission.

—SA


转到项目



右键单击 - > ProperyPages - >构建 - >

单击目标框架选择下拉列表然后确定。
Go to The Project

Right Click On that -> ProperyPages -> Build ->
Click Target Framework Select Dropdown Then Ok.


WebRequest webRequest = WebRequest.Create(url +StockInformationHandler.ashx?{\Type \:\getstockprice \,\arr \:\+ string.Join(,,isins)+\});

WebResponse webResponse = webRequest.GetResponse();

流responseStream = webResponse.GetResponseStream();

MemoryStream memoryStream = new MemoryStream();

responseStream.CopyTo(memoryStream);

JavaScriptSerializer ss = new JavaScriptSerializer();

返回ss.Deserialize< list>< symboldata>>
WebRequest webRequest = WebRequest.Create(url + "StockInformationHandler.ashx?{\"Type\":\"getstockprice\",\"arr\":\"" + string.Join(",", isins) + "\"}");
WebResponse webResponse = webRequest.GetResponse();
Stream responseStream = webResponse.GetResponseStream();
MemoryStream memoryStream = new MemoryStream();
responseStream.CopyTo(memoryStream);
JavaScriptSerializer ss = new JavaScriptSerializer();
return ss.Deserialize<list><symboldata>>


这篇关于从框架3.5转换为框架4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆