Skip to content

Commit 38883c2

Browse files
author
Jason Zhai
committed
Merge branch 'main' of https://github.com/dotnet/sdk into darc-main-97a3c80c-6b81-423b-b6be-8478013a289d
2 parents fe1f184 + f6365c6 commit 38883c2

File tree

26 files changed

+361
-318
lines changed

26 files changed

+361
-318
lines changed

build.cmd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
@echo off
2-
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command "& """%~dp0eng\common\build.ps1""" -restore -build -nativeToolsOnMachine -msbuildEngine dotnet %*"
2+
3+
echo %* | findstr /C:"-pack" >nul
4+
if %errorlevel%==0 (
5+
set PackInstaller=
6+
) else (
7+
set PackInstaller=/p:PackInstaller=false
8+
)
9+
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command "& """%~dp0eng\common\build.ps1""" -restore -build -nativeToolsOnMachine -msbuildEngine dotnet %PackInstaller% %*"
310
exit /b %ErrorLevel%

build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
88
done
99
ScriptRoot="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
1010

11-
. "$ScriptRoot/eng/common/build.sh" --build --restore "$@"
11+
if [[ "$@" != *"-pack"* ]]; then
12+
packInstallerFlag="/p:PackInstaller=false"
13+
else
14+
packInstallerFlag=
15+
fi
16+
17+
. "$ScriptRoot/eng/common/build.sh" --build --restore $packInstallerFlag "$@"

eng/Version.Details.xml

Lines changed: 144 additions & 144 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 64 additions & 61 deletions
Large diffs are not rendered by default.

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"cmake": "latest"
1818
},
1919
"msbuild-sdks": {
20-
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24375.3",
21-
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24375.3",
20+
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24379.1",
21+
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24379.1",
2222
"Microsoft.Build.NoTargets": "3.7.0",
2323
"Microsoft.DotNet.CMake.Sdk": "9.0.0-beta.24217.1"
2424
}

src/BuiltInTools/dotnet-watch/dotnet-watch.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" />
3737
<PackageReference Include="Microsoft.NET.StringTools" ExcludeAssets="runtime" PrivateAssets="All" />
3838

39-
<!--
40-
Explicit System.Text.Json package reference is required for source-build to pick up the live package.
41-
Avoids picking up an old version via transitive dependency from Microsoft.Build or Microsoft.CodeAnalysis.Workspaces.MSBuild.
42-
-->
43-
<PackageReference Include="System.Text.Json" />
4439
<!-- Lift dependency of NETStandard.Library.NETFramework to version produced in SBRP. -->
4540
<PackageReference Include="NETStandard.Library" VersionOverride="$(NETStandardLibraryVersion)" ExcludeAssets="All" />
4641

src/Cli/dotnet/commands/dotnet-workload/restore/WorkloadRestoreCommand.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.CommandLine;
55
using Microsoft.Build.Construction;
66
using Microsoft.Build.Execution;
7-
using Microsoft.Build.Framework;
87
using Microsoft.Build.Logging;
98
using Microsoft.DotNet.Cli;
109
using Microsoft.DotNet.Cli.Utils;
@@ -44,6 +43,8 @@ public override int Execute()
4443
return 0;
4544
}
4645

46+
private static string GetRequiredWorkloadsTargetName = "_GetRequiredWorkloads";
47+
4748
private List<WorkloadId> RunTargetToGetWorkloadIds(IEnumerable<string> allProjects)
4849
{
4950
var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
@@ -55,12 +56,15 @@ private List<WorkloadId> RunTargetToGetWorkloadIds(IEnumerable<string> allProjec
5556
foreach (string projectFile in allProjects)
5657
{
5758
var project = new ProjectInstance(projectFile, globalProperties, null);
59+
if (!project.Targets.ContainsKey(GetRequiredWorkloadsTargetName))
60+
{
61+
continue;
62+
}
5863

59-
bool buildResult = project.Build(new[] { "_GetRequiredWorkloads" },
60-
loggers: new ILogger[]
61-
{
64+
bool buildResult = project.Build([GetRequiredWorkloadsTargetName],
65+
loggers: [
6266
new ConsoleLogger(Verbosity.ToLoggerVerbosity())
63-
},
67+
],
6468
remoteLoggers: Enumerable.Empty<ForwardingLoggerRecord>(),
6569
targetOutputs: out var targetOutputs);
6670

@@ -73,7 +77,7 @@ private List<WorkloadId> RunTargetToGetWorkloadIds(IEnumerable<string> allProjec
7377
isUserError: false);
7478
}
7579

76-
var targetResult = targetOutputs["_GetRequiredWorkloads"];
80+
var targetResult = targetOutputs[GetRequiredWorkloadsTargetName];
7781
allWorkloadId.AddRange(targetResult.Items.Select(item => new WorkloadId(item.ItemSpec)));
7882
}
7983

src/Installer/redist-installer/packaging/windows/VS.Tools.Net.Core.SDK.Resolver.cxspec

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Installer/redist-installer/packaging/windows/VS.Tools.Net.Core.SDK.Resolver.nuspec

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Installer/redist-installer/packaging/windows/VS.Tools.Net.Core.SDK.nuspec

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)