Skip to main content
Improved indentation and syntax highlighting of JSON. Minor improvements to inline formatting and punctuation for readability.
Source Link
Jeremy Caney
  • 7.4k
  • 91
  • 54
  • 81

How to Configure an AlternativeAlternate Folder to wwwroot in ASP.NET Core?

Is it possible to configure a different folder to replace wwwrootwwwroot in ASP.NET Core? And, if yes, how and? And are there any side effects to this change?

The only config that currently includes wwwroot in the entire project is found in project.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.html) to be read.

"publishOptions": {
"include": [
  "wwwroot",
  "web.config"
]
},
"publishOptions": {
    "include": [
        "wwwroot",
        "web.config"
    ]
},

How to Configure an Alternative Folder to wwwroot in ASP.NET Core?

Is it possible to configure a different folder to replace wwwroot in ASP.NET Core? And if yes, how and are there any side effects to this change?

The only config that currently includes wwwroot in the entire project is found in project.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.html) to be read.

"publishOptions": {
"include": [
  "wwwroot",
  "web.config"
]
},

How to Configure an Alternate Folder to wwwroot in ASP.NET Core?

Is it possible to configure a different folder to replace wwwroot in ASP.NET Core? And, if yes, how? And are there any side effects to this change?

The only config that currently includes wwwroot in the entire project is found in project.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.html) to be read.

"publishOptions": {
    "include": [
        "wwwroot",
        "web.config"
    ]
},
added 6 characters in body
Source Link
Boiethios
  • 41.5k
  • 20
  • 142
  • 191

Is it possible to configure a different folder to replace wwwroot in ASP.NET Core? And if yes, how and are there any side effects to this change?

The only config that currently includes wwwrootwwwroot in the entire project is found in project.jsonproject.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.htmlindex.html) to be read.

"publishOptions": {
"include": [
  "wwwroot",
  "web.config"
]
},

Is it possible to configure a different folder to replace wwwroot in ASP.NET Core? And if yes, how and are there any side effects to this change?

The only config that currently includes wwwroot in the entire project is found in project.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.html) to be read.

"publishOptions": {
"include": [
  "wwwroot",
  "web.config"
]
},

Is it possible to configure a different folder to replace wwwroot in ASP.NET Core? And if yes, how and are there any side effects to this change?

The only config that currently includes wwwroot in the entire project is found in project.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.html) to be read.

"publishOptions": {
"include": [
  "wwwroot",
  "web.config"
]
},
Source Link
usefulBee
  • 9.6k
  • 10
  • 52
  • 94

How to Configure an Alternative Folder to wwwroot in ASP.NET Core?

Is it possible to configure a different folder to replace wwwroot in ASP.NET Core? And if yes, how and are there any side effects to this change?

The only config that currently includes wwwroot in the entire project is found in project.json as seen in the code below; but replacing the value with the name of the new folder is not enough for the static file (ex: index.html) to be read.

"publishOptions": {
"include": [
  "wwwroot",
  "web.config"
]
},