Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@
]
},
"demaconsulting.textlint.tool": {
"version": "0.1.0-beta.2",
"version": "0.1.0-beta.4",
"commands": [
"textlint"
],
"rollForward": false
},
"demaconsulting.canvasnet.tool": {
"version": "0.2.0-beta.6",
"version": "0.2.0-beta.10",
"commands": [
"canvasnet"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ private static class CacheLeases
/// <summary>
/// Guards <see cref="Counts"/> and serializes the pruning decisions.
/// </summary>
private static readonly object Gate = new();
private static readonly Lock Gate = new();

/// <summary>
/// The number of readers holding each folder; a folder with no reader has no entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
/// The logger given to the NuGet library, wrapped so that secrets are removed from every
/// message.
/// </summary>
private readonly ILogger _nugetLogger;

Check warning on line 173 in src/DemaConsulting.AgentControl/AgentPackageManagement/NuGetSourceProvider.cs

View workflow job for this annotation

GitHub Actions / Build / Build macos-latest

Rename this field '_nugetLogger' to match the regular expression '^_?[Ll]og(ger)?$'.

Check warning on line 173 in src/DemaConsulting.AgentControl/AgentPackageManagement/NuGetSourceProvider.cs

View workflow job for this annotation

GitHub Actions / Build / Build ubuntu-latest

Rename this field '_nugetLogger' to match the regular expression '^_?[Ll]og(ger)?$'.

Check warning on line 173 in src/DemaConsulting.AgentControl/AgentPackageManagement/NuGetSourceProvider.cs

View workflow job for this annotation

GitHub Actions / Build / Build windows-latest

Rename this field '_nugetLogger' to match the regular expression '^_?[Ll]og(ger)?$'.

/// <summary>
/// The AgentControl-owned folder that NuGet configuration discovery starts from and that
Expand Down Expand Up @@ -198,7 +198,7 @@
/// <summary>
/// Serializes the one-time preparation of <see cref="_root"/>.
/// </summary>
private readonly object _prepareLock = new();
private readonly Lock _prepareLock = new();

/// <summary>
/// Whether <see cref="_root"/> and its generated configuration have been prepared.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
/// <summary>
/// Guards <see cref="_failures"/>.
/// </summary>
private readonly object _lock = new();
private readonly Lock _lock = new();

/// <summary>
/// The first failure recorded per source alias (case-insensitive) and package ID.
Expand Down Expand Up @@ -160,7 +160,7 @@
/// <summary>
/// Guards <see cref="_sources"/> and the per-source entries.
/// </summary>
private readonly object _lock = new();
private readonly Lock _lock = new();

/// <summary>
/// The cached data per source alias (case-insensitive).
Expand Down Expand Up @@ -419,7 +419,7 @@
// Every consulted source failing means nothing is known: say so instead of reporting an
// empty offer. A refusal of access (HTTP 403) is the failure to report when there is one: it is
// the one a person can act on (and carries the server's reason), whatever order the sources failed in
if (consulted > 0 && succeeded == 0 && firstFailure is not null)

Check warning on line 422 in src/DemaConsulting.AgentControl/AgentPackageManagement/PackageVersionCache.cs

View workflow job for this annotation

GitHub Actions / Build / Build macos-latest

Change this condition so that it does not always evaluate to 'True'.

Check warning on line 422 in src/DemaConsulting.AgentControl/AgentPackageManagement/PackageVersionCache.cs

View workflow job for this annotation

GitHub Actions / Build / Build ubuntu-latest

Change this condition so that it does not always evaluate to 'True'.

Check warning on line 422 in src/DemaConsulting.AgentControl/AgentPackageManagement/PackageVersionCache.cs

View workflow job for this annotation

GitHub Actions / Build / Build windows-latest

Change this condition so that it does not always evaluate to 'True'.
{
ExceptionDispatchInfo.Capture(firstAccessDenied ?? firstFailure).Throw();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<!-- Build Tool Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.Sbom.Targets" Version="4.1.13" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.403" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="11.0.100" PrivateAssets="All" />
<PackageReference Include="Polyfill" Version="11.4.5" PrivateAssets="All" />
</ItemGroup>

Expand All @@ -105,7 +105,7 @@
throughout the app, so subsystems depend only on the portable ILogger<T>
interface rather than Serilog directly. -->
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.14" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="11.0.0" />
<PackageReference Include="Serilog" Version="4.4.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="10.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
Expand All @@ -125,9 +125,9 @@
drop-in replacement published to nuget.org; its Debug-only dev-tools role is therefore
intentionally omitted here rather than pinned to an incompatible 11.x version. -->
<ItemGroup>
<PackageReference Include="Avalonia" Version="12.1.5" />
<PackageReference Include="Avalonia.Desktop" Version="12.1.5" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="12.1.5" />
<PackageReference Include="Avalonia" Version="12.1.6" />
<PackageReference Include="Avalonia.Desktop" Version="12.1.6" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="12.1.6" />
<PackageReference Include="Material.Icons.Avalonia" Version="3.0.2" />
</ItemGroup>

Expand All @@ -138,11 +138,11 @@
in packages that consume this tool.
- IncludeAssets lists all asset types (including 'analyzers' and 'buildtransitive') to ensure
Roslyn analyzers and MSBuild targets are fully activated during the build. -->
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.36.0.15337">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ internal sealed class PackageCredentialCallback
/// <summary>
/// Serializes creation of the memoized answer.
/// </summary>
private readonly object _gate = new();
private readonly Lock _gate = new();

/// <summary>
/// The memoized answer to the feed's first challenge (a credential, or <see langword="null"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@

<!-- Build Tool Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.403" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="11.0.100" PrivateAssets="All" />
<PackageReference Include="Polyfill" Version="11.4.5" PrivateAssets="All" />
</ItemGroup>

<!-- Code Analysis Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.36.0.15337">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public void GitRepositoryAddress_CacheKey_IsSixteenLowerCaseHexDigits(string tex
public void GitRepositoryAddress_CacheKey_SchemeAndHostCaseDoNotChangeIt()
{
// Arrange
GitRepositoryAddress Parse(string text)
static GitRepositoryAddress Parse(string text)
{
Assert.True(GitRepositoryAddress.TryParse(text, out var address, out var problem), problem);
return address!;
Expand All @@ -408,7 +408,7 @@ GitRepositoryAddress Parse(string text)
public void GitRepositoryAddress_CacheKey_DifferentRepositoriesHaveDifferentKeys()
{
// Arrange
GitRepositoryAddress Parse(string text)
static GitRepositoryAddress Parse(string text)
{
Assert.True(GitRepositoryAddress.TryParse(text, out var address, out var problem), problem);
return address!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public void PackageSourceDefinition_GetCredentialProblem_GitSource_IsTypeAware(s
public void PackageSourceDefinition_GetGitSettingsProblem_ChecksAddressPatternSubfolderAndPackageId()
{
// Arrange
PackageSourceDefinition Valid() => new()
static PackageSourceDefinition Valid() => new()
{
Alias = "Repo",
Type = PackageSourceType.Git,
Expand Down Expand Up @@ -508,7 +508,7 @@ public void PackageSourceDefinition_GetSignaturePolicyProblem_OnlyAnUnreadableFi
{
// Arrange
var invalid = "not-a-fingerprint-4419";
PackageSourceDefinition Make(PackageSourceType type, bool require, string? fingerprint) =>
static PackageSourceDefinition Make(PackageSourceType type, bool require, string? fingerprint) =>
new() { Alias = "S", Type = type, Location = @"C:\a", RequireSignedPackages = require, SignerFingerprint = fingerprint };

// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void PackageSourceRegistry_Resolve_RepeatedCalls_CreatesProviderOnceAndLa
public void PackageSourceRegistry_Constructor_DuplicateOrBlankAlias_ThrowsInvalidOperationException()
{
// Arrange
PackageSourceDefinition Source(string alias) =>
static PackageSourceDefinition Source(string alias) =>
new() { Alias = alias, Type = PackageSourceType.Zip, Location = "x" };

// Act / Assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internal sealed class FakeAgentToolProcessStarter : IAgentToolProcessStarter
/// <summary>
/// Guards <see cref="_started"/>.
/// </summary>
private readonly object _gate = new();
private readonly Lock _gate = new();

/// <summary>
/// The start information received so far, as copies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
- PrivateAssets="all" keeps this test-coverage tool out of any consuming project's dependencies.
- IncludeAssets lists all asset types (including 'build' and 'buildtransitive') to ensure the
extension's MSBuild targets are activated so coverage is collected during test runs. -->
<PackageReference Include="coverlet.MTP" Version="10.1.0">
<PackageReference Include="coverlet.MTP" Version="10.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!-- Avalonia.Headless runs window code-behind on a headless Avalonia platform (no display needed),
so it works on CI runners and counts toward coverage. The Avalonia.Headless.XUnit package
targets an older xunit.v3 core, so HeadlessTestApp provides a small session helper instead. -->
<PackageReference Include="Avalonia.Headless" Version="12.1.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="Avalonia.Headless" Version="12.1.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<!-- FakeTimeProvider moves the clock by hand, so cache-expiry and periodic-timer tests do not wait -->
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.9.0" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.2" />
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="11.0.0" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.3" />
<PackageReference Include="xunit.v3" Version="4.0.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -59,11 +59,11 @@
in any project that references this test project.
- IncludeAssets lists all asset types (including 'analyzers' and 'buildtransitive') to ensure
Roslyn analyzers and MSBuild targets are fully activated during the build. -->
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.36.0.15337">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public async Task PackageSourceItemViewModel_LocalFolderSource_KeepsFolderStatus
public void PackageSourceItemViewModel_RequiresSignature_OnlyForSignedNuGetSources()
{
// Arrange
PackageSourceItemViewModel Row(PackageSourceType type, string location, bool signed) =>
static PackageSourceItemViewModel Row(PackageSourceType type, string location, bool signed) =>
new(new PackageSourceDefinition { Alias = "S", Type = type, Location = location, RequireSignedPackages = signed }, 0);

// Act / Assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@

<!-- Test Framework Dependencies -->
<ItemGroup>
<PackageReference Include="coverlet.MTP" Version="10.1.0">
<PackageReference Include="coverlet.MTP" Version="10.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.3" />
<PackageReference Include="xunit.v3" Version="4.0.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1">
<PrivateAssets>all</PrivateAssets>
Expand Down Expand Up @@ -90,16 +90,16 @@
<!-- WMI (Win32_Process) access: lets LaunchedShellCleaner read process command lines/parent
ids so it only ever terminates the shell this test's own launch spawned. -->
<ItemGroup>
<PackageReference Include="System.Management" Version="10.0.14" />
<PackageReference Include="System.Management" Version="11.0.0" />
</ItemGroup>

<!-- Code Analysis Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.36.0.15337">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@

<!-- Test Framework Dependencies -->
<ItemGroup>
<PackageReference Include="coverlet.MTP" Version="10.1.0">
<PackageReference Include="coverlet.MTP" Version="10.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.3" />
<PackageReference Include="xunit.v3" Version="4.0.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -46,11 +46,11 @@

<!-- Code Analysis Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.36.0.15337">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@

<!-- Code Analysis Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.36.0.15337">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand All @@ -48,7 +48,7 @@

<!-- WMI, to read a running process's command line (instance validation) -->
<ItemGroup>
<PackageReference Include="System.Management" Version="10.0.14" />
<PackageReference Include="System.Management" Version="11.0.0" />
</ItemGroup>

<!-- The unit tests cover argument, chord, registry and fixture logic directly -->
Expand Down
Loading