Visual Studio 2017和SharePoint 2010项目 [英] Visual Studio 2017 and SharePoint 2010 projects

查看:113
本文介绍了Visual Studio 2017和SharePoint 2010项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2017是否支持SharePoint 2010项目?


我可以为SP2013和SP2016创建项目,但是......


来自







https://docs.microsoft.com / en-us / visualstudio / porting / port-migrate-and-upgrade-visual-studio-projects


似乎VS2017将SP2010项目转换为SP2013或SP2016,这可能会使其无法部署到SP2010?


是否还有其他可用信息?

解决方案

嗨理查德,


欢迎来到MSDN论坛。


如您所见,我们只能在VS 2017中创建SharePoint 2013和2016.


>>看来VS2017将SP2010项目转换为SP2013或SP2016,这可能会使其无法部署到SP2010?


据我所知,如果您升级或转换在较新版本中在之前的VS版本中创建的项目,则无法在之前的VS版本中直接打开此项目,因为某些版本是
此项目中的更改应该与以前的版本兼容。对于SharePoint 2010项目,请看一下:
导出,迁移和升级Visual Studio项目,我发现它描述了"对于SharePoint 2010,您可以在Visual Studio 2013,Visual Studio 2012和Visual Studio中打开项目
2010 SP1。",所以看起来合理,当您在VS 2017中打开SharePoint 2012项目时,需要升级到SharePoint 2013或2016,因为SharePoint 2013和2016是VS 2017中支持的模板类型。


您可以备份SharePoint 2010项目,并确保必须在Visual Studio 2017中安装".NET桌面开发"工作负载才能进行升级
在VS 2017中升级一个SharePoint 2010项目进行尝试,然后部署到SharePoint 2010.通常,VS支持与以前版本的向后兼容性和
反向不起作用。如果您在部署期间遇到任何问题,请重定向到这个适当的论坛:

https://social.msdn.microsoft.com/Forums/office/en-US/home?category=sharepoint
并启动新的线程与您的详细错误信息,您将从那里获得更专业的支持,我们的论坛是

讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统以及Visual Studio编辑器。很抱歉给您带来了不便,感谢您的理解。




祝你好运,


萨拉


Does Visual Studio 2017 support SharePoint 2010 projects?

I can create projects for SP2013 and SP2016 but...

From

https://docs.microsoft.com/en-us/visualstudio/porting/port-migrate-and-upgrade-visual-studio-projects

it appears that VS2017 converts a SP2010 project to SP2013 or SP2016 which presumably renders it un-deployable to SP2010?

Any further information available?

解决方案

Hi Richard,

Welcome to the MSDN forum.

Like you found, we can only create the SharePoint 2013 and 2016 in VS 2017.

>> it appears that VS2017 converts a SP2010 project to SP2013 or SP2016 which presumably renders it un-deployable to SP2010?

As far as I know, if you upgrade or convert a project that created in the previous VS version in a newer version, you cannot directly open this project in the previous VS version, since some changes in this project should be compatible with the previous version anymore. For the SharePoint 2010 project, please have a look at this: Porting, Migrating, and Upgrading Visual Studio Projects and I found it describes "For SharePoint 2010, you can open the project in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1.", so it looks like reasonable, when you open a SharePoint 2012 project in VS 2017, it will be need to upgraded to SharePoint 2013 or 2016, since the SharePoint 2013 and 2016 is the supported template type in VS 2017.

You can back up your SharePoint 2010 projects, and make sure the ".NET Desktop Development" workload must be installed in Visual Studio 2017 for the upgrade then upgrade one SharePoint 2010 project in VS 2017 to have a try, then deploy to SharePoint 2010. Usually, VS support the backwards compatibility with previous version and reverse does not works. If you meet any issue during the deploy, please redirect to this appropriate forum: https://social.msdn.microsoft.com/Forums/office/en-US/home?category=sharepoint and start a new thread with your detail error information, you will get a more professional support from there, our forum is to discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. Sorry for this inconvenience and thank you for your understanding.

Best regards,

Sara


这篇关于Visual Studio 2017和SharePoint 2010项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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