-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add target .net 6 for the 1DS Test Server (#1217)
* Update .net version to .net 6 * support both frameworks .net6 and old one .net core 3 * Update scripts, that runs test server to specify flags for target frameworks * Change indent * Use $framework value in the echo
- Loading branch information
1 parent
36bc9b2
commit b776af8
Showing
3 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
dotnet run | ||
@ECHO OFF | ||
set framework="netcoreapp3.1" | ||
|
||
:loop | ||
IF NOT "%1"=="" ( | ||
IF "%1"=="-f" ( | ||
SET framework=%2 | ||
SHIFT | ||
) | ||
IF "%1"=="--framework" ( | ||
SET framework=%2 | ||
SHIFT | ||
) | ||
IF "%1"=="-h" GOTO :help | ||
IF "%1"=="--help" GOTO :help | ||
SHIFT | ||
GOTO :loop | ||
) | ||
echo "1DS test telemetry server will be run with %framework%" | ||
dotnet run --framework %framework% | ||
goto:eof | ||
|
||
:help | ||
echo "Run 1DS Test Telemetry Server with specified runtime versions (.net core 3 or .net6)." | ||
echo "Syntax: run.sh [-f,--framework|-h, --help]" | ||
echo "options:" | ||
echo "-f | --framework Run server with specified version of runtime. Supported values: netcoreapp3.1 or net6.0. Default value is netcoreapp3.1, if option is not specified" | ||
echo "-h | --help Help." | ||
goto:eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
#!/bin/sh | ||
dotnet run | ||
|
||
############################################################ | ||
# Help # | ||
############################################################ | ||
Help() | ||
{ | ||
# Display Help | ||
echo "Run 1DS Test Telemetry Server with specified runtime versions (.net core 3 or .net6)." | ||
echo | ||
echo "Syntax: run.sh [-f,--framework|-h, --help]" | ||
echo "options:" | ||
echo "-f | --framework Run server with specified version of runtime. Supported values: netcoreapp3.1 or net6.0. Default value is netcoreapp3.1, if option is not specified" | ||
echo "-h | --help Help." | ||
echo | ||
|
||
exit 0 | ||
} | ||
|
||
framework="netcoreapp3.1" | ||
while test $# -gt 0; | ||
do | ||
case "$1" in | ||
-h|--help) Help;; | ||
-f|--framework) | ||
shift | ||
if test $# -gt 0; then | ||
framework=$1 | ||
else | ||
echo "--framework option value is not specified. Server will be run with $framework" | ||
fi | ||
shift | ||
;; | ||
*) break;; | ||
esac | ||
done | ||
echo "1DS test telemetry server will be run with $framework" | ||
dotnet run -f $framework | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters