自定义解决方案配置没有出现在Visual Studio 2010中达出现在、自定义、解决方案、Visual

2023-09-02 23:44:17 作者:男宠

我添加了名为临时的解决方案配置。它显示了在下降VS下来,而不是在配置管理器包/发布Web屏幕。在此屏幕上,那些我在下拉菜单中看到的是:

I added a solution configuration called 'Staging'. It does show up on the drop down in VS, but not in the Configuration Manager in 'Package/Publish Web' screen. On this screen, the ones I see in the dropdown are:

活动(释放) 调试 发布 在所有配置

我不明白分期这里给我包中的临时模式

I don't see Staging in here for me to package in the Staging mode

推荐答案

我找到了一个解决方案,以增加新的项目创建自定义生成后配置的问题 -

I found a solution to the issue of adding a new project AFTER creating a custom build config -

右键单击该解决方案。 选择从上下文菜单中选择属性。 在出现的对话框中,在左侧窗格中单击配置属性。 单击配置管理器...按钮,在右上角。 向下滚动到您的新项目。 在配置栏中为您的项目,选择&LT;新建...&GT; 在出现的对话框中,输入名称现有项目,并取消选中,上面写着创建新的解决方案配置(因为它在解决方案层面已经存在)的框。 走进该项目的属性,你将看到这个配置。在您的项目配置应用需要的属性。 Right click on the solution. Select "Properties" from the context menu. In the resulting dialog, click on "Configuration Properties" in the left hand pane. Click the "Configuration Manager..." button on top right. Scroll down to your new project. Under the "Configuration" column for your project, select <New...>. In the resulting dialog, enter the name of your existing project, and un-check the box that says "Create new solution configurations" (since it already exists on the solution level). Go into the properties of that project and you will now see this configuration. Apply necessary properties for that configuration in your project.