asp.netmacoshomebrewxsp

Getting "ApplicationHost.cs file not found" when trying to start existing project on macOS


ASP.NET newbie here.

Never faced it before, but right now I've faced a critical need to make some adjustments to an existing application. My platform is OS X. I understand that ASP.NET is mostly for windows, but still researched an internet and it looked for me, that it's still possible to run it on my mac.

When I run a project, I get an error:

ApplicationHost.cs file is not found

My Call Stack looks like:

System.Web.Hosting.ApplicationHost.CreateApplicationHost(System.RuntimeType hostType, string virtualDir, string physicalDir)
Mono.WebServer.VPathToHost.CreateHost(Mono.WebServer.ApplicationServer server, Mono.WebServer.XSPWebSource webSource)
Mono.WebServer.XSP.Server.DebugMain(string[] args, bool root, Mono.WebServer.IApplicationHost ext_apphost, bool quiet)
Mono.WebServer.XSP.Server.DebugMain(string[] args)
Mono.WebServer.XSP.Server.Main( Parameters)

I've researched XSP server, but looks like it was removed from homebrew, so I feel myself stucked. Is there any way to run this on Mac without windows virtual machine?

I am ready to provide any additional info you need, but I just don't know what exactly is important to know

Thanks in advance for any kind of help


Solution

  • As I have heard using Mono is not comfortable approach It seems like there are two solutions

    1. To use Windows to continue development on Windows
    2. To porte project to ASP.NET Core