build: Upgrade dotnet core 5.0 -> 6.0

This commit is contained in:
John Colvin committed 2022-04-19 11:42:38 -04:00
1 parent 01899428e3
commit ff9b4f5b2f
9 files changed
+879 -888

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<Authors>Blue Trading Systems</Authors>
<Company>Blue Trading Systems</Company>
+1 -1
View File
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<Authors>Blue Trading Systems</Authors>
<Company>Blue Trading Systems</Company>
<Description />
File diff suppressed because it is too large. Load diff
@@ -43,11 +43,10 @@ namespace bts.test {
return print_result;
}
private void post_result(uint port, TestResult result) {
var wr = WebRequest.Create($"http://localhost:{port}/");
wr.Method = "POST";
wr.ContentLength = result.CalculateSize();
result.WriteTo(wr.GetRequestStream());
var unused = wr.GetResponseAsync();
var client = new HttpClient();
using var ms = new MemoryStream();
result.WriteTo(ms);
client.PostAsync($"http://localhost:{port}/", new ByteArrayContent(ms.ToArray()));
}
@@ -134,4 +133,4 @@ namespace bts.test {
return port;
}
}
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>
+7 -7
View File
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<OutputType>Exe</OutputType>
<GeneratePackageOnBuild Condition="$(Configuration) == 'Release' or $(Configuration) == 'Release'">true</GeneratePackageOnBuild>
<PackageOutputPath>$(OutputPath)\net5.0</PackageOutputPath>
<PackageOutputPath>$(OutputPath)\net6.0</PackageOutputPath>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
@@ -40,19 +40,19 @@
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences" Condition=" '$(SparkRoot)' != '' ">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths-&gt;WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
<BuildOutputInPackage Include="$(OutputPath)..\net5.0\libspark.dll" />
<BuildOutputInPackage Include="$(OutputPath)..\net6.0\libspark.dll" />
</ItemGroup>
</Target>
<!-- deployed sdk build net5.0 -->
<ItemGroup Condition=" '$(SparkRoot)' == '' and '$(TargetFramework)' == 'net5.0'">
<!-- deployed sdk build net6.0 -->
<ItemGroup Condition=" '$(SparkRoot)' == '' and '$(TargetFramework)' == 'net6.0'">
<Reference Include="spark_api">
<HintPath>..\..\lib\net5.0\spark_api.dll</HintPath>
<HintPath>..\..\lib\net6.0\spark_api.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="copy_lib_deployed" AfterTargets="PostBuildEvent" Condition=" '$(SparkRoot)' == '' ">
<Copy SourceFiles="..\..\lib\net5.0\libspark.dll" DestinationFolder="$(OutputPath)\" SkipUnchangedFiles="true" />
<Copy SourceFiles="..\..\lib\net6.0\libspark.dll" DestinationFolder="$(OutputPath)\" SkipUnchangedFiles="true" />
</Target>
</Project>
+1 -1
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net5.0</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<RuntimeIdentifiers>win10-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
<Authors>Blue Trading Systems</Authors>
<Company>Blue Trading Systems</Company>
+8 -8
View File
@@ -2,44 +2,44 @@
<PropertyGroup>
<BuildRoot>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)))</BuildRoot>
<Net50OutputPath>$(BuildRoot)\$(Configuration)\bin\net5.0\</Net50OutputPath>
<Net50WinOutputPath>$(BuildRoot)\$(Configuration)\bin\net5.0-windows\</Net50WinOutputPath>
<Net60OutputPath>$(BuildRoot)\$(Configuration)\bin\net6.0\</Net60OutputPath>
<Net60WinOutputPath>$(BuildRoot)\$(Configuration)\bin\net6.0-windows\</Net60WinOutputPath>
<ErrorReport>None</ErrorReport>
</PropertyGroup>
<Target
Name="CopyToNet50"
Name="CopyToNet60"
AfterTargets="Link">
<Copy
SourceFiles="$(OutDir)libspark.dll"
Condition="Exists('$(OutDir)libspark.dll')"
DestinationFolder="$(Net50OutputPath)"
DestinationFolder="$(Net60OutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
<Copy
SourceFiles="$(OutDir)libspark.pdb"
Condition="Exists('$(OutDir)libspark.pdb')"
DestinationFolder="$(Net50OutputPath)"
DestinationFolder="$(Net60OutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
</Target>
<Target
Name="CopyToNet50Win"
Name="CopyToNet60Win"
AfterTargets="Link">
<Copy
SourceFiles="$(OutDir)libspark.dll"
Condition="Exists('$(OutDir)libspark.dll')"
DestinationFolder="$(Net50WinOutputPath)"
DestinationFolder="$(Net60WinOutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
<Copy
SourceFiles="$(OutDir)libspark.pdb"
Condition="Exists('$(OutDir)libspark.pdb')"
DestinationFolder="$(Net50WinOutputPath)"
DestinationFolder="$(Net60WinOutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />