If you are getting started with App or Microsoft SharePoint Server 2013 development, you will notice that there is no option in Visual Studio 2012 when you first install it.
In order to get the templates into VS, you need to install Microsoft Office Developer Tools for Visual Studio 2012 which can be found here: http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio (direct install : http://aka.ms/OfficeDevToolsForVS2012).
但是,在你的安装过程中可能会出现如下错误:

我尝试了半天,发现是病毒防护软件引起的。关掉软件就可以安装成功。希望这一办法对你有用。

浙公网安备 33010602011771号