Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa32329

Browse files
committedMar 24, 2025·
Merge branch 'main' into ensure-DerivePathInfo-is-only-called-once
2 parents 3d2a263 + 4b235b5 commit aa32329

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>29.0.0-beta.2</Version>
4+
<Version>29.0.0-beta.5</Version>
55
<NoWarn>CA1822;CS1591;CS0649;xUnit1026;xUnit1013;CS1573;VerifyTestsProjectDir;VerifySetParameters;PolyFillTargetsForNuget;xUnit1051</NoWarn>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>preview</LangVersion>

‎src/Verify/VerifierSettings_TargetAssembly.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ public static void AssignTargetAssembly(Assembly assembly)
3434
return;
3535
}
3636

37-
lock (locker)
37+
using (locker.EnterScope())
3838
{
3939
if (VerifierSettings.assembly is not null)
4040
{
4141
return;
4242
}
4343

44-
VerifierSettings.assembly = assembly;
4544
Namer.UseAssembly(assembly);
4645
IoHelpers.MapPathsForCallingAssembly(assembly);
4746
ProjectDir = AttributeReader.GetProjectDirectory(assembly);
@@ -54,6 +53,7 @@ public static void AssignTargetAssembly(Assembly assembly)
5453

5554
SolutionDir = solutionDir;
5655
ApplyScrubbers.UseAssembly(solutionDir, ProjectDir);
56+
VerifierSettings.assembly = assembly;
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)
Please sign in to comment.