This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17318|Reply: 3

[New Issue] Configure the hosting.json for ASP.NET Core site

[Copy link]
Posted on 2/12/2019 1:13:39 PM | | |
Blog Garden This post was writtenhttps://www.cnblogs.com/dudu/p/6233131.htmlConfiguration process
Where a hosting.json file is created first:
In addition to configuring server.urls, the above configuration also configures the environment (the default is Production).
Then use the configuration in hosting.json in Program.cs:


Note that you must put the above . UseUrls() to delete, otherwise the configuration in hosting.json will be overwritten by it.

Also note that in addition to adding "hosting.json" to "publishOptions" in project.json, it is also necessary to add """buildOptions" -> "copyToOutput" to add "hosting.json",Otherwise, the hosting.json file will not be found in the bin folder at runtime.



Red bold font Where is this options menu in Visua Studio 2017 I can't find it Please give me an answer?








Previous:On the eighth day of the Lunar New Year, everything goes well! These zodiac signs easily grasp financial luck and open the door to careers...
Next:About ransomware
 Landlord| Posted on 2/12/2019 1:13:54 PM |
Posted on 2/12/2019 7:09:06 PM |
Is it a VS version problem, maybe the old version has it, and the new version has been removed,
 Landlord| Posted on 2/12/2019 7:21:59 PM |
Xiao Zhaozha Posted on 2019-2-12 19:09
Is it a VS version problem, maybe the old version has it, and the new version has been removed,

I also thought that after updating Visual Studio a few times, a lot of the code generated by the program changed
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com