开发者

Visual Studio - test with the same id already exists

开发者 https://www.devze.com 2023-03-22 05:25 出处:网络
I have a Class Library project in Visual Studio and t开发者_运维百科ests for it (everything is written in C#). Once after successful solution build VS shows me this window:

I have a Class Library project in Visual Studio and t开发者_运维百科ests for it (everything is written in C#). Once after successful solution build VS shows me this window:

Visual Studio - test with the same id already exists

I haven't seen this one before, and I don't know even from what to begin: project compiles without errors and works after compilation, but this window keep appearing after each compilation. When I press Retry or Abort, error message with the same text appears in Output window of VS.

There is only one test method named AddRange1201.

So, the question is - how to get rid of this, besides just checking "Do not show this dialog box again"?


I found this on MS Connect, and I'm not sure if it will fix your problem or not. Sounds like it's a known issue and occurs if you either add the test project to your solution twice (VS doesn't realize it's been added and removed) or if you switch between debug and release modes.

A workaround given is:

1) clean solutions in both modes 2) rebuild in the mode you want

Hopefully this helps.

0

精彩评论

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