Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resource file "**/*.resx" cannot be found. (MSB3552) on VS for Mac

Tags:

We can't build solution on vs for Mac version but the same solution can build on vs for windows (vs 2017) and it's worked.

How to fix on this problem ? and can support on both (vs on windows & vs on Mac)

Thanks you. enter image description here enter image description here

/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets

like image 659
Uthen Avatar asked Aug 10 '17 07:08

Uthen


2 Answers

I was running dotnet core on osx and had the same issue. The problem was that I generated a folder using a windows path. When created on disk, it was not visible in Finder due to its naming \Uploads. Do a ls -la and see if there are any strange folders or files in there. See Image

like image 153
pinty Avatar answered Oct 31 '22 02:10

pinty


I was trying to fix that problem like a two months and finally found what's wrong. I had backward slash '\' in project files which is Windows style path, but I am using Mac so it was creating directory with plain name 'wwwroot\test' (not nested). If I remove that folder it successfully builds.

like image 31
neko_code Avatar answered Oct 31 '22 01:10

neko_code