You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new solution:
$ dotnet new console -n MyConsole
$ dotnet new xunit -n test
$ dotnet add test/test.csproj reference MyConsole/MyConsole.csproj
$ dotnet sln program.sln add MyConsole/MyConsole.csproj
$ dotnet sln program.sln add test/test.csproj
Add this to Program.cs in MyConsole folder:
public static bool DoSomething()
{
return false;
}
Change Test1 to:
[Fact]
public void Test1()
{
Assert.True(Program.DoSomething());
}
$ dotnet build
succeeds
Launch vscode
Open the folder
Generate assets for build & debug
Select program to launch
Open the UnitTest1.cs file. Click “debug test”
get
Error Processing Launch options at field: Program
VS Code version: Code 1.46.1 (cd9ea64, 2020-06-17T21:17:14.222Z)
OS version: Darwin x64 19.5.0
System Info
Extensions (3)
This is the output of dotnet --info:
.NET SDK (reflecting any global.json):
Version: 5.0.100-preview.6.20310.4
Commit: 16d29b9349
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /Users/mj/Documents/develop/runtime/.dotnet/sdk/5.0.100-preview.6.20310.4/
Host (useful for support):
Version: 5.0.0-preview.6.20305.6
Commit: 4ba9ecaabd
Create a new solution:
$ dotnet new console -n MyConsole
$ dotnet new xunit -n test
$ dotnet add test/test.csproj reference MyConsole/MyConsole.csproj
$ dotnet sln program.sln add MyConsole/MyConsole.csproj
$ dotnet sln program.sln add test/test.csproj
Add this to Program.cs in MyConsole folder:
Change Test1 to:
$ dotnet build
succeeds
Launch vscode
Open the folder
Generate assets for build & debug
Select program to launch
Open the UnitTest1.cs file. Click “debug test”
get
Error Processing Launch options at field: Program
VS Code version: Code 1.46.1 (cd9ea64, 2020-06-17T21:17:14.222Z)
OS version: Darwin x64 19.5.0
System Info
Extensions (3)
This is the output of dotnet --info:
The text was updated successfully, but these errors were encountered: