Skip to content

Commit

Permalink
Latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Dec 16, 2024
1 parent 50e58fb commit 861adad
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 27 deletions.
10 changes: 5 additions & 5 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="[$(MicrosoftCodeAnalysisVersion)]" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.146">
<PackageReference Include="Nerdbank.GitVersioning" Version="3.7.112">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down Expand Up @@ -75,12 +75,12 @@

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.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="0.6.0-pre.9" />
<PackageReference Include="xunit.v3.core" Version="0.6.0-pre.9" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0-pre.49" />
<PackageReference Include="xunit.v3.assert.source" Version="1.0.0" />
<PackageReference Include="xunit.v3.core" Version="1.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
</ItemGroup>

</When>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ public class CustomSerializer : IXunitSerializer {{
public object Deserialize(Type type, string serializedValue) =>
throw new NotImplementedException();
public bool IsSerializable(Type type, object? value) =>
true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{{
failureReason = null;
return true;
}}
public string Serialize(object value) =>
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,11 @@ public class CustomSerializer : IXunitSerializer {{
public object Deserialize(Type type, string serializedValue) =>
throw new NotImplementedException();
public bool IsSerializable(Type type, object? value) =>
true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{{
failureReason = null;
return true;
}}
public string Serialize(object value) =>
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ public class {{|#0:MySerializer|}} : IXunitSerializer
{0}
public object Deserialize(Type type, string serializedValue) => null!;
public bool IsSerializable(Type type, object? value) => true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{{
failureReason = null;
return true;
}}
public string Serialize(object value) => string.Empty;
}}
""";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ public class [|MySerializer|] : IXunitSerializer
public MySerializer(int _) { }
public object Deserialize(Type type, string serializedValue) => null!;
public bool IsSerializable(Type type, object? value) => true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{
failureReason = null;
return true;
}
public string Serialize(object value) => string.Empty;
}
""";
Expand All @@ -353,7 +357,11 @@ public MySerializer()
public MySerializer(int _) { }
public object Deserialize(Type type, string serializedValue) => null!;
public bool IsSerializable(Type type, object? value) => true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{
failureReason = null;
return true;
}
public string Serialize(object value) => string.Empty;
}
""";
Expand All @@ -373,7 +381,11 @@ public class [|MySerializer|] : IXunitSerializer
protected MySerializer() { }
public object Deserialize(Type type, string serializedValue) => null!;
public bool IsSerializable(Type type, object? value) => true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{
failureReason = null;
return true;
}
public string Serialize(object value) => string.Empty;
}
""";
Expand All @@ -386,7 +398,11 @@ public class MySerializer : IXunitSerializer
public MySerializer() { }
public object Deserialize(Type type, string serializedValue) => null!;
public bool IsSerializable(Type type, object? value) => true;
public bool IsSerializable(Type type, object? value, out string? failureReason)
{
failureReason = null;
return true;
}
public string Serialize(object value) => string.Empty;
}
""";
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", "0.6.0-pre.9"),
new PackageIdentity("xunit.v3.common", "0.6.0-pre.9"),
new PackageIdentity("xunit.v3.extensibility.core", "0.6.0-pre.9"),
new PackageIdentity("xunit.v3.runner.common", "0.6.0-pre.9")
new PackageIdentity("xunit.v3.assert", "1.0.0"),
new PackageIdentity("xunit.v3.common", "1.0.0"),
new PackageIdentity("xunit.v3.extensibility.core", "1.0.0"),
new PackageIdentity("xunit.v3.runner.common", "1.0.0")
)
);

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", "0.6.0-pre.9"),
new PackageIdentity("xunit.v3.runner.utility", "0.6.0-pre.9")
new PackageIdentity("xunit.v3.common", "1.0.0"),
new PackageIdentity("xunit.v3.runner.utility", "1.0.0")
)
);
}
Expand Down
10 changes: 5 additions & 5 deletions src/xunit.analyzers.tests/xunit.analyzers.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,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="[0.6.0-pre.9]" />
<PackageDownload Include="xunit.v3.common" Version="[0.6.0-pre.9]" />
<PackageDownload Include="xunit.v3.extensibility.core" Version="[0.6.0-pre.9]" />
<PackageDownload Include="xunit.v3.runner.common" Version="[0.6.0-pre.9]" />
<PackageDownload Include="xunit.v3.runner.utility" Version="[0.6.0-pre.9]" />
<PackageDownload Include="xunit.v3.assert" Version="[1.0.0]" />
<PackageDownload Include="xunit.v3.common" Version="[1.0.0]" />
<PackageDownload Include="xunit.v3.extensibility.core" Version="[1.0.0]" />
<PackageDownload Include="xunit.v3.runner.common" Version="[1.0.0]" />
<PackageDownload Include="xunit.v3.runner.utility" Version="[1.0.0]" />

<!-- 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="[0.6.0-pre.9]" />
<PackageDownload Include="xunit.v3.runner.console" Version="[1.0.0]" />
</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", "0.6.0-pre.9", "tools", "net472", "xunit.v3.runner.console.exe");
consoleRunner = Path.Combine(NuGetPackageCachePath, "xunit.v3.runner.console", "1.0.0", "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 861adad

Please sign in to comment.