The Configuration File 'Configuration.json' Was Not Found and Is Not Optional.

2016-05-22

problem

When I switched to RC2 and tried to publish the website I got the error about missing configuration file.

sample error

reason

For some reason configuration files was not copied. Initialiity I thought that I did not set the fiel property, but such are missing in the xproj no.w

solution

To solve the problem I have to update the project.json. There is a section responsible for coping all non compilable files, it is called publishOptions

"publishOptions": {
"include": [
  "wwwroot",
  "Views",
  "Configuration.json",
  "web.config"
]

},


Blog comments powered by Disqus