简体   繁体   English

添加单元测试项目时,已存在名称已存在的文件或文件夹

[英]A file or folder with the name already exists when unit test project added

Large edit to make this more appropriate than "VS has a bug" complaint. 大编辑使这比“VS有bug”投诉更合适。

If I add a unit test project to my VS2012 solution, I can't add any item at all to any project in the solution. 如果我将单元测试项目添加到我的VS2012解决方案中,我就无法向解决方案中的任何项目添加任何项目。 VS complains that another file or folder with that name, whatever name I choose, already exists. VS抱怨使用该名称的另一个文件或文件夹,无论我选择什么名称,都已存在。 I also cannot add existing items to projects. 我也无法将现有项目添加到项目中。

If I remove the unit test project, problem goes away. 如果我删除单元测试项目,问题就会消失。 Does anyone know about some dumb way I set up my solution to trigger this problem? 有没有人知道我设置解决方案以解决这个问题的一些愚蠢方式?

Since I am unable to reproduce this in VS2013, and VS2012 is totally old by now, I'll say an "acceptable" solution (hopefully not the only one) is to upgrade. 由于我无法在VS2013中重现这一点,并且VS2012现在已经完全老了,我会说一个“可接受的”解决方案(希望不是唯一的)是升级。 Thanks everyone for your assistance. 谢谢大家的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM