Skip to content

Commit aecaa20

Browse files
committed
NEW build scripts
1 parent c17af66 commit aecaa20

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

build.bat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
rem build complete client
2+
SET MS_COMMUNITY_PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe"
3+
SET MS_PRO_PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64\MSBuild.exe"
4+
if exist %MS_COMMUNITY_PATH% (
5+
%MS_COMMUNITY_PATH% cli-netlite.sln /verbosity:minimal
6+
) else (
7+
%MS_PRO_PATH% cli-netlite.sln /verbosity:minimal
8+
)
9+
10+
rem publish netcore client
11+
dotnet publish -f netcoreapp2.0 .\NetCoreSender\NetCoreSender.csproj
12+
dotnet publish -f netcoreapp2.0 .\NetCoreReceiver\NetCoreReceiver.csproj
13+
dotnet publish -f netcoreapp2.0 .\NetCoreConnector\NetCoreConnector.csproj

build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#build dotnet core client
2+
dotnet build -f netcoreapp2.0 ./NetCoreSender/NetCoreSender.csproj
3+
dotnet build -f netcoreapp2.0 ./NetCoreReceiver/NetCoreReceiver.csproj
4+
dotnet build -f netcoreapp2.0 ./NetCoreConnector/NetCoreConnector.csproj
5+
6+
dotnet publish -f netcoreapp2.0 ./NetCoreSender/NetCoreSender.csproj
7+
dotnet publish -f netcoreapp2.0 ./NetCoreReceiver/NetCoreReceiver.csproj
8+
dotnet publish -f netcoreapp2.0 ./NetCoreConnector/NetCoreConnector.csproj
9+
10+
rm ./dist/netcore -rf
11+
mkdir ./dist/netcore -p
12+
cp ./NetCoreSender/bin/Debug/netcoreapp2.0/publish/*.{dll,json} ./dist/netcore
13+
cp ./NetCoreReceiver/bin/Debug/netcoreapp2.0/publish/*.{dll,json} ./dist/netcore
14+
cp ./NetCoreConnector/bin/Debug/netcoreapp2.0/publish/*.{dll,json} ./dist/netcore

cli-netlite.sln

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27130.0
4+
VisualStudioVersion = 15.0.27130.2010
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientLib", "ClientLib\ClientLib.csproj", "{6DC6D0F4-85F4-4380-9C49-FF26BC83D000}"
77
EndProject
@@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1717
ProjectSection(SolutionItems) = preProject
1818
.gitignore = .gitignore
1919
.travis.yml = .travis.yml
20+
build.ps1 = build.ps1
2021
LICENSE = LICENSE
2122
README.md = README.md
2223
EndProjectSection
@@ -35,17 +36,17 @@ Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "CliNetliteInstaller", "CliN
3536
EndProject
3637
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientLibNetCore", "ClientLibNetCore\ClientLibNetCore.csproj", "{186217C6-1D5E-4E92-AE6B-2EF4860089EF}"
3738
EndProject
38-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCoreSender", "NetCoreSender\NetCoreSender.csproj", "{8D10A6A3-73AF-4437-890E-35FAB8970438}"
39+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCoreSender", "NetCoreSender\NetCoreSender.csproj", "{8D10A6A3-73AF-4437-890E-35FAB8970438}"
3940
EndProject
40-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCoreReceiver", "NetCoreReceiver\NetCoreReceiver.csproj", "{E20F33C7-F38E-458A-B3A9-86136AFFC1D3}"
41+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCoreReceiver", "NetCoreReceiver\NetCoreReceiver.csproj", "{E20F33C7-F38E-458A-B3A9-86136AFFC1D3}"
4142
EndProject
42-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCoreConnector", "NetCoreConnector\NetCoreConnector.csproj", "{4A627ED3-7E8F-45DC-906A-2E262232FF9D}"
43+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCoreConnector", "NetCoreConnector\NetCoreConnector.csproj", "{4A627ED3-7E8F-45DC-906A-2E262232FF9D}"
4344
EndProject
4445
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DotNetCore", "DotNetCore", "{885C7FC7-7F42-4075-B18A-7FBC7018D2B2}"
4546
EndProject
4647
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DotNet", "DotNet", "{ED001293-9068-4DFC-9316-4FD88F2BBFA6}"
4748
EndProject
48-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCoreClientUnitTest", "NetCoreClientUnitTest\NetCoreClientUnitTest.csproj", "{5E4DAEA9-A896-44C7-9E05-CC9EEC516645}"
49+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCoreClientUnitTest", "NetCoreClientUnitTest\NetCoreClientUnitTest.csproj", "{5E4DAEA9-A896-44C7-9E05-CC9EEC516645}"
4950
EndProject
5051
Global
5152
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)