Skip to content

Commit c96532e

Browse files
committed
Added vs code tasks
1 parent e74a8be commit c96532e

File tree

4 files changed

+104
-7
lines changed

4 files changed

+104
-7
lines changed

.vscode/launch.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": ".NET Core Launch (console)",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "SampleConsole: Dotnet Build",
9+
"program": "${workspaceRoot}/src/Samples/Exceptionless.SampleConsole/bin/Debug/netcoreapp1.0/Exceptionless.SampleConsole.dll",
10+
"args": [],
11+
"cwd": "${workspaceRoot}/src/Samples/Exceptionless.SampleConsole",
12+
"stopAtEntry": false
13+
},
14+
{
15+
"name": ".NET Core Launch (web)",
16+
"type": "coreclr",
17+
"request": "launch",
18+
"preLaunchTask": "SampleAspNetCore: Dotnet Build",
19+
"program": "${workspaceRoot}/src/Samples/Exceptionless.SampleAspNetCore/bin/Debug/netcoreapp1.0/Exceptionless.SampleAspNetCore.dll",
20+
"args": [],
21+
"cwd": "${workspaceRoot}/src/Samples/Exceptionless.SampleAspNetCore",
22+
"stopAtEntry": false,
23+
"launchBrowser": {
24+
"enabled": true,
25+
"args": "${auto-detect-url}",
26+
"windows": {
27+
"command": "cmd.exe",
28+
"args": "/C start ${auto-detect-url}"
29+
},
30+
"osx": {
31+
"command": "open"
32+
},
33+
"linux": {
34+
"command": "xdg-open"
35+
}
36+
}
37+
},
38+
{
39+
"name": ".NET Core Attach",
40+
"type": "coreclr",
41+
"request": "attach",
42+
"processId": 0
43+
}
44+
]
45+
}

.vscode/tasks.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"version": "0.1.0",
3+
"linux": { "command": "sh", "args": ["-c"] },
4+
"osx": { "command": "sh", "args": ["-c"] },
5+
"windows": { "command": "cmd", "args": ["/C"] },
6+
"isShellCommand": true,
7+
"showOutput": "always",
8+
"suppressTaskName": true,
9+
"tasks": [
10+
{
11+
"taskName": "restore",
12+
"args": [ "dotnet restore" ]
13+
},
14+
{
15+
"taskName": "build",
16+
"args": [ "dotnet build src/**/project.json -c Debug" ],
17+
"isBuildCommand": true,
18+
"problemMatcher": "$msCompile"
19+
},
20+
{
21+
"taskName": "test",
22+
"args": [ "dotnet test src/Exceptionless.Tests" ],
23+
"isBuildCommand": true,
24+
"problemMatcher": "$msCompile"
25+
},
26+
27+
{
28+
"taskName": "SampleConsole: Dotnet Build",
29+
"args": [ "dotnet build ${workspaceRoot}/src/Samples/Exceptionless.SampleConsole -c Debug" ],
30+
"isBuildCommand": true,
31+
"problemMatcher": "$msCompile"
32+
},
33+
{
34+
"taskName": "SampleConsole: Dotnet Run",
35+
"args": [ "dotnet run ${workspaceRoot}/src/Samples/Exceptionless.SampleConsole -c Debug" ],
36+
"isBuildCommand": true,
37+
"problemMatcher": "$msCompile"
38+
},
39+
{
40+
"taskName": "SampleAspNetCore: Dotnet Build",
41+
"args": [ "run ${workspaceRoot}/src/Samples/Exceptionless.SampleAspNetCore -c Debug" ],
42+
"isBuildCommand": true,
43+
"problemMatcher": "$msCompile"
44+
},
45+
{
46+
"taskName": "SampleAspNetCore: Dotnet Run",
47+
"args": [ "run ${workspaceRoot}/src/Samples/Exceptionless.SampleAspNetCore -c Debug" ],
48+
"isBuildCommand": true,
49+
"problemMatcher": "$msCompile"
50+
}
51+
]
52+
}

src/Exceptionless.Tests/Plugins/PluginTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,13 +573,13 @@ public void LazyLoadAndRemovePlugin() {
573573

574574
private class ThrowIfInitializedTestPlugin : IEventPlugin, IDisposable {
575575
public ThrowIfInitializedTestPlugin() {
576-
throw new ApplicationException("Plugin shouldn't be constructed");
576+
throw new Exception("Plugin shouldn't be constructed");
577577
}
578578

579579
public void Run(EventPluginContext context) {}
580580

581581
public void Dispose() {
582-
throw new ApplicationException("Plugin shouldn't be created or disposed");
582+
throw new Exception("Plugin shouldn't be created or disposed");
583583
}
584584
}
585585

@@ -786,7 +786,7 @@ private struct TestStruct {
786786
public int Id { get; set; }
787787
}
788788

789-
public class MyApplicationException : ApplicationException {
789+
public class MyApplicationException : Exception {
790790
public MyApplicationException(string message) : base(message) {
791791
SetsDataProperty = Data;
792792
}

src/Exceptionless.Tests/project.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
}
99
},
1010
"dependencies": {
11-
"BenchmarkDotNet": "0.9.6",
11+
"BenchmarkDotNet": "0.9.7",
1212
"Exceptionless": {
1313
"target": "project"
1414
},
15-
"Exceptionless.RandomData": "1.0.22.0",
15+
"Exceptionless.RandomData": "1.1.23",
1616
"Foundatio": "4.0.958",
17-
"Moq": "4.2.1510.2205",
17+
"Moq": "4.6.25-alpha",
1818
"Newtonsoft.Json": "8.0.3",
19-
"NLog": "4.3.3",
19+
"NLog": "4.4.0-beta11",
2020
"SimpleInjector": "3.1.4",
2121

2222
"dotnet-test-xunit": "1.0.0-rc2-*",

0 commit comments

Comments
 (0)