Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error MSB4019 with visual studio for Mac

With visual studio for Mac

/Users/piyushbhatt/Projects/myfmf/FMF/FMF.Web/fmf.Web.csproj(3,3): Error MSB4019: The imported project "/Library/Frameworks/Mono.framework/Versions/5.0.0/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/WebApplications/Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. (MSB4019) (FindMeFood.Web)

like image 674
PVB Avatar asked Apr 27 '17 05:04

PVB


2 Answers

You can copy the WebApplications folder from /Library/Frameworks/Mono.framework/Versions/5.0.0/lib/mono/xbuild/Microsoft/VisualStudio/v14.0 to v15.0 to fix it.

like image 101
shine Avatar answered Sep 26 '22 06:09

shine


It is a bug fixed in Mono 5.0.1 release,

https://github.com/xmcclure/website/blob/1ea729c37c407aa6ec19ceef3b02f6969667ae3c/docs/about-mono/releases/5.0.1.md

like image 32
Lex Li Avatar answered Sep 24 '22 06:09

Lex Li