Skip to content

Commit

Permalink
Switch to the VS2022 build worker and .NET 6 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Jul 8, 2022
1 parent d6b36c1 commit 03278e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '{build}'
skip_tags: true
image: Visual Studio 2019
image: Visual Studio 2022
test: off
build_script:
- ps: ./Build.ps1
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"allowPrerelease": false,
"version": "5.0.409",
"version": "6.0.301",
"rollForward": "latestFeature"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,13 @@ public bool BindProperty(string propertyName, object value, bool destructureObje
[MethodImpl(MethodImplOptions.AggressiveInlining)]
(ILogger, bool) UpdateForCaller(ILogger root, ILogger cached, IReloadableLogger caller, out ILogger newRoot, out ILogger newCached, out bool frozen)
{
// Synchronization on `_sync` is not required in this method; it will be called without a lock
// if `_frozen` and under a lock if not.

if (_frozen)
{
// If we're frozen, then the caller hasn't observed this yet and should update.
// If we're frozen, then the caller hasn't observed this yet and should update. We could optimize a little here
// and only signal an update if the cached logger is stale (as per the next condition below).
newRoot = _logger;
newCached = caller.ReloadLogger();
frozen = true;
Expand All @@ -384,7 +388,7 @@ public bool BindProperty(string propertyName, object value, bool destructureObje
frozen = false;
return (cached, false);
}

newRoot = _logger;
newCached = caller.ReloadLogger();
frozen = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net4.8</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net6.0;net4.8</TargetFrameworks>
<AssemblyName>Serilog.Extensions.Hosting.Tests</AssemblyName>
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
Expand Down

0 comments on commit 03278e6

Please sign in to comment.