我已经设法让 fsi.exe 变成 64 位......接下来我希望它能够加载/使用 .NET 3.5。有没有人想出办法做到这一点?
我发现了一些关于这个的过时的博客条目......但没有解决方案。
因为没有办法支持旧版本。如果我尝试将 .NET 3.5 DLL 加载到 FSI 中,我会收到以下错误
> let s = new SPSite("http://myserver/sites/test");;
System.PlatformNotSupportedException: Microsoft SharePoint is not supported
with version 4.0.30319.269 of the Microsoft .Net
Runtime.
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_Farm()
at Microsoft.SharePoint.Administration.SPFarm.FindLocal(SPFarm& farm, Boolean& isJoined)
at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
at <StartupCode$FSI_0005>.$FSI_0005.main@()
Stopped due to error
>