Skip to content

Commit

Permalink
[main] Update dependencies from dotnet/arcade (#4539)
Browse files Browse the repository at this point in the history
* Update dependencies from https://github.com/dotnet/arcade build 20231008.1

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk
 From Version 8.0.0-beta.23463.1 -> To Version 9.0.0-beta.23508.1

* Fix build

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Igor Velikorossov <igor.velikorossov@microsoft.com>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent 4bd9714 commit 6fda2c8
Show file tree
Hide file tree
Showing 52 changed files with 204 additions and 166 deletions.
8 changes: 4 additions & 4 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23463.1">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.23508.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>1d451c32dda2314c721adbf8829e1c0cd4e681ff</Sha>
<Sha>822f095b8c815dd7b9161140a9ff8151de593f82</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.23463.1">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="9.0.0-beta.23508.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>1d451c32dda2314c721adbf8829e1c0cd4e681ff</Sha>
<Sha>822f095b8c815dd7b9161140a9ff8151de593f82</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
2 changes: 1 addition & 1 deletion eng/common/sdk-task.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ try {
$GlobalJson.tools | Add-Member -Name "vs" -Value (ConvertFrom-Json "{ `"version`": `"16.5`" }") -MemberType NoteProperty
}
if( -not ($GlobalJson.tools.PSObject.Properties.Name -match "xcopy-msbuild" )) {
$GlobalJson.tools | Add-Member -Name "xcopy-msbuild" -Value "17.6.0-2" -MemberType NoteProperty
$GlobalJson.tools | Add-Member -Name "xcopy-msbuild" -Value "17.7.2-1" -MemberType NoteProperty
}
if ($GlobalJson.tools."xcopy-msbuild".Trim() -ine "none") {
$xcopyMSBuildToolsFolder = InitializeXCopyMSBuild $GlobalJson.tools."xcopy-msbuild" -install $true
Expand Down
6 changes: 3 additions & 3 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,13 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
}

# Minimum VS version to require.
$vsMinVersionReqdStr = '17.6'
$vsMinVersionReqdStr = '17.7'
$vsMinVersionReqd = [Version]::new($vsMinVersionReqdStr)

# If the version of msbuild is going to be xcopied,
# use this version. Version matches a package here:
# https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-eng/NuGet/RoslynTools.MSBuild/versions/17.6.0-2
$defaultXCopyMSBuildVersion = '17.6.0-2'
# https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-eng/NuGet/RoslynTools.MSBuild/versions/17.7.2-1
$defaultXCopyMSBuildVersion = '17.7.2-1'

if (!$vsRequirements) {
if (Get-Member -InputObject $GlobalJson.tools -Name 'vs') {
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "3.5.0",
"Microsoft.Build.Traversal": "3.2.0",
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23463.1",
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.23463.1"
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.23508.1",
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.23508.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void Triggers()
Assembly.GetAssembly(typeof(ImmutableDictionary<,>))!,
Assembly.GetAssembly(typeof(FrozenDictionary<,>))!,
},
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(54, d.Count);
for (int i = 0; i < d.Count; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private void Foo()
var d = await RoslynTestUtils.RunAnalyzer(
new CallAnalyzer(),
null,
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(4, d.Count);
for (int i = 0; i < d.Count; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Foo()
Assembly.GetAssembly(typeof(System.Collections.Queue))!,
Assembly.GetAssembly(typeof(System.Collections.Specialized.HybridDictionary))!
},
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(8, d.Count);
for (int i = 0; i < d.Count; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static partial class Log
new CallAnalyzer(),
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget }).ConfigureAwait(false);
new[] { OriginalSource, OriginalTarget });

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -170,7 +170,7 @@ static partial class Log
new CallAnalyzer(),
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))! },
new[] { OriginalSource, OriginalTarget }).ConfigureAwait(false);
new[] { OriginalSource, OriginalTarget });

actualSource = l[0];
actualTarget = l[1];
Expand Down Expand Up @@ -234,7 +234,7 @@ static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource },
extraFile: "Log.cs").ConfigureAwait(false);
extraFile: "Log.cs");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -297,7 +297,7 @@ static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource },
extraFile: "Log.cs").ConfigureAwait(false);
extraFile: "Log.cs");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -358,7 +358,7 @@ static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource },
extraFile: "Log.cs").ConfigureAwait(false);
extraFile: "Log.cs");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -434,7 +434,7 @@ static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource },
extraFile: "Log.cs").ConfigureAwait(false);
extraFile: "Log.cs");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -684,7 +684,7 @@ static partial class Log
new CallAnalyzer(),
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OrriginalSource, OrriginalTarget }).ConfigureAwait(false);
new[] { OrriginalSource, OrriginalTarget });

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -746,7 +746,7 @@ static partial class Log
new CallAnalyzer(),
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OrriginalSource, OrriginalTarget }).ConfigureAwait(false);
new[] { OrriginalSource, OrriginalTarget });

var actualSource = l[0];
var actualTarget = l[1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget },
defaultNamespace: "Example").ConfigureAwait(false);
defaultNamespace: "Example");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -166,7 +166,7 @@ public static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget },
defaultNamespace: "Example").ConfigureAwait(false);
defaultNamespace: "Example");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -230,7 +230,7 @@ static partial class Log
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource },
extraFile: "Log.cs",
defaultNamespace: "Example").ConfigureAwait(false);
defaultNamespace: "Example");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -290,7 +290,7 @@ public static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget },
defaultNamespace: "Example").ConfigureAwait(false);
defaultNamespace: "Example");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -364,7 +364,7 @@ static partial class Log
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget },
defaultNamespace: "Example.Example2").ConfigureAwait(false);
defaultNamespace: "Example.Example2");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -441,7 +441,7 @@ static partial class Log
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget },
extraFile: "Log.cs",
defaultNamespace: "Example.Example2").ConfigureAwait(false);
defaultNamespace: "Example.Example2");

