0

When you first run an ASP.NET Core website, Visual Studio adds an entry to .vs\config\applicationhost.config. It sets the site name to the name of the project. For example:

<site name="MyWebProject" id="2">

I wish it used the assembly name rather than the project name. In any case, how do you override it to use a name of your choosing?

Edward Brey
  • 40,302
  • 20
  • 199
  • 253
  • Anyway that config file is for debugging. Why do you think it matters? – Lex Li Dec 23 '17 at 13:18
  • The IIS Express management page that you can open from the system tray uses this name to show the website it is running. You can run websites from different solutions whose project names are unique within their solutions but ambiguous across solutions. – Edward Brey Dec 23 '17 at 13:23
  • Does changing the name in that config file work…? – poke Dec 23 '17 at 17:12
  • @poke No. If you do that, the website doesn’t load. – Edward Brey Dec 23 '17 at 17:13

0 Answers0