Code migration from SharePoint 2013 to SharePoint 2019 failed in Visual studio 2019

Shahid K 11 Reputation points
2021-06-23T06:06:41.877+00:00

I have custom C# code which was written for SharePoint 2013 using Visual Studio 2015. We now moved from SharePoint 2013 to SharePoint 2019. The custom code also needs to migrate.

When I opened that solution in Visual Studio 2019 Ent for SharePoint 2019, it asked me to upgrade/migrate.

After upgrade also, I got some missing SharePoint DLL reference errors. I fixed them by referring from ISAPI folder. However all build errors are gone but when I deploy solution on a SharePoint 2019 site I get 0 error but build fails and says 1 failed.

108463-qnzwz.png

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,569 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-06-24T06:29:09.453+00:00

    Hi @Shahid K ,

    You could try to restart the VS/Computer, maybe it would work for you.

    To troubleshoot this issue, you could refer to this post in SO: https://stackoverflow.com/questions/13239325/how-to-find-reason-of-failed-build-without-any-error-or-warning


    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.