简体   繁体   English

为什么 sharepoint 2010 针对.Net 2.0 版?

[英]Why is sharepoint 2010 targeting .Net version 2.0?

Whenever I have an error on my page it prints out the.Net and ASP versions being used.每当我的页面出现错误时,它就会打印出正在使用的.Net 和 ASP 版本。 It says:它说:

Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420 

Why is it targeting 2.0 and how can I change it to use 3.5?为什么它以 2.0 为目标,如何将其更改为使用 3.5?

Remember that for the purposes of asp.net, 3.5 is just a set of extensions for the 2.0 runtime.请记住,就 asp.net 而言,3.5 只是 2.0 运行时的一组扩展。 So 3.5-based sites still show 2.0 here, because they are running in a 2.0 app pool.因此,基于 3.5 的网站仍然在此处显示 2.0,因为它们在 2.0 应用程序池中运行。 If you have 3.5 code you need, it should work just fine here.如果你有你需要的 3.5 代码,它应该在这里工作得很好。

You can't change what SharePoint's DLLs are targeting.您无法更改 SharePoint 的 DLL 的目标。 That being said, there is no point.话虽如此,没有意义。 Any code that you add to the GAC can be in 3.5.您添加到 GAC 的任何代码都可以在 3.5 中。 If you write an app to pull/push data to a SharePoint site, you can use 3.5.如果您编写应用程序将数据拉/推到 SharePoint 站点,则可以使用 3.5。 You gain nothing by trying to switch the.Net version that SharePoint is targeting.通过尝试切换 SharePoint 所针对的 .Net 版本,您将一无所获。

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

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