MsBuild error after updating to Visual Studio 2019 version 16.11.3

Vincent williams 1 Reputation point
2021-09-23T14:28:01.143+00:00

I was working on a project using a lesser version of visual studio 2019 after updating to version 16.11.3, I merged my current project with an online git branch and try to rebuild which failed with an MSBuild error: Resource file "Migrations\202101012204559_SpecialtyTable.resx" cannot be found but the all the files are intact in the project folder.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,420 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,531 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 45,996 Reputation points
    2021-09-23T15:58:55.257+00:00

    Doesn't seem like an issue with msbuild or the new VS update to me. You said you merged your current project into Git but I wonder if what you see as the project structure is the actual structure on disk to Git. It really depends on where the build is occurring. If this is being triggered by your CI process then the current branch contents is either your PR branch or the master branch after your PR branch merged.

    I would start by cloning your repo to a brand new directory. Then verify the resource file is where you expect it to be. Given the name it appears it should under the project directory where it is being referenced. Next I would do a command line build from the Developer command prompt. If it builds there then everything should be fine. However I'm assuming your command line build is using the same settings as the build that is failing (aka same configuration, platform, etc). I would then move on and try a Visual STudio build. It should continue to work.

    0 comments No comments

  2. Limitless Technology 39,301 Reputation points
    2021-09-24T09:39:44.49+00:00

    Hello @Vincent williams ,

    You issue seems to be very specialized, I would also recommend to create a Feedback to the Developer Community of Microsoft, were VS experts would have more visibility of your scenario.

    More information at: https://learn.microsoft.com/en-gb/visualstudio/ide/developer-community-guidelines?WT.mc_id=visualstudio_community_aka_vsfeedbackguidelines&view=vs-2019

    -------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments