The OutputPath property is not set for this project

I had exact same error after adding a new configuration via ConfigurationManager in Visual Studio.

It turned out when the ‘Production’ configuration was added for the whole solution (and each project) the OutputPath element was not added to the .csproj files.

To fix, I went to the Build tab in project properties, changed OutputPath from \bin\Production\ to \bin\Production (deleted trailing \) and saved changes. This forced creation of the OutputPath element in the .csproj file and the project has built successfully.

Sounds like a glitch to me.

Leave a Comment