When I issue the following command in the command line:
dotnet publish -o \"./../output\" -c Release
The dotnetcli
publishes the pr
In your project.json
there is a section publishOptions
. This lists all the files and folders that will be included when you publish. You will need to update yours to look something like this
{
"publishOptions": {
"include": [
"wwwroot",
"Views",
"appsettings.json",
"appsettings.Production.json",
"web.config"
]
},
}
You can also use globbing patterns, so you should find this works too (I haven't tested this one)
{
"publishOptions": {
"include": [
"wwwroot",
"Views",
"appsettings*.json",
"web.config"
]
},
}