Skip to content

Commit d387596

Browse files
author
Jason Zhai
committed
Merge branch 'release/9.0.2xx' of https://github.com/dotnet/sdk into darc-release/9.0.2xx-39ac6d22-8270-4046-a366-5b89f6392081
2 parents 5281f81 + a1c175f commit d387596

File tree

9 files changed

+31
-14
lines changed

9 files changed

+31
-14
lines changed

src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ internal void GenerateDepsJsonFile(
337337
LocalizableStrings.GeneratingDepsJson,
338338
depsPath));
339339

340-
var tempDepsFile = Path.GetTempFileName();
340+
var tempDepsFile = Path.Combine(PathUtilities.CreateTempSubdirectory(), Path.GetRandomFileName());
341341

342342
var args = new List<string>();
343343

src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallGlobalOrToolPathCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ private NuGetVersion GetBestMatchNugetVersion(PackageId packageId, VersionRange
255255

256256
private static bool ToolVersionAlreadyInstalled(IToolPackage oldPackageNullable, NuGetVersion nuGetVersion)
257257
{
258-
return oldPackageNullable != null && (oldPackageNullable.Version.Version == nuGetVersion.Version);
258+
return oldPackageNullable != null && (oldPackageNullable.Version == nuGetVersion);
259259
}
260260

261261
private static void EnsureVersionIsHigher(IToolPackage oldPackageNullable, IToolPackage newInstalledPackage, bool allowDowngrade)

src/SourceBuild/content/eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<ProductDependencies>
33
</ProductDependencies>
44
<ToolsetDependencies>
5-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24516.2">
5+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24572.2">
66
<Uri>https://github.com/dotnet/arcade</Uri>
7-
<Sha>3c393bbd85ae16ddddba20d0b75035b0c6f1a52d</Sha>
7+
<Sha>b41381d5cd633471265e9cd72e933a7048e03062</Sha>
88
</Dependency>
99
</ToolsetDependencies>
1010
</Dependencies>

src/SourceBuild/content/eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
of a .NET major or minor release, prebuilts may be needed. When the release is mature, prebuilts
2424
are not necessary, and this property is removed from the file.
2525
-->
26-
<PrivateSourceBuiltSdkVersion>9.0.101</PrivateSourceBuiltSdkVersion>
27-
<PrivateSourceBuiltArtifactsVersion>9.0.101-servicing.24575.1</PrivateSourceBuiltArtifactsVersion>
26+
<PrivateSourceBuiltSdkVersion>9.0.102</PrivateSourceBuiltSdkVersion>
27+
<PrivateSourceBuiltArtifactsVersion>9.0.102-servicing.24611.1</PrivateSourceBuiltArtifactsVersion>
2828
<!-- command-line-api dependencies -->
2929
<SystemCommandLineVersion>2.0.0-beta4.24126.1</SystemCommandLineVersion>
3030
<!-- msbuild dependencies -->

src/SourceBuild/content/global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"tools": {
3-
"dotnet": "9.0.101"
3+
"dotnet": "9.0.102"
44
},
55
"msbuild-sdks": {
66
"Microsoft.Build.NoTargets": "3.7.0",
77
"Microsoft.Build.Traversal": "3.4.0",
8-
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24516.2"
8+
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24572.2"
99
}
1010
}

