question

Vincentwilliams-4974 avatar image
0 Votes"
Vincentwilliams-4974 asked LimitlessTechnology-2700 answered

MsBuild error after updating to Visual Studio 2019 version 16.11.3

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-generalvs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @Vincentwilliams-4974,

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://docs.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--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.