视觉工作室 - 无法删除的项目配置 [英] Visual studio - can't remove project configurations

查看:96
本文介绍了视觉工作室 - 无法删除的项目配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果
我有一个项目配置的一大难题。一切开始的时候,我想基于现有的调试配置中添加新的解决方案的配置(名为Dev_WithSource),并检查创建项目配置。出于某种原因,项目配置登记SLN文件中,在Configuration Manager正常显示,但在文件的csproj的PropertyGroup条件块没有建立。这导致OutputPath没有设置...错误。


I have a major problem with project configurations. Everything started when I wanted to add new solution configuration (named "Dev_WithSource") based on existing "Debug" configuration and checked "Create project configurations". For some reason project configurations were registered inside sln file, properly showing in Configuration manager, but "PropertyGroup Condition" blocks in csproj files weren't created. That resulted in "OutputPath not set ..." error.

所以,我想重复整个过程。删除提到Dev_WithSource从SLN文件中的所有行之后,Dev_WithSource项目配置仍显示在配置管理器。我搜索我的解决方案所有的csproj和SLN文件。他们既不包含文本Dev_WithSource。

So, I tried to repeat whole procedure. After deleting all lines mentioning "Dev_WithSource" from sln file, "Dev_WithSource" project configurations are still showing in configuration manager. I searched all csproj and sln file in my solution. Neither of them contain text "Dev_WithSource".

所有的,我试过事件发展中加载后。我可以卖到与project.ConfigurationManager.ConfigurationRowNames幻影配置,但我也不能删除它们。
我缺少的东西吗?存储在一些其他文件的配置,而不​​是的csproj /前哨?

After all that I event tried developing add-in. I can fetch phantom configurations with project.ConfigurationManager.ConfigurationRowNames but I also can't delete them. Am I missing something? Are those configurations stored in some other files and not csproj/sln?

感谢。

推荐答案

我解决了这个用的工具,它分析的csproj文件,并插入必要的PropertyGroup块插入的csproj文件中。老项目配置依然出现在配置管理器,但我放弃了试图删除它们。

I solved this with utility which parses csproj files and inserts necessary propertygroup blocks into csproj files. Old project configurations still appear in configuration manager but I gave up trying to delete them.

这篇关于视觉工作室 - 无法删除的项目配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