Skip to content

Commit 2b97f21

Browse files
committed
Seal internal classes; publish snupkgs
1 parent 07a92ba commit 2b97f21

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ foreach ($src in ls src/*) {
2323

2424
echo "build: Packaging project in $src"
2525

26-
& dotnet build -c Release --version-suffix=$buildSuffix -p:EnableSourceLink=true
26+
& dotnet build -c Release --version-suffix=$buildSuffix -p:ContinuousIntegrationBuild=true
2727
if ($suffix) {
2828
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix --no-build
2929
} else {
3030
& dotnet pack -c Release -o ..\..\artifacts --no-build
3131
}
32-
if($LASTEXITCODE -ne 0) { throw "build failed" }
32+
if($LASTEXITCODE -ne 0) { throw "build failed" }
3333

3434
Pop-Location
3535
}

appveyor.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@ version: '{build}'
22
skip_tags: true
33
image: Visual Studio 2022
44
build_script:
5-
- pwsh: ./Build.ps1
5+
- pwsh: ./Build.ps1
66
test: off
77
artifacts:
8-
- path: artifacts/Serilog.*.nupkg
8+
- path: artifacts/Serilog.*.nupkg
9+
- path: artifacts/Serilog.*.snupkg
910
deploy:
10-
- provider: NuGet
11-
api_key:
12-
secure: Fh92tRIFbe1FAiyD8lTThWgAorQ1vV+eFYMlUK0iLHBBenJcy/UYc1qj6kgHvUcO
13-
skip_symbols: true
14-
on:
15-
branch: /^(main|dev)$/
16-
- provider: GitHub
17-
auth_token:
18-
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
19-
artifact: /Serilog.*\.nupkg/
20-
tag: v$(appveyor_build_version)
21-
on:
22-
branch: main
11+
- provider: NuGet
12+
api_key:
13+
secure: Fh92tRIFbe1FAiyD8lTThWgAorQ1vV+eFYMlUK0iLHBBenJcy/UYc1qj6kgHvUcO
14+
skip_symbols: true
15+
on:
16+
branch: /^(main|dev)$/
17+
- provider: GitHub
18+
auth_token:
19+
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
20+
artifacts:
21+
/Serilog.*\.nupkg/
22+
/Serilog.*\.snupkg/
23+
tag: v$(appveyor_build_version)
24+
on:
25+
branch: main
2326

src/Serilog.Enrichers.Environment/Enrichers/EnvironmentNameEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
2121
/// <summary>
2222
/// Enriches log events with a EnvironmentName property containing the value of the ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT environment variable.
2323
/// </summary>
24-
class EnvironmentNameEnricher : CachedPropertyEnricher
24+
sealed class EnvironmentNameEnricher : CachedPropertyEnricher
2525
{
2626
/// <summary>
2727
/// The property name added to enriched log events.

src/Serilog.Enrichers.Environment/Enrichers/EnvironmentUserNameEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
2121
/// <summary>
2222
/// Enriches log events with an EnvironmentUserName property containing [<see cref="Environment.UserDomainName"/>\]<see cref="Environment.UserName"/>.
2323
/// </summary>
24-
class EnvironmentUserNameEnricher : CachedPropertyEnricher
24+
sealed class EnvironmentUserNameEnricher : CachedPropertyEnricher
2525
{
2626
/// <summary>
2727
/// The property name added to enriched log events.

src/Serilog.Enrichers.Environment/Enrichers/EnvironmentVariableEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
2121
/// <summary>
2222
/// Enriches log events with a EnvironmentName property containing the value of the ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT environment variable.
2323
/// </summary>
24-
class EnvironmentVariableEnricher : CachedPropertyEnricher
24+
sealed class EnvironmentVariableEnricher : CachedPropertyEnricher
2525
{
2626
readonly string _envVarName;
2727

src/Serilog.Enrichers.Environment/Enrichers/MachineNameEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
2121
/// <summary>
2222
/// Enriches log events with a MachineName property containing <see cref="Environment.MachineName"/>.
2323
/// </summary>
24-
class MachineNameEnricher : CachedPropertyEnricher
24+
sealed class MachineNameEnricher : CachedPropertyEnricher
2525
{
2626
/// <summary>
2727
/// The property name added to enriched log events.

src/Serilog.Enrichers.Environment/Serilog.Enrichers.Environment.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<ItemGroup>
2929
<PackageReference Include="Serilog" Version="4.0.0" />
3030
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="All" />
31+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
3132
</ItemGroup>
3233

3334
<ItemGroup>

0 commit comments

Comments
 (0)