2

I'm trying to run my .net application on macbook pro. I installed visual studio for mac and opened an existing application.

Below is the .net core version details installed. enter image description here

Below is the error i'm getting

Error MSB6004: The specified task executable location "/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/4.5/aspnet_compiler.exe" is invalid. (MSB6004)

the error is thrown in the .csproj file at the below mentioned line.

<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />

Visual Studio version details

enter image description here

Will this application work at all on macosx? i can add any other information that might be needed.

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Shruti Nair
  • 1,982
  • 8
  • 30
  • 57
  • Is `aspnet_compiler.exe` even in the location `/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/4.5/`? – l'L'l Jan 30 '19 at 09:21
  • No its not there.What next? – Shruti Nair Jan 30 '19 at 10:02
  • Good question... I'm not sure to be honest, but that is why you have the error obviously. I'm not running the latest `macOS`, but I checked in my `mono` framework (it's `5.8.0`) and `aspnet_compiler.exe` wasn't in mine either. I would imagine there's another location it might be which you'd probably need to reference correctly. Maybe have a look @ https://stackoverflow.com/questions/8843510/aspnet-compiler-on-mono – l'L'l Jan 30 '19 at 10:05
  • From what I was reading `VirtualPath="temp"` needs to be the location of a precompiled project apparently. – l'L'l Jan 30 '19 at 10:13

0 Answers0