TargetOfficeVersion in SharePoint .csproj only accepts 19.0 for SharePoint 2019

Adam Shigley 0 Reputation points
2026-08-21T18:16:26.2233333+00:00

According to the ISharePointProject.TargetOfficeVersion page, the only acceptable values for this are 14.0 and 15.0. When entering those, I get warnings that the SharePoint version 2010 and 2016 are not installed on this server.

I am unable to connect to deploy SP 2019 to create a .wsp using the recommended value of 15.0. Only entering 19.0 allows me to connect.

Is this an issue with Visual Studio, my installed SharePoint instance, or the documentation?

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments

1 answer

Sort by: Most helpful
  1. Hendrix 990 Reputation points Independent Advisor
    2026-08-21T20:09:23.1733333+00:00

    Hi Adam,

    For your concern, the behavior you are seeing is caused by a difference between Visual Studio’s SharePoint 2019 tooling and the information currently shown on the ISharePointProject.TargetOfficeVersion documentation page.

    The TargetOfficeVersion value tells Visual Studio which generation of SharePoint tooling the project targets. It is not the SharePoint server’s exact build or assembly version.

    For example:

    • 14.0 identifies the SharePoint 2010 tooling generation.
    • 15.0 identifies an older SharePoint tooling generation associated with SharePoint 2013.
    • 19.0 identifies the tooling target used for SharePoint Server 2019 projects.

    This explains why Visual Studio reports that the required SharePoint product is not installed when you enter 14.0 or 15.0. By entering either of those values, Visual Studio validates the project against an older SharePoint development environment. Since the server has SharePoint Server 2019 installed instead, that validation fails.

    Therefore, for your SharePoint 2019 farm-solution project, you should keep using 19.0. Microsoft also states in SharePoint Server 2019 development platform that Visual Studio 2017 version 15.9 and later includes dedicated SharePoint 2019 tooling extensions for SharePoint add-ins, farm solutions, and sandbox solutions.

    Hope this information would be helpful. Should you have any further questions or need additional assistance, please feel free to share them in the comment below. I'm very happy to help.  

    Thank you for your patience and understanding.


    If the answer is helpful, please click "Yes".

    Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.