Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automated] Merge branch 'release/9.0.1xx' => 'release/9.0.2xx' #45053

Merged
merged 165 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
2486923
Merge commit '88132ec04fe8cf33d3b34f1daa22c2aa4ec7c8ab'
Aug 6, 2024
c63f681
Merge commit '645be96e62e89fe8e19c7e0197aed7af7ba12fec'
Aug 11, 2024
a448499
Merge commit '7a4ccebb778b59bfd4aa40f457d0b99f951fa481'
Aug 13, 2024
992c265
Merge commit '839e656dcc6bc97ae1b82013d0c9ad586a544ab0'
Aug 14, 2024
f9ad8bf
Merged PR 41536: [internal/release/6.0.1xx] Update dependencies from …
Aug 15, 2024
545b7dd
Merged PR 41772: [internal/release/6.0.1xx] Update dependencies from …
Aug 16, 2024
a9e1ba5
Merged PR 41778: [internal/release/6.0.1xx] Update dependencies from …
Aug 16, 2024
902e4fa
Merged PR 41815: [internal/release/6.0.1xx] Update dependencies from …
Aug 17, 2024
436bce4
Merged PR 41826: [internal/release/6.0.1xx] Update dependencies from …
Aug 17, 2024
be7da2b
Merged PR 41864: [internal/release/6.0.1xx] Update dependencies from …
Aug 19, 2024
828b03c
Merge commit '4d9c8d2735f7dd83ead2da7c4f7541f2c5f7d3fd'
Aug 29, 2024
6b5e21e
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 3, 2024
65957f3
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 5, 2024
cf01aac
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 6, 2024
c1de528
Updated .vsts-ci.yml
marcpopMSFT Sep 9, 2024
1a7cab0
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 9, 2024
2993393
Modify first run tests to all use a different test folder so there's …
marcpopMSFT Sep 9, 2024
371e8dc
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 10, 2024
0a899bb
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 10, 2024
6e8de6c
Merged PR 42559: Merge GH release/6.0.1xx to internal/release/6.0.1xx
marcpopMSFT Sep 10, 2024
13c140c
Swap the order of the commands in case that's affecting the first run…
marcpopMSFT Sep 10, 2024
a238702
Revert "Modify first run tests to all use a different test folder so …
marcpopMSFT Sep 10, 2024
d8add06
Revert "Swap the order of the commands in case that's affecting the f…
marcpopMSFT Sep 10, 2024
0eb1a35
Skip two of the first run tests that aren't correctly resetting the e…
marcpopMSFT Sep 10, 2024
f12afa0
Fix typo
marcpopMSFT Sep 11, 2024
a97a233
Add Dev Device ID
marcpopMSFT Aug 30, 2024
f34a6b4
fix the new deviceid tests Make sure we return an empty string if cac…
marcpopMSFT Sep 4, 2024
8fd78e9
add trailing ;
marcpopMSFT Sep 4, 2024
18e4ae8
Null out the helix access token in the test
marcpopMSFT Sep 11, 2024
8cd5234
try the osx13 queues to see if they work better.
marcpopMSFT Sep 11, 2024
715cbd3
Merged PR 42391: [internal/release/6.0.1xx] Update dependencies from …
Sep 11, 2024
542fac1
Add OSX13 to the test infrastructure
marcpopMSFT Sep 11, 2024
c3eac00
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 11, 2024
1d51dbf
remove system access token as well
marcpopMSFT Sep 12, 2024
dc8224e
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 12, 2024
9c00f7a
Merged PR 42752: [internal/release/6.0.1xx] Update dependencies from …
Sep 12, 2024
95dcc8e
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 12, 2024
b534695
Merged PR 42781: [internal/release/6.0.1xx] Update dependencies from …
Sep 12, 2024
d0f14db
Revert to OSx 12 now that three bad machines are out of rotation
marcpopMSFT Sep 12, 2024
daa0f16
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 12, 2024
fdf329d
Merged PR 42794: [internal/release/6.0.1xx] Update dependencies from …
Sep 13, 2024
1cc7dea
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 13, 2024
e96b946
Merged PR 42792: Fix full framework and disable some tests
marcpopMSFT Sep 13, 2024
040861c
Merged PR 42838: [internal/release/6.0.1xx] Update dependencies from …
Sep 13, 2024
0bc8245
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Sep 16, 2024
01eda4d
Merged PR 42872: [internal/release/6.0.1xx] Update dependencies from …
Sep 16, 2024
954f381
Merged PR 42877: [internal/release/6.0.1xx] Merge from public
vseanreesermsft Sep 16, 2024
56406cc
Merged PR 43128: [internal/release/8.0.4xx] Update dependencies from …
Sep 24, 2024
f6397af
Update branding to 6.0.136
vseanreesermsft Oct 1, 2024
db6bb4e
Merge commit '83d33c858b7fdbe8a8ee3cc5d37c55816416dc66'
Oct 2, 2024
b2bf826
add osx14 rid
marcpopMSFT Oct 2, 2024
57d1594
Switch back to macos 13
marcpopMSFT Oct 3, 2024
53b1896
Switch back to macos 13
marcpopMSFT Oct 3, 2024
da41cc8
remove osx14 from the ridlist in the test
marcpopMSFT Oct 3, 2024
9a6ee33
Update branding to 6.0.136 (#43820)
marcpopMSFT Oct 4, 2024
aab610f
Correctly handle different architectures for devdeviceID (#43471)
marcpopMSFT Sep 18, 2024
1080b5b
Merge commit '954f381d16c2d44b573890786ca2d071c217a433' into internal…
vseanreesermsft Oct 8, 2024
3acbe04
Merging internal commits for release/6.0.1xx (#43980)
mmitche Oct 9, 2024
6a9dff5
Merge branch 'release/6.0.4xx' into merge/release/6.0.1xx-to-release/…
marcpopMSFT Oct 9, 2024
52e6013
[automated] Merge branch 'release/6.0.1xx' => 'release/6.0.4xx' (#44022)
marcpopMSFT Oct 10, 2024
72a9fda
Merge branch 'release/8.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 10, 2024
38e6dcd
[automated] Merge branch 'release/6.0.4xx' => 'release/8.0.1xx' (#44046)
v-wuzhai Oct 10, 2024
713b2d9
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Oct 10, 2024
d495e12
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Oct 10, 2024
cbb6e2e
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Oct 10, 2024
15936bb
[release/6.0.4xx] Update dependencies from dotnet/arcade (#44074)
marcpopMSFT Oct 10, 2024
1868cec
[release/8.0.1xx] Update dependencies from dotnet/source-build-extern…
nagilson Oct 10, 2024
70bb861
[release/8.0.1xx] Add Dev Device ID (#43357)
marcpopMSFT Oct 10, 2024
ae44730
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Oct 11, 2024
4ddcae0
Update CsWinRT version
manodasanW Oct 11, 2024
260add9
Update dependencies from https://github.com/dotnet/format build 20241…
dotnet-maestro[bot] Oct 11, 2024
c252660
[release/8.0.1xx] Update dependencies from dotnet/arcade (#44061)
nagilson Oct 11, 2024
b9862ec
[release/6.0.4xx] Update dependencies from dotnet/format (#44092)
v-wuzhai Oct 11, 2024
e0c4a75
[release/8.0.1xx] Update dependencies from dotnet/roslyn (#44090)
v-wuzhai Oct 11, 2024
d5a97d5
Merge branch 'release/8.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 11, 2024
9547584
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Oct 11, 2024
939ff4e
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Oct 11, 2024
8ffef01
[automated] Merge branch 'release/6.0.4xx' => 'release/8.0.1xx' (#44081)
v-wuzhai Oct 11, 2024
d9eca48
[release/8.0.1xx] Update dependencies from dotnet/templating (#44095)
nagilson Oct 11, 2024
8c383f3
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Oct 15, 2024
aba2f63
[release/8.0.1xx] Update dependencies from dotnet/roslyn (#44173)
v-wuzhai Oct 15, 2024
061d34f
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Oct 16, 2024
643db02
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Oct 16, 2024
a5a55d8
[release/8.0.1xx] Update dependencies from dotnet/source-build-extern…
v-wuzhai Oct 17, 2024
e322545
[release/8.0.1xx] Update dependencies from dotnet/arcade (#44244)
v-wuzhai Oct 17, 2024
8110ebe
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Oct 17, 2024
0872692
[release/8.0.1xx] Update dependencies from dotnet/templating (#44256)
v-wuzhai Oct 17, 2024
d8babf8
Merged PR 43910: [internal/release/8.0.4xx] Merge from public
vseanreesermsft Oct 17, 2024
391030b
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 17, 2024
cd750d7
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 18, 2024
68f165d
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 18, 2024
d2c5dbb
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 18, 2024
ab2a660
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 21, 2024
ad6fe13
Merged PR 43932: [internal/release/8.0.4xx] Update dependencies from …
Oct 21, 2024
c1cdd6c
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 22, 2024
8ddc083
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Oct 22, 2024
5dd80ae
Merged PR 44078: [internal/release/8.0.4xx] Update dependencies from …
Oct 22, 2024
20fd99a
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Oct 26, 2024
17d3b31
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Oct 27, 2024
2cf5317
[FIX] tool-install: Use config options
edvilme Oct 28, 2024
f85f664
[FIX] tool-update: Use config options
edvilme Oct 28, 2024
df1c650
[TESTS] tool-install/tool-update: Respect RestoreActionConfig options
edvilme Oct 28, 2024
72cc071
Update branding to 8.0.112
vseanreesermsft Nov 5, 2024
366e0ae
Update branding to 8.0.112 (#44651)
marcpopMSFT Nov 5, 2024
95f4ea0
[FIX] tool-install: Support --ignore-failed-sources flag correctly (#…
marcpopMSFT Nov 5, 2024
8a7483d
[release/8.0.1xx] Update dependencies from dotnet/arcade (#44463)
marcpopMSFT Nov 5, 2024
6d9f55f
[release/8.0.1xx] Update dependencies from dotnet/roslyn (#44473)
marcpopMSFT Nov 5, 2024
31d8a32
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Nov 6, 2024
8dec9ba
[release/8.0.1xx] Update dependencies from dotnet/templating (#44675)
v-wuzhai Nov 6, 2024
6a9874d
Merge branch 'release/8.0.3xx' of https://github.com/dotnet/sdk into …
v-wuzhai Nov 6, 2024
7de92f5
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Nov 7, 2024
75bf2d7
[release/8.0.3xx] Update dependencies from dotnet/templating (#44716)
MiYanni Nov 7, 2024
5d23bb6
Fix merge conflicts/discrepancies
edvilme Nov 8, 2024
fc48812
Fix tests
edvilme Nov 11, 2024
a88089b
Fix tests
edvilme Nov 11, 2024
0dde90b
Fix tests
edvilme Nov 11, 2024
b3ae97e
Fix tests
edvilme Nov 11, 2024
b0968a1
Fix tests
edvilme Nov 11, 2024
7da0b73
[automated] Merge branch 'release/8.0.1xx' => 'release/8.0.3xx' (#44657)
v-wuzhai Nov 12, 2024
1e63b25
Merge branch 'release/8.0.4xx' of https://github.com/dotnet/sdk into …
v-wuzhai Nov 12, 2024
37b15ef
Fix tests
edvilme Nov 12, 2024
032cd5e
Merge commit '5dd80ae4b107027f86bda68ce91542cad72b2868' into internal…
vseanreesermsft Nov 12, 2024
0d73049
Fix the template tests
marcpopMSFT Nov 12, 2024
8b38061
Merging internal commits for release/8.0.4xx (#44823)
marcpopMSFT Nov 13, 2024
2210c16
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Nov 14, 2024
51c05ea
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Nov 15, 2024
a8d4e86
Update dependencies from https://github.com/dotnet/razor build 202411…
dotnet-maestro[bot] Nov 16, 2024
2d6a9c9
[release/8.0.4xx] Update dependencies from dotnet/templating (#44891)
v-codyguan Nov 18, 2024
0507784
[release/8.0.4xx] Update dependencies from dotnet/arcade (#44875)
marcpopMSFT Nov 19, 2024
64a99ba
[release/8.0.4xx] Update dependencies from dotnet/razor (#44906)
marcpopMSFT Nov 19, 2024
cb7b1e9
Merge branch 'release/8.0.4xx' of https://github.com/dotnet/sdk into …
v-wuzhai Nov 20, 2024
00a1152
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Nov 20, 2024
3c2bbc7
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Nov 20, 2024
b65fc0b
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Nov 20, 2024
2140416
[release/9.0.1xx] Update dependencies from dotnet/test-templates (#44…
joeloff Nov 20, 2024
1c52603
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#44982)
joeloff Nov 20, 2024
9d51c1b
[automated] Merge branch 'release/8.0.3xx' => 'release/8.0.4xx' (#44806)
marcpopMSFT Nov 20, 2024
d28b5e3
[StaticWebAssets] Detects pre-compressed assets (#44976)
javiercn Nov 20, 2024
7adf6fa
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Nov 21, 2024
bf9e89f
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Nov 21, 2024
f4eb745
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Nov 21, 2024
0d7e3ad
Update Source-Build SDK Diff Tests Baselines (#45003)
Winniexu01 Nov 21, 2024
97cc1c1
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#45013)
joeloff Nov 21, 2024
e2b4f9e
[release/9.0.1xx] Using ConsoleLogger to prevent unexpected behavior …
MichalPavlik Nov 21, 2024
aef12ba
Enable test timeout dump collection (#44730)
marcpopMSFT Nov 22, 2024
9fb180f
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#45014)
v-wuzhai Nov 22, 2024
d68423b
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Nov 22, 2024
1d36b28
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' (#44990)
marcpopMSFT Nov 22, 2024
c1130ce
[release/9.0.1xx] Update SB dev container image (#44892)
github-actions[bot] Nov 22, 2024
1c6924d
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Nov 23, 2024
37f542e
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Nov 23, 2024
a7cf5b6
[release/9.0.1xx] Update dependencies from nuget/nuget.client (#45048)
joeloff Nov 23, 2024
f472216
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#45067)
joeloff Nov 23, 2024
5d8b954
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#45066)
joeloff Nov 23, 2024
242172b
Update dependencies from https://github.com/dotnet/roslyn-analyzers b…
dotnet-maestro[bot] Nov 24, 2024
1b5038a
Update dependencies from https://github.com/dotnet/razor build 202411…
dotnet-maestro[bot] Nov 24, 2024
8f0fe51
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Nov 24, 2024
5c8dfed
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Nov 24, 2024
12def6a
[release/9.0.1xx] Update dependencies from dotnet/roslyn-analyzers (#…
joeloff Nov 24, 2024
ff3f83c
[release/9.0.1xx] Update dependencies from dotnet/razor (#45077)
joeloff Nov 24, 2024
f5f7a4c
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#45090)
joeloff Nov 24, 2024
651a47b
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#45089)
joeloff Nov 24, 2024
ae5d7c5
Merge branch 'release/9.0.2xx' of https://github.com/dotnet/sdk into …
v-wuzhai Nov 25, 2024
e1f5ba4
Merge branch 'release/9.0.2xx' of https://github.com/dotnet/sdk into …
v-wuzhai Nov 28, 2024
4b15856
Revert the changes in the eng folder
v-wuzhai Nov 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ public ForwardingAppImplementation WithEnvironmentVariable(string name, string v
return this;
}

private string GetHostExeName()
{
// Should instead make this a full path to dotnet
return Environment.ProcessPath;
}
private string GetHostExeName() => new Muxer().MuxerPath;
}
}

Expand Down
24 changes: 22 additions & 2 deletions src/Cli/Microsoft.DotNet.Cli.Utils/Muxer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,31 @@ public string MuxerPath

public Muxer()
{
// Best-effort search for muxer.
// SDK sets DOTNET_HOST_PATH as absolute path to current dotnet executable
#if NET6_0_OR_GREATER
_muxerPath = Environment.ProcessPath;
string processPath = Environment.ProcessPath;
#else
_muxerPath = Process.GetCurrentProcess().MainModule.FileName;
string processPath = Process.GetCurrentProcess().MainModule.FileName;
#endif

// The current process should be dotnet in most normal scenarios except when dotnet.dll is loaded in a custom host like the testhost
if (!Path.GetFileNameWithoutExtension(processPath).Equals("dotnet", StringComparison.OrdinalIgnoreCase))
{
// SDK sets DOTNET_HOST_PATH as absolute path to current dotnet executable
processPath = Environment.GetEnvironmentVariable("DOTNET_HOST_PATH");
if (processPath is null)
{
// fallback to DOTNET_ROOT which typically holds some dotnet executable
var root = Environment.GetEnvironmentVariable("DOTNET_ROOT");
if (root is not null)
{
processPath = Path.Combine(root, $"dotnet{Constants.ExeSuffix}");
}
}
}

_muxerPath = processPath;
}

public static string GetDataFromAppDomain(string propertyName)
Expand Down
2 changes: 2 additions & 0 deletions src/Cli/dotnet/ToolPackage/IToolPackageDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Threading.Tasks;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using Microsoft.DotNet.ToolPackage;
using NuGet.Versioning;

Expand All @@ -16,6 +17,7 @@ IToolPackage InstallPackage(PackageLocation packageLocation,
string targetFramework = null,
bool isGlobalTool = false,
bool isGlobalToolRollForward = false,
RestoreActionConfig restoreActionConfig = null,
bool verifySignatures = true
);

Expand Down
3 changes: 2 additions & 1 deletion src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public IToolPackage InstallPackage(PackageLocation packageLocation, PackageId pa
string targetFramework = null,
bool isGlobalTool = false,
bool isGlobalToolRollForward = false,
RestoreActionConfig restoreActionConfig = null,
bool verifySignatures = true
)
{
Expand All @@ -96,7 +97,7 @@ public IToolPackage InstallPackage(PackageLocation packageLocation, PackageId pa
var toolDownloadDir = isGlobalTool ? _globalToolStageDir : _localToolDownloadDir;
var assetFileDirectory = isGlobalTool ? _globalToolStageDir : _localToolAssetDir;

var nugetPackageDownloader = new NuGetPackageDownloader.NuGetPackageDownloader(toolDownloadDir, verboseLogger: nugetLogger, verifySignatures: verifySignatures, shouldUsePackageSourceMapping: true, verbosityOptions: verbosity, currentWorkingDirectory: _currentWorkingDirectory);
var nugetPackageDownloader = new NuGetPackageDownloader.NuGetPackageDownloader(toolDownloadDir, verboseLogger: nugetLogger, verifySignatures: verifySignatures, shouldUsePackageSourceMapping: true, restoreActionConfig: restoreActionConfig, verbosityOptions: verbosity, currentWorkingDirectory: _currentWorkingDirectory);

var packageSourceLocation = new PackageSourceLocation(packageLocation.NugetConfig, packageLocation.RootConfigDirectory, packageLocation.SourceFeedOverrides, packageLocation.AdditionalFeeds);

Expand Down
4 changes: 3 additions & 1 deletion src/Cli/dotnet/commands/dotnet-run/RunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,9 @@ public void Shutdown()
static ILogger MakeTerminalLogger(VerbosityOptions? verbosity)
{
var msbuildVerbosity = ToLoggerVerbosity(verbosity);
var thing = Assembly.Load("MSBuild").GetType("Microsoft.Build.Logging.TerminalLogger.TerminalLogger")!.GetConstructor([typeof(LoggerVerbosity)])!.Invoke([msbuildVerbosity]) as ILogger;

// Temporary fix for 9.0.1xx. 9.0.2xx will use the TerminalLogger in the safe way.
var thing = new ConsoleLogger(msbuildVerbosity);
return thing!;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ internal class ToolInstallGlobalOrToolPathCommand : CommandBase
private readonly string _currentWorkingDirectory;
private readonly bool? _verifySignatures;

internal readonly RestoreActionConfig _restoreActionConfig;

public ToolInstallGlobalOrToolPathCommand(
ParseResult parseResult,
PackageId? packageId = null,
Expand Down Expand Up @@ -86,11 +88,11 @@ public ToolInstallGlobalOrToolPathCommand(
var configOption = parseResult.GetValue(ToolInstallCommandParser.ConfigOption);
var sourceOption = parseResult.GetValue(ToolInstallCommandParser.AddSourceOption);
var packageSourceLocation = new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), additionalSourceFeeds: sourceOption);
var restoreAction = new RestoreActionConfig(DisableParallel: parseResult.GetValue(ToolCommandRestorePassThroughOptions.DisableParallelOption),
_restoreActionConfig = new RestoreActionConfig(DisableParallel: parseResult.GetValue(ToolCommandRestorePassThroughOptions.DisableParallelOption),
NoCache: (parseResult.GetValue(ToolCommandRestorePassThroughOptions.NoCacheOption) || parseResult.GetValue(ToolCommandRestorePassThroughOptions.NoHttpCacheOption)),
IgnoreFailedSources: parseResult.GetValue(ToolCommandRestorePassThroughOptions.IgnoreFailedSourcesOption),
Interactive: parseResult.GetValue(ToolCommandRestorePassThroughOptions.InteractiveRestoreOption));
nugetPackageDownloader ??= new NuGetPackageDownloader(tempDir, verboseLogger: new NullLogger(), restoreActionConfig: restoreAction, verbosityOptions: _verbosity, verifySignatures: verifySignatures ?? true);
nugetPackageDownloader ??= new NuGetPackageDownloader(tempDir, verboseLogger: new NullLogger(), restoreActionConfig: _restoreActionConfig, verbosityOptions: _verbosity, verifySignatures: verifySignatures ?? true);
_shellShimTemplateFinder = new ShellShimTemplateFinder(nugetPackageDownloader, tempDir, packageSourceLocation);
_store = store;

Expand Down Expand Up @@ -196,6 +198,7 @@ private int ExecuteInstallCommand(PackageId packageId)
verbosity: _verbosity,
isGlobalTool: true,
isGlobalToolRollForward: _allowRollForward,
restoreActionConfig: _restoreActionConfig,
verifySignatures: _verifySignatures ?? true
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.CommandLine;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.ToolManifest;
Expand All @@ -28,6 +29,8 @@ internal class ToolInstallLocalCommand : CommandBase
private readonly bool _allowRollForward;
private readonly bool _updateAll;

internal readonly RestoreActionConfig _restoreActionConfig;

public ToolInstallLocalCommand(
ParseResult parseResult,
PackageId? packageId = null,
Expand All @@ -53,7 +56,11 @@ public ToolInstallLocalCommand(
new ToolManifestFinder(new DirectoryPath(Directory.GetCurrentDirectory()));
_toolManifestEditor = toolManifestEditor ?? new ToolManifestEditor();
_localToolsResolverCache = localToolsResolverCache ?? new LocalToolsResolverCache();
_toolLocalPackageInstaller = new ToolInstallLocalInstaller(parseResult, toolPackageDownloader, runtimeJsonPathForTests);
_restoreActionConfig = new RestoreActionConfig(DisableParallel: parseResult.GetValue(ToolCommandRestorePassThroughOptions.DisableParallelOption),
NoCache: parseResult.GetValue(ToolCommandRestorePassThroughOptions.NoCacheOption),
IgnoreFailedSources: parseResult.GetValue(ToolCommandRestorePassThroughOptions.IgnoreFailedSourcesOption),
Interactive: parseResult.GetValue(ToolCommandRestorePassThroughOptions.InteractiveRestoreOption));
_toolLocalPackageInstaller = new ToolInstallLocalInstaller(parseResult, toolPackageDownloader, runtimeJsonPathForTests, _restoreActionConfig);
_allowRollForward = parseResult.GetValue(ToolInstallCommandParser.RollForwardOption);
_allowPackageDowngrade = parseResult.GetValue(ToolInstallCommandParser.AllowPackageDowngradeOption);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.CommandLine;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.ToolPackage;
Expand All @@ -20,11 +21,13 @@ internal class ToolInstallLocalInstaller
private readonly string _configFilePath;
private readonly string[] _sources;
private readonly VerbosityOptions _verbosity;
private readonly RestoreActionConfig _restoreActionConfig;

public ToolInstallLocalInstaller(
ParseResult parseResult,
IToolPackageDownloader toolPackageDownloader = null,
string runtimeJsonPathForTests = null)
string runtimeJsonPathForTests = null,
RestoreActionConfig restoreActionConfig = null)
{
_parseResult = parseResult;
_configFilePath = parseResult.GetValue(ToolInstallCommandParser.ConfigOption);
Expand All @@ -37,7 +40,7 @@ public ToolInstallLocalInstaller(
= ToolPackageFactory.CreateToolPackageStoresAndDownloader(
additionalRestoreArguments: parseResult.OptionValuesToBeForwarded(ToolInstallCommandParser.GetCommand()), runtimeJsonPathForTests: runtimeJsonPathForTests);
_toolPackageDownloader = toolPackageDownloader ?? toolPackageStoresAndDownloader.downloader;

_restoreActionConfig = restoreActionConfig;

TargetFrameworkToInstall = BundledTargetFramework.GetTargetFrameworkMoniker();
}
Expand Down Expand Up @@ -70,7 +73,8 @@ public IToolPackage Install(FilePath manifestFile, PackageId packageId)
packageId,
verbosity: _verbosity,
versionRange,
TargetFrameworkToInstall
TargetFrameworkToInstall,
restoreActionConfig: _restoreActionConfig
);

return toolDownloadedPackage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Microsoft.DotNet.Tools.Tool.Uninstall;
using Microsoft.Extensions.EnvironmentAbstractions;
using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using CreateShellShimRepository = Microsoft.DotNet.Tools.Tool.Install.CreateShellShimRepository;

namespace Microsoft.DotNet.Tools.Tool.Update
Expand All @@ -23,7 +24,7 @@ internal class ToolUpdateGlobalOrToolPathCommand : CommandBase
{
private readonly CreateShellShimRepository _createShellShimRepository;
private readonly CreateToolPackageStoresAndDownloaderAndUninstaller _createToolPackageStoreDownloaderUninstaller;
private readonly ToolInstallGlobalOrToolPathCommand _toolInstallGlobalOrToolPathCommand;
internal readonly ToolInstallGlobalOrToolPathCommand _toolInstallGlobalOrToolPathCommand;

public ToolUpdateGlobalOrToolPathCommand(ParseResult parseResult,
CreateToolPackageStoresAndDownloaderAndUninstaller createToolPackageStoreDownloaderUninstaller = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.CommandLine;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.NuGetPackageDownloader;
using Microsoft.DotNet.Cli.ToolPackage;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.ToolManifest;
Expand All @@ -19,7 +20,7 @@ internal class ToolUpdateLocalCommand : CommandBase
private readonly IToolManifestEditor _toolManifestEditor;
private readonly ILocalToolsResolverCache _localToolsResolverCache;
private readonly IToolPackageDownloader _toolPackageDownloader;
private readonly Lazy<ToolInstallLocalCommand> _toolInstallLocalCommand;
internal readonly Lazy<ToolInstallLocalCommand> _toolInstallLocalCommand;
private readonly IReporter _reporter;

public ToolUpdateLocalCommand(
Expand Down
2 changes: 1 addition & 1 deletion src/SourceBuild/content/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Container contains checked-out source code only
{
"name": "Default",
"image": "mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-39",
"image": "mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-41",
"hostRequirements": {
// A completely source built .NET is >64 GB with all the repos/artifacts
"storage": "128gb"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Container contains a pre-built SDK
{
"name": "Pre-built .NET SDK",
"image": "mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-39",
"image": "mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-41",
"hostRequirements": {
// A completely source built .NET is >64 GB with all the repos/artifacts
"storage": "128gb"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ index ------------
./packs/Microsoft.NETCore.App.Ref/
./packs/Microsoft.NETCore.App.Ref/x.y.z/
./packs/Microsoft.NETCore.App.Ref/x.y.z/analyzers/
@@ ------------ @@
./sdk-manifests/
./sdk-manifests/x.y.z/
./sdk-manifests/x.y.z/
-./sdk-manifests/x.y.z/
./sdk-manifests/x.y.z/microsoft.net.sdk.aspire/
./sdk-manifests/x.y.z/microsoft.net.sdk.aspire/x.y.z/
./sdk-manifests/x.y.z/microsoft.net.sdk.aspire/x.y.z/WorkloadManifest.Aspire.targets
@@ ------------ @@
./sdk/x.y.z/Microsoft.Build.NuGetSdkResolver.dll
./sdk/x.y.z/Microsoft.Build.Tasks.Core.dll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Copyright (c) .NET Foundation. All rights reserved.

<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.BrotliCompress" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.GZipCompress" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.DiscoverPrecompressedAssets" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ResolveCompressedAssets" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />

Expand Down Expand Up @@ -225,7 +226,7 @@ Copyright (c) .NET Foundation. All rights reserved.
</DefineStaticWebAssets>

<DefineStaticWebAssetEndpoints
CandidateAssets="@(_CompressionBuildStaticWebAsset)"
CandidateAssets="@(_CompressionBuildStaticWebAsset);@(_PrecompressedStaticWebAssets)"
ExistingEndpoints="@(StaticWebAssetEndpoint)"
ContentTypeMappings="@(StaticWebAssetContentTypeMapping)"
>
Expand Down Expand Up @@ -276,6 +277,27 @@ Copyright (c) .NET Foundation. All rights reserved.
</Target>

<Target Name="ResolveBuildCompressedStaticWebAssetsConfiguration" DependsOnTargets="ResolveStaticWebAssetsInputs;$(ResolveCompressedFilesDependsOn)">
<!-- There might be assets that are precompressed on packages or that are precompressed by other tools.
In this case, we need to detect those assets, remove them and their endpoints, adjust the asset definition
and recreate the endpoints for those assets as the original ones will not be correct.
-->
<DiscoverPrecompressedAssets CandidateAssets="@(StaticWebAsset)">
<Output TaskParameter="DiscoveredCompressedAssets" ItemName="_PrecompressedStaticWebAssets" />
</DiscoverPrecompressedAssets>

<FilterStaticWebAssetEndpoints Condition="'@(_PrecompressedStaticWebAssets)' != ''"
Endpoints="@(StaticWebAssetEndpoint)"
Assets="@(_PrecompressedStaticWebAssets)"
Filters=""
>
<Output TaskParameter="FilteredEndpoints" ItemName="_PrecompressedEndpointsToRemove" />
</FilterStaticWebAssetEndpoints>

<ItemGroup Condition="'@(_PrecompressedStaticWebAssets)' != ''">
<StaticWebAssetEndpoint Remove="@(_PrecompressedEndpointsToRemove)" />
<StaticWebAsset Remove="@(_PrecompressedStaticWebAssets)" />
<StaticWebAsset Include="@(_PrecompressedStaticWebAssets)" />
</ItemGroup>

<ResolveCompressedAssets
CandidateAssets="@(StaticWebAsset)"
Expand Down
Loading
Loading