How to bypass Sharepoint Server checking when pushing changes to dev.azure.com via VS2019?

Jefferson Mendoza 96 Reputation points
2021-10-14T06:16:30.787+00:00

Recently I was unable to commit changes to online repo for a custom API I created for SharePoint. Before I was able to commit but after recent updates, VS is now throwing this errror:

The required version of SharePoint Foundation or SharePoint Server is not installed on this system. The target version of the SharePoint project is 2019.

PS: im trying to publish on same computer, same user, same azure repo account.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,564 questions
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,655 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jefferson Mendoza 96 Reputation points
    2021-10-15T02:40:58.927+00:00

    Hi Michael,

    I found out it was the .NET version.
    At first I created the solution using .NET version 4.6.2, created the online repo, and was able to push proceeding updates.
    Later I changed the solution's .NET version to 4.7.2, since then all my publish was stuck to Outgoing Push state.

    I also noticed error message showing in the output is not related at all because that particular issue where SharePoint server is missing is still there but the publish-and-commit-all was successful.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-10-15T02:34:13.833+00:00

    Hi @Jefferson Mendoza ,

    Which kind of sharepoint project did you build?

    For SharePoint farm solution, you need to install Visual Studio in the SharePoint Server.

    We can develop SharePoint add-in solution in remote server.

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/sharepoint-add-ins


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments