In the .NET Framework environment, we often do
To publish a web project without going directly deployed to IIS, configure the host name, modify the hosts file, you can use a custom domain to access our application, using attach to the process (w3wp.exe) to debug us program, I think most .NET programmers is to do so. So in .NET Core environment you can also do this? The answer is yes.
Creating a ASP.NET Core 2.0 web project, right click and choose "Properties" in the project, select "Debug" tab
In fact, we can also modify launchSettings.json manual files directly, add the following node
Next, install the .NET Core Windows Server Hosting installation package, then we can deploy ASP.NET Core IIS application to go, it is noted that the application pool selection no managed code model,
Debugging, then we can also select "Debug" → "attach to the process", the administrator needs to start VS, there can not be a w3wp.exe, select dotnet.exe
Excerpt: https: //www.bbsmax.com/A/GBJre1aWz0/