Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames committed Sep 2, 2018
1 parent f3a2082 commit a0bd418
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .vscode/launch.json
@@ -1,19 +1,17 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/bin/Debug/netcoreapp2.1/CoreProxy.dll",
"program": "${workspaceFolder}/src/ConsoleApp/bin/Debug/netcoreapp2.1/ConsoleApp.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
"cwd": "${workspaceFolder}/src/ConsoleApp",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
Expand All @@ -23,6 +21,6 @@
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
},
}
]
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Expand Up @@ -7,7 +7,7 @@
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/CoreProxy.csproj"
"${workspaceFolder}/src/ConsoleApp/ConsoleApp.csproj"
],
"problemMatcher": "$msCompile"
}
Expand Down
3 changes: 3 additions & 0 deletions src/CoreProxy.csproj → src/ConsoleApp/ConsoleApp.csproj
Expand Up @@ -5,4 +5,7 @@
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\CoreProxy\CoreProxy.csproj" />
</ItemGroup>
</Project>
3 changes: 2 additions & 1 deletion src/Program.cs → src/ConsoleApp/Program.cs
@@ -1,7 +1,8 @@
using System;
using System.Reflection;
using CoreProxy;

namespace CoreProxy
namespace ConsoleApp
{
class Program
{
Expand Down
9 changes: 9 additions & 0 deletions src/CoreProxy/CoreProxy.csproj
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Reflection.DispatchProxy" Version="4.5.1" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.

0 comments on commit a0bd418

Please sign in to comment.