File tree 4 files changed +33
-2
lines changed
4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFramework >netcoreapp2.1</TargetFramework >
4
+ <TargetFrameworks >netcoreapp2.1;net5.0;</TargetFrameworks >
4
5
<OutputType >Exe</OutputType >
5
6
<PackAsTool >true</PackAsTool >
6
7
<ToolCommandName >verlite</ToolCommandName >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >netstandard2.0</TargetFramework >
3
+ <TargetFrameworks >netstandard2.0</TargetFrameworks >
4
4
<Description >Core primitives and logic for automatic versioning via Git tags.</Description >
5
5
<RootNamespace >Verlite</RootNamespace >
6
6
</PropertyGroup >
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ set -euo pipefail
4
4
cd " $( dirname $0 ) "
5
5
6
6
export VERBOSE=" "
7
+ export REPO_PATH=" $( git rev-parse --show-toplevel) "
7
8
8
9
# setup the packages as version 0.0.0
9
10
export NUGET_PACKAGES=" $( mktemp -d) "
@@ -59,5 +60,6 @@ test branch-follows-first-parent
59
60
test msbuild
60
61
test multiple-tags-on-same-commit
61
62
test auto-fetch
63
+ test publish-different-framework
62
64
63
65
echo " All complete."
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euo pipefail
3
+
4
+ git clone " $REPO_PATH " verlite > /dev/null 2> /dev/null
5
+
6
+ dotnet publish \
7
+ verlite/src/Verlite.CLI/Verlite.CLI.csproj \
8
+ -o artifacts \
9
+ -p:TargetFramework=net5.0 \
10
+ -p:PackAsTool=false \
11
+ > /dev/null 2> /dev/null
12
+
13
+ dotnet publish \
14
+ verlite/src/Verlite.CLI/Verlite.CLI.csproj \
15
+ -o artifacts2 \
16
+ -f=net5.0 \
17
+ -p:PackAsTool=false \
18
+ > /dev/null 2> /dev/null
19
+
20
+ should-exist () {
21
+ if [[ ! -f " $1 " ]]; then
22
+ echo " Missing artifact: $1 "
23
+ exit 1
24
+ fi
25
+ }
26
+
27
+ should-exist artifacts/Verlite.CLI.dll
28
+ should-exist artifacts2/Verlite.CLI.dll
You can’t perform that action at this time.
0 commit comments