Skip to content

Commit 972bb06

Browse files
committed
build: set TreatWarningsAsErrors
1 parent 32de143 commit 972bb06

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

.github/workflows/build-and-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Pack .NET project
3939
if: github.event_name != 'pull_request'
40-
run: dotnet pack Intility.Logging.sln -o Intility.Logging/output --no-build --property:TreatWarningsAsErrors=true --property:Version=${{ steps.meta.outputs.tags }}
40+
run: dotnet pack Intility.Logging.sln -o Intility.Logging/output --property:Version=${{ steps.meta.outputs.tags }}
4141

4242
- name: Publish to NuGet
4343
if: github.event_name != 'pull_request'

src/Intility.Extensions.Logging.Elasticsearch/Intility.Extensions.Logging.Elasticsearch.csproj

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
<Description>
1212
Enable Elasticsearch logging provider.
1313
</Description>
14-
<owners>Intility</owners>
15-
<Company>Intility</Company>
16-
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
17-
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
18-
<PackageIcon>intility-logo.png</PackageIcon>
14+
<owners>Intility</owners>
15+
<Company>Intility</Company>
16+
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
17+
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
18+
<PackageIcon>intility-logo.png</PackageIcon>
19+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1920
</PropertyGroup>
2021

2122
<ItemGroup>

src/Intility.Extensions.Logging.Sentry/Intility.Extensions.Logging.Sentry.csproj

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
<Description>
1212
Enable Sentry instrumentation and logging provider.
1313
</Description>
14-
<owners>Intility</owners>
15-
<Company>Intility</Company>
16-
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
17-
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
18-
<PackageIcon>intility-logo.png</PackageIcon>
14+
<owners>Intility</owners>
15+
<Company>Intility</Company>
16+
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
17+
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
18+
<PackageIcon>intility-logo.png</PackageIcon>
19+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1920
</PropertyGroup>
2021

2122
<ItemGroup>

src/Intility.Extensions.Logging/Intility.Extensions.Logging.csproj

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
Common logging infrastructure with extension primitives.
1313
Please do not install this package directly.
1414
</Description>
15-
<owners>Intility</owners>
16-
<Company>Intility</Company>
17-
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
18-
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
19-
<PackageIcon>intility-logo.png</PackageIcon>
15+
<owners>Intility</owners>
16+
<Company>Intility</Company>
17+
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
18+
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
19+
<PackageIcon>intility-logo.png</PackageIcon>
20+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2021
</PropertyGroup>
2122

2223
<ItemGroup>

src/Intility.Logging.AspNetCore/Intility.Logging.AspNetCore.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<authors>Herman Jensen, Emil Kjelsrud, Thorstein Løkensgard</authors>
1919
<RepositoryUrl>https://github.com/Intility/Intility.Logging</RepositoryUrl>
2020
<PackageIcon>intility-logo.png</PackageIcon>
21+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2122
</PropertyGroup>
2223

2324
<ItemGroup>

0 commit comments

Comments
 (0)