Skip to content

Commit

Permalink
Latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jan 1, 2025
1 parent 10484c0 commit ccdab0d
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 47 deletions.
2 changes: 2 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="feedz.io/xunit/xunit" value="https://f.feedz.io/xunit/xunit/nuget/index.json" protocolVersion="3" />
<!-- Needed for prerelease Roslyn packages -->
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
8 changes: 4 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.3-beta1.24423.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="NSubstitute" Version="5.3.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="xunit.v3.assert.source" Version="1.0.1-pre.8" />
<PackageReference Include="xunit.v3.core" Version="1.0.1-pre.8" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1-pre.4" />
<PackageReference Include="xunit.v3.assert.source" Version="1.0.1-pre.11" />
<PackageReference Include="xunit.v3.core" Version="1.0.1-pre.11" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1-pre.5" />
</ItemGroup>

</When>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

<PropertyGroup>
<AssemblyName>xunit.analyzers.latest.tests.$(TargetFramework)</AssemblyName>
<!--
TODO: Temporarily disable security vulnerability detection because Microsoft.CodeAnalysis.CSharp.CodeFix.Testing
1.1.1 is out of date and 1.1.2 is broken.
-->
<NoWarn>$(NoWarn);NU1902;NU1903;NU1904</NoWarn>
<OutputType>Exe</OutputType>
<PackageId>xunit.analyzers.latest.tests</PackageId>
<RootNamespace>Xunit.Analyzers</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
using Xunit.Analyzers;
using Verify = CSharpVerifier<Xunit.Suppressors.ConsiderCallingConfigureAwaitSuppressor>;

#if ROSLYN_LATEST
using System;
#endif

public sealed class ConsiderCallingConfigureAwaitSuppressorTests
{
[Fact]
Expand Down Expand Up @@ -45,11 +41,7 @@ public async Task TestMethod() {{
}}
}}
""", attribute);
#if ROSLYN_LATEST
var expected = Array.Empty<DiagnosticResult>();
#else
var expected = DiagnosticResult.CompilerWarning("CA2007").WithLocation(0).WithIsSuppressed(true);
#endif

await Verify.VerifySuppressor(code, CodeAnalysisNetAnalyzers.CA2007(), expected);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Testing;
using Xunit;
using Xunit.Analyzers;
using Verify = CSharpVerifier<Xunit.Suppressors.MakeTypesInternalSuppressor>;

#if ROSLYN_LATEST
using System;
#else
using Microsoft.CodeAnalysis;
#endif

public sealed class MakeTypesInternalSuppressorTests
{
[Fact]
Expand Down Expand Up @@ -43,11 +38,7 @@ public class {{|#0:TestClass|}} {{
public void TestMethod() {{ }}
}}
""", attribute);
#if ROSLYN_LATEST
var expected = Array.Empty<DiagnosticResult>();
#else
var expected = new DiagnosticResult("CA1515", DiagnosticSeverity.Warning).WithLocation(0).WithIsSuppressed(true);
#endif

await Verify.VerifySuppressor(code, CodeAnalysisNetAnalyzers.CA1515(), expected);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public class TestClass {
var expected = new[]
{
new DiagnosticResult("VSTHRD200", DiagnosticSeverity.Warning).WithLocation(0),
#if !ROSLYN_LATEST
new DiagnosticResult("VSTHRD200", DiagnosticSeverity.Warning).WithLocation(1).WithIsSuppressed(true),
#endif
};

await Verify.VerifySuppressor(code, VsThreadingAnalyzers.VSTHRD200(), expected);
Expand Down
12 changes: 6 additions & 6 deletions src/xunit.analyzers.tests/Utility/CodeAnalyzerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ static CodeAnalyzerHelper()
new PackageIdentity("Microsoft.Extensions.Primitives", "8.0.0"),
new PackageIdentity("System.Threading.Tasks.Extensions", "4.5.4"),
new PackageIdentity("System.Text.Json", "8.0.0"),
new PackageIdentity("xunit.v3.assert", "1.0.1-pre.8"),
new PackageIdentity("xunit.v3.common", "1.0.1-pre.8"),
new PackageIdentity("xunit.v3.extensibility.core", "1.0.1-pre.8"),
new PackageIdentity("xunit.v3.runner.common", "1.0.1-pre.8")
new PackageIdentity("xunit.v3.assert", "1.0.1-pre.11"),
new PackageIdentity("xunit.v3.common", "1.0.1-pre.11"),
new PackageIdentity("xunit.v3.extensibility.core", "1.0.1-pre.11"),
new PackageIdentity("xunit.v3.runner.common", "1.0.1-pre.11")
)
);

