我有VS 2013,我创建了一个新的sharepoint 2013应用程序。它在asp.net mvc中创建应用程序和应用程序web项目,但是在创建后它不会编译主要有2个问题:
1. SharePointContextFilter class is not there.
第二。当我尝试通过nuget添加AppForSharepointWebToolkit时出现此错误:
Installing 'AppForSharePointWebToolkit 3.0.1'.
Successfully installed 'AppForSharePointWebToolkit 3.0.1'.
Adding 'AppForSharePointWebToolkit 3.0.1' to Contoso.Apps.Helpdesk2Web.
Executing script file 'c:\users\xx\documents\visual studio 2013\Projects\Contoso.Apps.Helpdesk1\packages\AppForSharePointWebToolkit.3.0.1\Tools\uninstall.ps1'.
Uninstalling 'AppForSharePointWebToolkit 3.0.1'.
Successfully uninstalled 'AppForSharePointWebToolkit 3.0.1'.
Install failed. Rolling back...
Failed to add reference to 'Microsoft.IdentityModel'. Please make sure that it is in the Global Assembly Cache.
请注意我正在尝试在线创建一个sharepoint应用程序,我在这台机器上没有共享点,当然不需要。
答案 0 :(得分:1)
仅供读者使用,以防有人再次体验。这种情况发生在安装vs 2013后你没有重新启动你的电脑时,确实有奇怪的行为,但重新启动后,创建了sharepoint contexfilter并构建了解决方案