var actualSource = l[0];
var actualTarget = l[2];
Expand Down Expand Up @@ -513,7 +513,7 @@ static partial class Log
new[] { OriginalSource, OriginalTarget },
sourceNames: new[] { "primary.cs", "Log.cs" },
extraFile: "Log2.cs",
defaultNamespace: "Example").ConfigureAwait(false);
defaultNamespace: "Example");

var actualSource = l[0];
var actualTarget = l[2];
Expand Down Expand Up @@ -584,7 +584,7 @@ public static partial class Log
},
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget },
defaultNamespace: "Example").ConfigureAwait(false);
defaultNamespace: "Example");

var actualSource = l[0];
var actualTarget = l[1];
Expand Down Expand Up @@ -649,7 +649,7 @@ public static void TestMethod(ILogger logger)

proj.CommitChanges();
var targetDoc = proj.FindDocument("target.cs");
var targetRoot = await targetDoc.GetSyntaxRootAsync(CancellationToken.None).ConfigureAwait(false);
var targetRoot = await targetDoc.GetSyntaxRootAsync(CancellationToken.None);
var targetClass = targetRoot!.FindNode(RoslynTestUtils.MakeTextSpan(TargetSourceCode, 0)) as ClassDeclarationSyntax;
var invocationDoc = proj.FindDocument("invocation.cs");

Expand All @@ -658,7 +658,7 @@ public static void TestMethod(ILogger logger)
var (invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
InvocationSourceCode.MakeTextSpan(0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.NotNull(invocationExpression);
Assert.NotNull(details);
Expand All @@ -669,7 +669,7 @@ public static void TestMethod(ILogger logger)
invocationDoc,
invocationExpression!,
details!,
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Equal("TestA", methodName);
Assert.False(existing);
Expand All @@ -682,7 +682,7 @@ public static void TestMethod(ILogger logger)
(invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
RoslynTestUtils.MakeTextSpan(InvocationSourceCode, 0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Null(invocationExpression);
Assert.Null(details);
Expand All @@ -695,7 +695,7 @@ public static void TestMethod(ILogger logger)
(invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
RoslynTestUtils.MakeTextSpan(InvocationSourceCode, 0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Null(invocationExpression);
Assert.Null(details);
Expand All @@ -708,7 +708,7 @@ public static void TestMethod(ILogger logger)
(invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
RoslynTestUtils.MakeTextSpan(InvocationSourceCode, 0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Null(invocationExpression);
Assert.Null(details);
Expand All @@ -721,7 +721,7 @@ public static void TestMethod(ILogger logger)
(invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
RoslynTestUtils.MakeTextSpan(InvocationSourceCode, 0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.NotNull(invocationExpression);
Assert.NotNull(details);
Expand All @@ -732,7 +732,7 @@ public static void TestMethod(ILogger logger)
invocationDoc,
invocationExpression!,
details!,
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Equal("TestA", methodName);
Assert.False(existing);
Expand All @@ -745,7 +745,7 @@ public static void TestMethod(ILogger logger)
(invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
RoslynTestUtils.MakeTextSpan(InvocationSourceCode, 0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Null(invocationExpression);
Assert.Null(details);
Expand All @@ -758,7 +758,7 @@ public static void TestMethod(ILogger logger)
(invocationExpression, details) = await f.CheckIfCanFixAsync(
invocationDoc,
RoslynTestUtils.MakeTextSpan(InvocationSourceCode, 0),
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.NotNull(invocationExpression);
Assert.NotNull(details);
Expand All @@ -769,7 +769,7 @@ public static void TestMethod(ILogger logger)
invocationDoc,
invocationExpression!,
details!,
CancellationToken.None).ConfigureAwait(false);
CancellationToken.None);

Assert.Equal("TestA", methodName);
Assert.False(existing);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ public static void TestMethod()
var d = await RoslynTestUtils.RunAnalyzer(
new CallAnalyzer(),
null,
new[] { Source }).ConfigureAwait(false);
new[] { Source });

#pragma warning disable xUnit2013 // Do not use equality check to check for collection size.
Assert.Equal(1, d.Count);
#pragma warning restore xUnit2013 // Do not use equality check to check for collection size.
for (int i = 0; i < d.Count; i++)
{
Source.AssertDiagnostic(i, DiagDescriptors.Split, d[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void DontFlagMe()
var d = await RoslynTestUtils.RunAnalyzer(
new CallAnalyzer(),
null,
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(8, d.Count);

Expand Down Expand Up @@ -114,7 +114,7 @@ public static void DontFlagMe()
var d = await RoslynTestUtils.RunAnalyzer(
new CallAnalyzer(),
null,
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(8, d.Count);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private DateTimeOffset GetTimeOffset(bool condition)
var d = await RoslynTestUtils.RunAnalyzer(
new CallAnalyzer(),
_staticTimeReferences,
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(17, d.Count);
for (int i = 0; i < d.Count; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void Foo()
var d = await RoslynTestUtils.RunAnalyzer(
new CallAnalyzer(),
null,
new[] { Source }).ConfigureAwait(false);
new[] { Source });

Assert.Equal(16, d.Count);
for (int i = 0; i < d.Count; i++)
Expand Down
Loading

0 comments on commit 6fda2c8

Please sign in to comment.