Skip to content

Commit 4193c42

Browse files
Created build script
1 parent 9272872 commit 4193c42

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

RestExceptions.slnx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
</Folder>
55
<Folder Name="/solution/">
66
<File Path=".editorconfig" />
7+
<File Path="build-pack.sh" />
78
<File Path="Directory.Build.props" />
89
<File Path="Directory.Packages.props" />
910
</Folder>
@@ -15,4 +16,4 @@
1516
<Folder Name="/src/">
1617
<Project Path="src\RestExceptions\RestExceptions.csproj" Type="Classic C#" />
1718
</Folder>
18-
</Solution>
19+
</Solution>

build-pack.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd ./src/RestExceptions
5+
dotnet clean
6+
dotnet build -c Release
7+
dotnet pack -c Release
8+
9+
# To run:
10+
# chmod +x build-pack.sh

src/RestExceptions/RestExceptions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PackageId>RestExceptions</PackageId>
44
<Title>RestExceptions</Title>
55
<Description>Extensible Web API middleware that maps all exceptions to standardized REST-compliant error responses.</Description>
6-
<Version>9.0.7.1</Version>
6+
<Version>9.0.7.2</Version>
77
<TargetFramework>net9.0</TargetFramework>
88

99
<Authors>Stratis-Dermanoutsos</Authors>

0 commit comments

Comments
 (0)