Skip to content

Commit a8ca6da

Browse files
committed
修改成net standard版
1 parent a3c4775 commit a8ca6da

63 files changed

Lines changed: 328 additions & 665 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

QuantBox.API.Provider/QuantBox.APIProvider.csproj

Lines changed: 0 additions & 156 deletions
This file was deleted.

QuantBox.API.Provider/QuantBox.APIProvider.csproj.user

Lines changed: 0 additions & 7 deletions
This file was deleted.

QuantBox.API.Provider/QuantBox.APIProvider_Linux.csproj

Lines changed: 0 additions & 95 deletions
This file was deleted.

QuantBox.API.Provider/app.config

Lines changed: 0 additions & 3 deletions
This file was deleted.

QuantBox.API.Provider/packages.config

Lines changed: 0 additions & 7 deletions
This file was deleted.

QuantBox.APIProvider.sln

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29411.108
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuantBox.Extensions", "QuantBox.Extensions\QuantBox.Extensions.csproj", "{1A772F95-B670-40AC-8D29-2B82A4B95E12}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuantBox.APIProvider", "QuantBox.APIProvider\QuantBox.APIProvider.csproj", "{DD59FAE6-8CA6-4389-B934-06F26A08D289}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{1A772F95-B670-40AC-8D29-2B82A4B95E12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{1A772F95-B670-40AC-8D29-2B82A4B95E12}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{1A772F95-B670-40AC-8D29-2B82A4B95E12}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{1A772F95-B670-40AC-8D29-2B82A4B95E12}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{DD59FAE6-8CA6-4389-B934-06F26A08D289}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{DD59FAE6-8CA6-4389-B934-06F26A08D289}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{DD59FAE6-8CA6-4389-B934-06F26A08D289}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{DD59FAE6-8CA6-4389-B934-06F26A08D289}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {DE721877-AECD-4501-976D-2AA3C52F9CE0}
30+
EndGlobalSection
31+
GlobalSection(MonoDevelopProperties) = preSolution
32+
StartupItem = SMACrossover\Realtime\Realtime.csproj
33+
EndGlobalSection
34+
EndGlobal
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
using CommandLine;
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using System.IO;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
4+
5+
using CommandLine;
6+
7+
#if NET48
88
using System.Windows.Forms;
9+
#endif
910

1011
namespace QuantBox.APIProvider
1112
{
@@ -38,8 +39,8 @@ public void ParseForStart(ProviderHost host)
3839
//C:
3940
//start OpenQuant.exe --file="D:\Users\Kan\Documents\OpenQuant 2014\Solutions\SMACrossover\SMACrossover.sln" --id=100 --run
4041

41-
var args = System.Environment.GetCommandLineArgs();
42-
var text = System.Environment.CommandLine;
42+
var args = Environment.GetCommandLineArgs();
43+
var text = Environment.CommandLine;
4344
Console.WriteLine($"命令行: {text}");
4445
CommandLine.Parser.Default.ParseArguments<Options>(args)
4546
.WithParsed<Options>(opts => RunOptions(opts, host))
@@ -48,6 +49,7 @@ public void ParseForStart(ProviderHost host)
4849

4950
public void ParseForStop(ProviderHost host)
5051
{
52+
#if NET48
5153
//echo --id=100 --stop --exit | clip
5254
IDataObject ido = Clipboard.GetDataObject();
5355

@@ -59,6 +61,7 @@ public void ParseForStop(ProviderHost host)
5961
CommandLine.Parser.Default.ParseArguments<Options>(text.Split(' '))
6062
.WithParsed<Options>(opts => ExitOptions(opts, host))
6163
.WithNotParsed<Options>((errs) => HandleParseError(errs));
64+
#endif
6265
}
6366

6467
void RunOptions(Options opts, ProviderHost host)
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
using System.Linq;
44
using System.Text;
55
using System.Threading.Tasks;
6-
using System.Windows.Forms;
6+
77

88
namespace QuantBox.APIProvider
99
{
10+
#if NET48
11+
using System.Windows.Forms;
12+
1013
public static class ControlExtention
1114
{
1215
public delegate void InvokeHandler();
@@ -23,4 +26,5 @@ public static void SafeInvoke(this Control control, InvokeHandler handler)
2326
}
2427
}
2528
}
29+
#endif
2630
}

0 commit comments

Comments
 (0)