We need to be able to build SharePoint 2016 WebParts with Visual Studio 2017 on Windows 10.

david langford 1 Reputation point
2022-06-23T11:48:59.577+00:00

We need to be able to build SharePoint 2016 webparts with Visual Studio 2017 on Windows 10. How? Why do we need to have SharePoint Servers setup everywhere to build our SharePoint WebParts? Our source code needs to be security scanned (Fortify). Why do we need a Servers setup for this? We should be able to build VS projects on any computer. Up until VS 2015 we have been able to build our WebParts on a Windows Workstation, package them up and deploy to SharePoint Server. Microsoft please reply with a explanation and provide instructions on building and packaging SharePoint 2016 WebPorts using Visual Studio 2017 and Windows 10? Why is Microsoft intentionally making developer's life's miserable? It is extremly difficult to even get help from Microsoft anymore. How do we go to get help on this? Years ago it was much better. This should be a no brainer. I tried this which worked with VS 2015 and now not working with VS 2017. Development With A Dot - SharePoint Pitfalls: Creating a Visual Studio Project Without SharePoint Locally Installed (asp.net).

https://weblogs.asp.net/ricardoperes/sharepoint-pitfalls-creating-a-visual-studio-project-without-sharepoint-locally-installed

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,548 questions
{count} votes

2 answers

Sort by: Most helpful
  1. david langford 1 Reputation point
    2022-06-23T17:02:34.547+00:00

    I was able to get this all to work on VS 2017 and win10:

    Follow using 16 hive for SP2016.
    https://weblogs.asp.net/ricardoperes/sharepoint-pitfalls-creating-a-visual-studio-project-without-sharepoint-locally-installed

    Update registry with all settings HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0 settings from the SharePoint Server.

    Saw different problem with SP project not loading with "Update Required" error.
    Update MinimumOfficeToolsVersion from 14.6 to 14.0 in the project files.

    0 comments No comments

  2. RaytheonXie_MSFT 29,041 Reputation points Microsoft Vendor
    2022-06-24T07:04:15.483+00:00

    Hi @david langford ,
    Per my research, if you want to build SharePoint 2016 WebParts, you must create it in SharePoint 2016 environment. But SharePoint 2016 doesn't support win10. It only support following operating systems :
    Windows Server 2012 R2 Standard or Datacenter
    Windows Server 2016 Standard or Datacenter
    Windows Server 2019 Standard or Datacenter

    And I feel regretful to inform you that it turns out to be a by-design one. I also noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.