How to use Console.WriteLine in ASP.NET (C#) during debug?

后端 未结 7 835
误落风尘
误落风尘 2020-12-22 21:51

I want to write some result to the console in ASP.NET (C#). It works in a Window application, but a Web application does not work. Here is what I have tried:



        
7条回答
  •  无人及你
    2020-12-22 22:23

    You shouldn't launch as an IIS server. check your launch setting, make sure it switched to your project name( change this name in your launchSettings.json file ), not the IIS.

提交回复
热议问题