File tree Expand file tree Collapse file tree 7 files changed +25
-21
lines changed
src/Serilog.Enrichers.Environment Expand file tree Collapse file tree 7 files changed +25
-21
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ foreach ($src in ls src/*) {
23
23
24
24
echo " build: Packaging project in $src "
25
25
26
- & dotnet build - c Release -- version- suffix= $buildSuffix - p:EnableSourceLink = true
26
+ & dotnet build - c Release -- version- suffix= $buildSuffix - p:ContinuousIntegrationBuild = true
27
27
if ($suffix ) {
28
28
& dotnet pack - c Release - o ..\..\artifacts -- version- suffix= $suffix -- no- build
29
29
} else {
30
30
& dotnet pack - c Release - o ..\..\artifacts -- no- build
31
31
}
32
- if ($LASTEXITCODE -ne 0 ) { throw " build failed" }
32
+ if ($LASTEXITCODE -ne 0 ) { throw " build failed" }
33
33
34
34
Pop-Location
35
35
}
Original file line number Diff line number Diff line change @@ -2,22 +2,25 @@ version: '{build}'
2
2
skip_tags : true
3
3
image : Visual Studio 2022
4
4
build_script :
5
- - pwsh : ./Build.ps1
5
+ - pwsh : ./Build.ps1
6
6
test : off
7
7
artifacts :
8
- - path : artifacts/Serilog.*.nupkg
8
+ - path : artifacts/Serilog.*.nupkg
9
+ - path : artifacts/Serilog.*.snupkg
9
10
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
23
26
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
21
21
/// <summary>
22
22
/// Enriches log events with a EnvironmentName property containing the value of the ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT environment variable.
23
23
/// </summary>
24
- class EnvironmentNameEnricher : CachedPropertyEnricher
24
+ sealed class EnvironmentNameEnricher : CachedPropertyEnricher
25
25
{
26
26
/// <summary>
27
27
/// The property name added to enriched log events.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
21
21
/// <summary>
22
22
/// Enriches log events with an EnvironmentUserName property containing [<see cref="Environment.UserDomainName"/>\]<see cref="Environment.UserName"/>.
23
23
/// </summary>
24
- class EnvironmentUserNameEnricher : CachedPropertyEnricher
24
+ sealed class EnvironmentUserNameEnricher : CachedPropertyEnricher
25
25
{
26
26
/// <summary>
27
27
/// The property name added to enriched log events.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
21
21
/// <summary>
22
22
/// Enriches log events with a EnvironmentName property containing the value of the ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT environment variable.
23
23
/// </summary>
24
- class EnvironmentVariableEnricher : CachedPropertyEnricher
24
+ sealed class EnvironmentVariableEnricher : CachedPropertyEnricher
25
25
{
26
26
readonly string _envVarName ;
27
27
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace Serilog.Enrichers;
21
21
/// <summary>
22
22
/// Enriches log events with a MachineName property containing <see cref="Environment.MachineName"/>.
23
23
/// </summary>
24
- class MachineNameEnricher : CachedPropertyEnricher
24
+ sealed class MachineNameEnricher : CachedPropertyEnricher
25
25
{
26
26
/// <summary>
27
27
/// The property name added to enriched log events.
Original file line number Diff line number Diff line change 28
28
<ItemGroup >
29
29
<PackageReference Include =" Serilog" Version =" 4.0.0" />
30
30
<PackageReference Include =" Nullable" Version =" 1.3.1" PrivateAssets =" All" />
31
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
31
32
</ItemGroup >
32
33
33
34
<ItemGroup >
You can’t perform that action at this time.
0 commit comments