开发者

Add Config Transforms not adding all configurations

I'm having an issue with the "Add Config Transforms" option in Visual Studio 2010. I have an ASP.NET 4.0 web project with the following 4 configuration modes defined:

  • Debug
  • Local
  • PreProduction
  • Release

When I right click on the web.config and select "Add Config Transforms" only the following two config transforms are added:

  • Web.Debug.config
  • Web.Release.config

The开发者_如何学Python "PreProduction" and "Local" files do not show up. Is there a setting that I'm missing that would cause these two files to now show up?


Verify that the same configurations have been defined for the project and not just the solution.


Right Click the solution and open up the configuration manager,

Now in the top box select a new configuration. The project you are having problems with will be marked Release or Debug.

Click the drop down and select new.

Deselect the checkbox at the bottom, and type in the name of the selected configuration. use copy values from release.

Close and save,
rinse and repeat.

now right click the main config file and add transforms.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