Expand All @@ -74,8 +74,8 @@ static CodeAnalyzerHelper()
new PackageIdentity("Microsoft.Extensions.Primitives", "8.0.0"),
new PackageIdentity("System.Threading.Tasks.Extensions", "4.5.4"),
new PackageIdentity("System.Text.Json", "8.0.0"),
new PackageIdentity("xunit.v3.common", "1.0.1-pre.8"),
new PackageIdentity("xunit.v3.runner.utility", "1.0.1-pre.8")
new PackageIdentity("xunit.v3.common", "1.0.1-pre.11"),
new PackageIdentity("xunit.v3.runner.utility", "1.0.1-pre.11")
)
);
}
Expand Down
15 changes: 5 additions & 10 deletions src/xunit.analyzers.tests/xunit.analyzers.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

<PropertyGroup>
<AssemblyName>xunit.analyzers.tests.$(TargetFramework)</AssemblyName>
<!--
TODO: Temporarily disable security vulnerability detection because Microsoft.CodeAnalysis.CSharp.CodeFix.Testing
1.1.1 is out of date and 1.1.2 is broken.
-->
<NoWarn>$(NoWarn);NU1902;NU1903;NU1904</NoWarn>
<OutputType>Exe</OutputType>
<PackageId>xunit.analyzers.tests</PackageId>
<RootNamespace>Xunit.Analyzers</RootNamespace>
Expand All @@ -28,11 +23,11 @@
<PackageDownload Include="xunit.extensibility.execution" Version="[2.9.3-pre.4]" />
<PackageDownload Include="xunit.runner.utility" Version="[2.9.3-pre.4]" />

<PackageDownload Include="xunit.v3.assert" Version="[1.0.1-pre.8]" />
<PackageDownload Include="xunit.v3.common" Version="[1.0.1-pre.8]" />
<PackageDownload Include="xunit.v3.extensibility.core" Version="[1.0.1-pre.8]" />
<PackageDownload Include="xunit.v3.runner.common" Version="[1.0.1-pre.8]" />
<PackageDownload Include="xunit.v3.runner.utility" Version="[1.0.1-pre.8]" />
<PackageDownload Include="xunit.v3.assert" Version="[1.0.1-pre.11]" />
<PackageDownload Include="xunit.v3.common" Version="[1.0.1-pre.11]" />
<PackageDownload Include="xunit.v3.extensibility.core" Version="[1.0.1-pre.11]" />
<PackageDownload Include="xunit.v3.runner.common" Version="[1.0.1-pre.11]" />
<PackageDownload Include="xunit.v3.runner.utility" Version="[1.0.1-pre.11]" />

<!-- Download packages referenced by CodeAnalysisNetAnalyzers -->
<PackageDownload Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="[9.0.0-preview.24454.1]" />
Expand Down
2 changes: 1 addition & 1 deletion tools/builder/build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<PackageDownload Include="xunit.v3.runner.console" Version="[1.0.1-pre.8]" />
<PackageDownload Include="xunit.v3.runner.console" Version="[1.0.1-pre.11]" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion tools/builder/models/BuildContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial IReadOnlyList<string> GetSkippedAnalysisFolders() =>

partial void Initialize()
{
consoleRunner = Path.Combine(NuGetPackageCachePath, "xunit.v3.runner.console", "1.0.1-pre.8", "tools", "net472", "xunit.v3.runner.console.exe");
consoleRunner = Path.Combine(NuGetPackageCachePath, "xunit.v3.runner.console", "1.0.1-pre.11", "tools", "net472", "xunit.v3.runner.console.exe");
if (!File.Exists(consoleRunner))
throw new InvalidOperationException($"Cannot find console runner at '{consoleRunner}'");
}
Expand Down

0 comments on commit ccdab0d

Please sign in to comment.