Debugging MSTest Unittests in Visual Studio Code

后端 未结 4 1625
南方客
南方客 2021-01-19 01:46

I am trying to use Visual Studio Code to Debug a MSTest unit test project. But the tests just run and the breakpoint is never reached.

Here is my launch.json:

<
4条回答
  •  清酒与你
    2021-01-19 02:23

    Before building, remember to include in your .csproj file

    false

    or else it will not know what to run...

    Program.cs(160,21): error CS0017: Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point. [/Users/.../Fraction.csproj]
    

提交回复
热议问题