修改了很多

This commit is contained in:
fengjiayi
2024-10-27 00:54:10 +08:00
parent 6f26d303e4
commit cb2553ac69
66 changed files with 2215 additions and 1402 deletions

View File

@@ -13,6 +13,11 @@ namespace Serein.FlowStartTool
{
public static void Main(string[] args)
{
#if true
args = [@"F:\临时\project\linux\project.dnf"];
#endif
Console.WriteLine("Hello :) ");
Console.WriteLine($"args : {string.Join(" , ", args)}");
string filePath;
@@ -57,10 +62,10 @@ namespace Serein.FlowStartTool
}
IsRuning = true;
StartFlow(flowProjectData, fileDataPath).GetAwaiter().GetResult();
_ = StartFlow(flowProjectData, fileDataPath);
while (IsRuning)
{
Console.ReadKey();
}
}
@@ -88,13 +93,12 @@ namespace Serein.FlowStartTool
// this.window = window;
//}
Env = new FlowEnvironmentDecorator(uIContextOperation); // Linux 环境下没有线程上下文(暂时没有写)
Env = new FlowEnvironmentDecorator(uIContextOperation);
Env.LoadProject(new FlowEnvInfo { Project = flowProjectData }, fileDataPath); // 加载项目
await Env.StartRemoteServerAsync(7525); // 启动 web socket 监听远程请求
//await Env.StartAsync();
IsRuning = false;
}

View File

@@ -1,10 +1,10 @@
{
"profiles": {
"Serein.FlowStartTool": {
"commandName": "Project"
},
"配置文件 1": {
"commandName": "DebugRoslynComponent"
},
"Serein.FlowStartTool": {
"commandName": "Project"
}
}
}

View File

@@ -9,34 +9,34 @@
<Nullable>enable</Nullable>
<ErrorReport>prompt</ErrorReport>
<AssemblyName>starter</AssemblyName>
<PlatformTarget>AnyCPU</PlatformTarget>
<!--<IsRoslynComponent>true</IsRoslynComponent>-->
<!--<GenerateDocumentationFile>true</GenerateDocumentationFile>-->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<Optimize>False</Optimize>
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<Optimize>False</Optimize>
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Library.Core\Serein.Library.Core.csproj" />
<ProjectReference Include="..\Library\Serein.Library.csproj" />
<ProjectReference Include="..\NodeFlow\Serein.NodeFlow.csproj" />
</ItemGroup>
<!--<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup><!--<ProjectReference Include="..\Library\Serein.Library.csproj" />
<ProjectReference Include="..\NodeFlow\Serein.NodeFlow.csproj" />-->
<PackageReference Include="Serein.Library" Version="1.0.17" />
<PackageReference Include="Serein.Library.NodeGenerator" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<!--<ProjectReference Include="..\Serein.Library.MyGenerator\Serein.Library.NodeGenerator.csproj" OutputItemType="Analyzer" />-->
<ProjectReference Include="..\NodeFlow\Serein.NodeFlow.csproj" />
</ItemGroup>
</PropertyGroup>-->
</Project>