Skip to content

Commit 7f0abdd

Browse files
Added netcore to TestBinarySerializeXplat.
1 parent da6fe9a commit 7f0abdd

File tree

7 files changed

+119
-4
lines changed

7 files changed

+119
-4
lines changed

Other/BinarySerialize/TestBinarySerializeXplat/BuildAndExec.bat

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,37 @@ setlocal
22

33
@echo off
44
set CURRENT_DIR="%~dp0"
5-
call %CURRENT_DIR%z_Common2.bat
5+
call %CURRENT_DIR%z_Common.bat
66

77
..\..\..\nuget.exe restore "TestBinarySerializeXplatFx45.sln"
88
%BUILDFILEPATH% %COMMANDLINE% "TestBinarySerializeXplatFx45.sln"
9-
pause
109

1110
..\..\..\nuget.exe restore "TestBinarySerializeXplatFx46.sln"
1211
%BUILDFILEPATH% %COMMANDLINE% "TestBinarySerializeXplatFx46.sln"
13-
pause
1412

1513
..\..\..\nuget.exe restore "TestBinarySerializeXplatFx47.sln"
1614
%BUILDFILEPATH% %COMMANDLINE% "TestBinarySerializeXplatFx47.sln"
17-
pause
1815

1916
..\..\..\nuget.exe restore "TestBinarySerializeXplatFx48.sln"
2017
%BUILDFILEPATH% %COMMANDLINE% "TestBinarySerializeXplatFx48.sln"
18+
19+
dotnet restore "TestBinarySerializeXplatCore20.sln"
20+
dotnet msbuild %COMMANDLINE2% "TestBinarySerializeXplatCore20.sln"
21+
22+
dotnet restore "TestBinarySerializeXplatCore30.sln"
23+
dotnet msbuild %COMMANDLINE2% "TestBinarySerializeXplatCore30.sln"
2124
pause
2225

2326
call ".\net45\bin\Debug\TestBinarySerializeXplat.exe"
2427
call ".\net46\bin\Debug\TestBinarySerializeXplat.exe"
2528
call ".\net47\bin\Debug\TestBinarySerializeXplat.exe"
2629
call ".\net48\bin\Debug\TestBinarySerializeXplat.exe"
2730
call ".\net45\bin\Debug\TestBinarySerializeXplat.exe"
31+
32+
dotnet ".\core20\bin\Debug\netcoreapp2.0\TestBinarySerializeXplat.dll"
33+
dotnet ".\core30\bin\Debug\netcoreapp3.0\TestBinarySerializeXplat.dll"
34+
dotnet ".\core20\bin\Debug\netcoreapp3.0\TestBinarySerializeXplat.dll"
35+
2836
pause
2937

3038
endlocal
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 以下の様にしてWSLから実行する。改行コードはLFに変更してある。
2+
#$ cd /mnt/c/Git1/SampleProgram/Other/BinarySerialize/TestBinarySerializeXplat
3+
#$ ./BuildAndExec.sh
4+
5+
cd /mnt/c/Git1/SampleProgram/Other/BinarySerialize/TestBinarySerializeXplat/core20
6+
dotnet publish -c Debug -r ubuntu.16.04-x64 --self-contained
7+
cd bin/Debug/netcoreapp2.0/ubuntu.16.04-x64
8+
dotnet TestBinarySerializeXplat.dll
9+
10+
cd /mnt/c/Git1/SampleProgram/Other/BinarySerialize/TestBinarySerializeXplat/core30
11+
dotnet publish -c Debug -r ubuntu.16.04-x64 --self-contained
12+
cd bin/Debug/netcoreapp3.0/ubuntu.16.04-x64
13+
dotnet TestBinarySerializeXplat.dll
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29209.62
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestBinarySerializeXplat", "core20\TestBinarySerializeXplat.csproj", "{0A582087-7AEC-4955-8D99-BC651838594E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{0A582087-7AEC-4955-8D99-BC651838594E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{0A582087-7AEC-4955-8D99-BC651838594E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{0A582087-7AEC-4955-8D99-BC651838594E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{0A582087-7AEC-4955-8D99-BC651838594E}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {C86E8D7E-7286-4249-8253-9EDF131800E0}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29209.62
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestBinarySerializeXplat", "core30\TestBinarySerializeXplat.csproj", "{0A582087-7AEC-4955-8D99-BC651838594E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{0A582087-7AEC-4955-8D99-BC651838594E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{0A582087-7AEC-4955-8D99-BC651838594E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{0A582087-7AEC-4955-8D99-BC651838594E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{0A582087-7AEC-4955-8D99-BC651838594E}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {C86E8D7E-7286-4249-8253-9EDF131800E0}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp2.0</TargetFramework>
6+
<NoWarn>$(NoWarn);NU1605</NoWarn>
7+
</PropertyGroup>
8+
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10+
<DefineConstants>TRACE;NETCORE20</DefineConstants>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<Compile Include="..\Program.cs" Link="Program.cs" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<PackageReference Include="Touryo.Infrastructure.Public" Version="2.4.2" />
19+
</ItemGroup>
20+
21+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
<NoWarn>$(NoWarn);NU1605</NoWarn>
7+
</PropertyGroup>
8+
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10+
<DefineConstants>TRACE;NETCORE30</DefineConstants>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<Compile Include="..\Program.cs" Link="Program.cs" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<PackageReference Include="Touryo.Infrastructure.Public" Version="2.4.2" />
19+
</ItemGroup>
20+
21+
</Project>

Other/BinarySerialize/TestBinarySerializeXplat/z_Common2.bat renamed to Other/BinarySerialize/TestBinarySerializeXplat/z_Common.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ set BUILD_CONFIG=Debug
3131
@echo --------------------------------------------------
3232
set COMMANDLINE=/build %BUILD_CONFIG%
3333

34+
set COMMANDLINE2=/p:Configuration=%BUILD_CONFIG% -v:d
35+
3436
@echo --------------------------------------------------
3537
@echo Set the proxy settings of Nuget.
3638
@echo --------------------------------------------------

0 commit comments

Comments
 (0)