src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/OmniSharpTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Microsoft.DotNet.SourceBuild.SmokeTests;
2020
public class OmniSharpTests : SdkTests
2121
{
2222
// Update version as new releases become available: https://github.com/OmniSharp/omnisharp-roslyn/releases
23-
private const string OmniSharpReleaseVersion = "1.39.12";
23+
private const string OmniSharpReleaseVersion = "1.39.13";
2424

2525
private string OmniSharpDirectory { get; } = Path.Combine(Directory.GetCurrentDirectory(), nameof(OmniSharpTests));
2626

test/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public override bool Execute()
6464

6565
/// <summary>
6666
/// The asynchronous execution method for this MSBuild task which verifies the integrity of required properties
67-
/// and validates their formatting, specifically determining whether the provided xUnit project data have a
67+
/// and validates their formatting, specifically determining whether the provided xUnit project data have a
6868
/// one-to-one mapping. It then creates this mapping before asynchronously preparing the HelixWorkItem TaskItem
6969
/// objects via the PrepareWorkItem method.
7070
/// </summary>
@@ -148,11 +148,13 @@ private async Task<List<ITaskItem>> PrepareWorkItem(ITaskItem xunitProject)
148148
var partitionedWorkItem = new List<ITaskItem>();
149149
foreach (var assemblyPartitionInfo in assemblyPartitionInfos)
150150
{
151-
string command;
151+
string enableDiagLogging = IsPosixShell ? "-d $HELIX_WORKITEM_UPLOAD_ROOT//dotnetTestLog.log" : "-d %HELIX_WORKITEM_UPLOAD_ROOT%\\dotnetTestLog.log";
152+
arguments = string.IsNullOrEmpty(arguments) ? "" : "-- " + arguments;
152153

153154
var testFilter = string.IsNullOrEmpty(assemblyPartitionInfo.ClassListArgumentString) ? "" : $"--filter \"{assemblyPartitionInfo.ClassListArgumentString}\"";
154-
command = $"{driver} test {assemblyName} -e HELIX_WORK_ITEM_TIMEOUT={timeout} {testExecutionDirectory} {msbuildAdditionalSdkResolverFolder} " +
155-
$"{(XUnitArguments != null ? " " + XUnitArguments : "")} --results-directory .{Path.DirectorySeparatorChar} --logger trx --logger \"console;verbosity=detailed\" --blame-hang --blame-hang-timeout 15m {testFilter} -- {arguments}";
155+
156+
string command = $"{driver} test {assemblyName} -e HELIX_WORK_ITEM_TIMEOUT={timeout} {testExecutionDirectory} {msbuildAdditionalSdkResolverFolder} " +
157+
$"{(XUnitArguments != null ? " " + XUnitArguments : "")} --results-directory .{Path.DirectorySeparatorChar} --logger trx --logger \"console;verbosity=detailed\" --blame-hang --blame-hang-timeout 15m {testFilter} {enableDiagLogging} {arguments}";
156158

157159
Log.LogMessage($"Creating work item with properties Identity: {assemblyName}, PayloadDirectory: {publishDirectory}, Command: {command}");
158160

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public GivenThatWeWantToPublishAnAotApp(ITestOutputHelper log) : base(log)
1919
{
2020
}
2121

22-
[RequiresMSBuildVersionTheory("17.12.0")]
22+
[RequiresMSBuildVersionTheory("17.12.0", Skip = "https://github.com/dotnet/sdk/issues/46006")]
2323
[MemberData(nameof(Net7Plus), MemberType = typeof(PublishTestUtils))]
2424
public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled(string targetFramework)
2525
{

test/dotnet.Tests/CommandTests/ToolUpdateGlobalOrToolPathCommandTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,21 @@ public void GivenAnExistedLowerversionInstallationWhenUpdateAllItCanPrintSuccess
222222
_packageId, LowerPackageVersion, HigherPackageVersion));
223223
}
224224

225+
[Fact]
226+
public void GivenAnExistedPreviewVersionInstallationWhenUpdateToHigherVersionItSucceeds()
227+
{
228+
var installCommand = CreateInstallCommand($"-g {_packageId} --version {HigherPreviewPackageVersion} --verbosity minimal");
229+
installCommand.Execute();
230+
_reporter.Lines.Clear();
231+
232+
var command = CreateUpdateCommand($"-g {_packageId} --version {HigherPackageVersion} --verbosity minimal");
233+
command.Execute().Should().Be(0);
234+
235+
_reporter.Lines.First().Should().Contain(string.Format(
236+
LocalizableStrings.UpdateSucceeded,
237+
_packageId, HigherPreviewPackageVersion, HigherPackageVersion));
238+
}
239+
225240
[Fact]
226241
public void GivenAnExistedHigherversionInstallationWhenUpdateToLowerVersionItErrors()
227242
{

0 commit comments

Comments
 (0)