MattW
MattW

Reputation: 113

Unable to create new build configuration

Here's an annoying one.

I have a solution in Visual Studio 2012 that contains a .Net 4.5 class library, a .NET 4.5 web application and a .NET 4.5 website.

I want to create a new build configuration, let's call it Publish or Live, mainly so that I can select it when publishing the web application and use a web.config transform.

So I click my Solution, go to Build then Configuration Manager. In the configuration dropdown, I choose , and I get the little popup asking me for the name of the new configuration etc. I fill this in, click OK, and......nothing. Nada.

No matter what I call the new configuration, whether I choose to copy from an existing configuration etc, no new configuration is created. Am I missing something blindingly obvious?

Thanks,

Matt

Upvotes: 9

Views: 2625

Answers (3)

Gerrit Horeis
Gerrit Horeis

Reputation: 561

I recently had the same problem. I figured out that VS 2019 doesn't like it to have projects grouped in an project folder (virtual folder) which is named the same way as the project is. Or where the "virtual" folder name has the same name as an actual project

Example:

(virtual) project folder name: CompanyName.Webservice Content: CompanyName.Webservice (from CompanyName.Webservice.csproj)

In that case I couldn't neither add or rename project configurations nor execute transformation of web.config files of that project

Hope that helps someone after so many years...

Upvotes: 3

Hoppe
Hoppe

Reputation: 6815

I had the same issue, but when I deselected 'create new project configurations', I was able to create a new solution configuration.

Upvotes: 6

Aghilas Yakoub
Aghilas Yakoub

Reputation: 29000

If you cannot find solution configuration settings on the Standard toolbar or cannot access the Configuration Manager, you may have Visual Basic developer settings applied. For more information, see How to: Manage Build Configurations with Visual Basic Developer Settings Applied.

Link : http://msdn.microsoft.com/en-us/library/kkz9kefa.aspx

Solution :

Link : http://msdn.microsoft.com/en-us/library/ms165414.aspx

Upvotes: -3

Related Questions