Skip to content

[main] Source code updates from dotnet/dotnet #50073

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

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a811f78
Backflow from https://github.com/dotnet/dotnet / 8cb85e0 build 278022
dotnet-maestro[bot] Aug 6, 2025
d627ecb
Merge main into darc-main-3179108c-c6b8-45ea-ab29-d26b162530ec
dotnet-maestro[bot] Aug 6, 2025
dd307c8
Update dependencies from https://github.com/dotnet/dotnet build 278022
dotnet-maestro[bot] Aug 6, 2025
9da1999
Merge branch 'main' of https://github.com/dotnet/sdk into darc-main-3…
Aug 6, 2025
b2b323f
Merge branch 'main' into darc-main-3179108c-c6b8-45ea-ab29-d26b162530ec
tmat Aug 6, 2025
36ac5c4
Backflow from https://github.com/dotnet/dotnet / 30bc8f9 build 278224
dotnet-maestro[bot] Aug 7, 2025
063475c
Update dependencies from https://github.com/dotnet/dotnet build 278224
dotnet-maestro[bot] Aug 7, 2025
ff0d7ba
Merge branch 'main' of https://github.com/dotnet/sdk into darc-main-3…
Aug 7, 2025
b3b3c1f
Update editorconfig template
sbomer Aug 7, 2025
3308ce3
Make AssemblyInfo a set
sbomer Aug 7, 2025
289053b
Merge main into darc-main-3179108c-c6b8-45ea-ab29-d26b162530ec
dotnet-maestro[bot] Aug 8, 2025
fdd1fe2
Update dependencies from https://github.com/dotnet/dotnet build 278405
dotnet-maestro[bot] Aug 8, 2025
efae8b7
Merge branch 'main' of https://github.com/dotnet/sdk into darc-main-3…
Aug 8, 2025
3c4ec5f
Don't trim trailing space for expected editorconfig
akoeplinger Aug 8, 2025
73e8c09
Apply suggestion from @jjonescz
akoeplinger Aug 8, 2025
e3121e8
Use equivalence check in It_respects_opt_outs
akoeplinger Aug 8, 2025
43e4d6e
Fix Build_AddsApplicationPartAttributes
akoeplinger Aug 8, 2025
e52707b
Skip PublishingRegistersWrittenFilesForProperCleanup for now
akoeplinger Aug 8, 2025
fb9f1c0
Merge main into darc-main-3179108c-c6b8-45ea-ab29-d26b162530ec
dotnet-maestro[bot] Aug 9, 2025
69bd343
Update dependencies from https://github.com/dotnet/dotnet build 278512
dotnet-maestro[bot] Aug 9, 2025
954fdcd
Backflow from https://github.com/dotnet/dotnet / e9f665e build 278626
dotnet-maestro[bot] Aug 11, 2025
0547b6c
Merge main into darc-main-3179108c-c6b8-45ea-ab29-d26b162530ec
dotnet-maestro[bot] Aug 11, 2025
a99af9c
Update dependencies from https://github.com/dotnet/dotnet build 278626
dotnet-maestro[bot] Aug 11, 2025
6f3d7f8
Reapply reverted changes
akoeplinger Aug 11, 2025
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
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
<PackageVersion Include="Microsoft.Web.Xdt" Version="$(MicrosoftWebXdtPackageVersion)" />
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="$(MicrosoftWin32SystemEventsPackageVersion)" />
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="$(MicrosoftWindowsCsWin32PackageVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Bal.wixext" Version="$(MicrosoftWixToolsetVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Dependency.wixext" Version="$(MicrosoftWixToolsetVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Heat" Version="$(MicrosoftWixToolsetVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Util.wixext" Version="$(MicrosoftWixToolsetVersion)" />
<PackageVersion Include="Microsoft.WixToolset.UI.wixext" Version="$(MicrosoftWixToolsetVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Bal.wixext" Version="$(MicrosoftWixToolsetSdkVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Dependency.wixext" Version="$(MicrosoftWixToolsetSdkVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Heat" Version="$(MicrosoftWixToolsetSdkVersion)" />
<PackageVersion Include="Microsoft.WixToolset.Util.wixext" Version="$(MicrosoftWixToolsetSdkVersion)" />
<PackageVersion Include="Microsoft.WixToolset.UI.wixext" Version="$(MicrosoftWixToolsetSdkVersion)" />
<PackageVersion Include="MSBuild.StructuredLogger" Version="2.2.386" />
<PackageVersion Include="Moq" Version="$(MoqPackageVersion)" />
<PackageVersion Include="NETStandard.Library.NETFramework" Version="$(NETStandardLibraryNETFrameworkVersion)" />
Expand Down
6 changes: 0 additions & 6 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<!-- Begin: Package sources from dotnet-aspire -->
<!-- End: Package sources from dotnet-aspire -->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-int-dotnet-runtime-aae90fa" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-aae90fa0/nuget/v3/index.json" />
<add key="darc-int-dotnet-runtime-aae90fa-2" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-aae90fa0-2/nuget/v3/index.json" />
<add key="darc-int-dotnet-runtime-aae90fa-1" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-aae90fa0-1/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-runtime -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
Expand Down Expand Up @@ -40,9 +37,6 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-int-dotnet-runtime-aae90fa-1" value="true" />
<add key="darc-int-dotnet-runtime-aae90fa-2" value="true" />
<add key="darc-int-dotnet-runtime-aae90fa" value="true" />
<!-- End: Package sources from dotnet-runtime -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
</disabledPackageSources>
Expand Down
290 changes: 145 additions & 145 deletions eng/Version.Details.props

Large diffs are not rendered by default.

550 changes: 275 additions & 275 deletions eng/Version.Details.xml

Large diffs are not rendered by default.

30 changes: 14 additions & 16 deletions eng/common/core-templates/job/onelocbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:

# Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool
pool: ''

CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex
GithubPat: $(BotAccount-dotnet-bot-repo-PAT)

Expand All @@ -27,7 +27,7 @@ parameters:
is1ESPipeline: ''
jobs:
- job: OneLocBuild${{ parameters.JobNameSuffix }}

dependsOn: ${{ parameters.dependsOn }}

displayName: OneLocBuild${{ parameters.JobNameSuffix }}
Expand Down Expand Up @@ -99,22 +99,20 @@ jobs:
mirrorBranch: ${{ parameters.MirrorBranch }}
condition: ${{ parameters.condition }}

- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
parameters:
is1ESPipeline: ${{ parameters.is1ESPipeline }}
args:
displayName: Publish Localization Files
pathToPublish: '$(Build.ArtifactStagingDirectory)/loc'
publishLocation: Container
artifactName: Loc
condition: ${{ parameters.condition }}
# Copy the locProject.json to the root of the Loc directory, then publish a pipeline artifact
- task: CopyFiles@2
displayName: Copy LocProject.json
inputs:
SourceFolder: '$(Build.SourcesDirectory)/eng/Localize/'
Contents: 'LocProject.json'
TargetFolder: '$(Build.ArtifactStagingDirectory)/loc'
condition: ${{ parameters.condition }}

- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml
parameters:
is1ESPipeline: ${{ parameters.is1ESPipeline }}
args:
displayName: Publish LocProject.json
pathToPublish: '$(Build.SourcesDirectory)/eng/Localize/'
publishLocation: Container
artifactName: Loc
targetPath: '$(Build.ArtifactStagingDirectory)/loc'
artifactName: 'Loc'
displayName: 'Publish Localization Files'
condition: ${{ parameters.condition }}
13 changes: 13 additions & 0 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,20 @@ function Retry($downloadBlock, $maxRetries = 5) {

function GetDotNetInstallScript([string] $dotnetRoot) {
$installScript = Join-Path $dotnetRoot 'dotnet-install.ps1'
$shouldDownload = $false

if (!(Test-Path $installScript)) {
$shouldDownload = $true
} else {
# Check if the script is older than 30 days
$fileAge = (Get-Date) - (Get-Item $installScript).LastWriteTime
if ($fileAge.Days -gt 30) {
Write-Host "Existing install script is too old, re-downloading..."
$shouldDownload = $true
}
}

if ($shouldDownload) {
Create-Directory $dotnetRoot
$ProgressPreference = 'SilentlyContinue' # Don't display the console progress UI - it's a huge perf hit
$uri = "https://builds.dotnet.microsoft.com/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.ps1"
Expand Down
24 changes: 24 additions & 0 deletions eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,29 @@ function GetDotNetInstallScript {
local root=$1
local install_script="$root/dotnet-install.sh"
local install_script_url="https://builds.dotnet.microsoft.com/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.sh"
local timestamp_file="$root/.dotnet-install.timestamp"
local should_download=false

if [[ ! -a "$install_script" ]]; then
should_download=true
elif [[ -f "$timestamp_file" ]]; then
# Check if the script is older than 30 days using timestamp file
local download_time=$(cat "$timestamp_file" 2>/dev/null || echo "0")
local current_time=$(date +%s)
local age_seconds=$((current_time - download_time))

# 30 days = 30 * 24 * 60 * 60 = 2592000 seconds
if [[ $age_seconds -gt 2592000 ]]; then
echo "Existing install script is too old, re-downloading..."
should_download=true
fi
else
# No timestamp file exists, assume script is old and re-download
echo "No timestamp found for existing install script, re-downloading..."
should_download=true
fi

if [[ "$should_download" == true ]]; then
mkdir -p "$root"

echo "Downloading '$install_script_url'"
Expand All @@ -328,6 +349,9 @@ function GetDotNetInstallScript {
ExitWithExitCode $exit_code
}
fi

# Create timestamp file to track download time in seconds from epoch
date +%s > "$timestamp_file"
fi
# return value
_GetDotNetInstallScript="$install_script"
Expand Down
6 changes: 3 additions & 3 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"errorMessage": "The .NET SDK is not installed or is not configured correctly. Please run ./build to install the correct SDK version locally."
},
"tools": {
"dotnet": "10.0.100-preview.7.25367.101",
"dotnet": "10.0.100-preview.7.25372.107",
"runtimes": {
"dotnet": [
"$(MicrosoftNETCorePlatformsPackageVersion)"
Expand All @@ -21,8 +21,8 @@
}
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25377.103",
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25377.103",
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25409.103",
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25409.103",
"Microsoft.Build.NoTargets": "3.7.0",
"Microsoft.Build.Traversal": "3.4.0",
"Microsoft.WixToolset.Sdk": "5.0.2-dotnet.2737382"
Expand Down
5 changes: 0 additions & 5 deletions src/BuiltInTools/dotnet-watch/HotReload/CompilationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ internal sealed class CompilationHandler : IDisposable

private bool _isDisposed;

static CompilationHandler()
{
WatchHotReloadService.RequireCommit = true;
}

public CompilationHandler(IReporter reporter, ProcessRunner processRunner)
{
_reporter = reporter;
Expand Down
2 changes: 2 additions & 0 deletions src/Cli/dotnet/Commands/Run/CSharpCompilerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ private void PrepareAuxiliaryFiles(out string rspPath)
build_property.EnableSingleFileAnalyzer = true
build_property.EnableTrimAnalyzer = true
build_property.IncludeAllContentForSelfExtract =
build_property.VerifyReferenceTrimCompatibility =
build_property.VerifyReferenceAotCompatibility =
build_property.TargetFramework = net{TargetFrameworkVersion}
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v{TargetFrameworkVersion}
Expand Down
2 changes: 1 addition & 1 deletion src/Layout/pkg/windows/bundles/sdk/bundle.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<DefineConstants>$(DefineConstants);MinimumVSVersion=$(MinimumVSVersion)</DefineConstants>

<!-- PlatformToken is used to generate a generate a WiX variable name using a preprocessor variable so casing matters. -->
<DefineConstants>$(DefineConstants);PlatformToken=$(InstallerPlatform.ToUpper())</DefineConstants>
<DefineConstants>$(DefineConstants);PlatformToken=$(TargetArchitecture.ToUpper())</DefineConstants>

<!-- Source paths for packages to chain. -->
<DefineConstants>$(DefineConstants);FinalizerExeSourceFile=$(FinalizerExeSourceFile)</DefineConstants>
Expand Down
5 changes: 3 additions & 2 deletions src/Layout/redist/redist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@
<ProjectReference Include="$(RepoRoot)template_feed\*\*.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\finalizer\finalizer.csproj" Condition="'$(OS)' == 'Windows_NT'" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<ProjectReference Include="..\pkg\windows\bundles\sdk\bundle.wixproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Condition="'$(MSBuildRestoreSessionId)' != ''" />
<ProjectReference Include="..\finalizer\finalizer.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
</ItemGroup>

<!-- In .NET product build mode, explicitly build workloads in build pass 2.
Expand Down
5 changes: 3 additions & 2 deletions src/Workloads/VSInsertion/workloads.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,15 @@
</ItemGroup>

<ItemGroup Condition="'$(BuildWorkloads)' == 'true'">
<!-- we use MicrosoftNETCoreAppRuntimePackageVersion for both runtime and emsdk packages since they're aligned in VMR builds -->
<PackageDownload Include="@(RuntimeWorkloadPacksToDownload)" Version="[$(MicrosoftNETCoreAppRuntimePackageVersion)]" />
<PackageDownload Include="@(EmsdkWorkloadPacksToDownload)" Version="[$(MicrosoftNETRuntimeEmscripten3156Cachewinx64Version)]" />
<PackageDownload Include="@(EmsdkWorkloadPacksToDownload)" Version="[$(MicrosoftNETCoreAppRuntimePackageVersion)]" />
</ItemGroup>

<Target Name="_CollectDownloadedWorkloadPacks">
<ItemGroup>
<DownloadedWorkloadPacks Include="$(NuGetPackageRoot)\%(RuntimeWorkloadPacksToDownload.Identity)\$(MicrosoftNETCoreAppRuntimePackageVersion)\*.nupkg" />
<DownloadedWorkloadPacks Include="$(NuGetPackageRoot)\%(EmsdkWorkloadPacksToDownload.Identity)\$(MicrosoftNETRuntimeEmscripten3156Cachewinx64Version)\*.nupkg" />
<DownloadedWorkloadPacks Include="$(NuGetPackageRoot)\%(EmsdkWorkloadPacksToDownload.Identity)\$(MicrosoftNETCoreAppRuntimePackageVersion)\*.nupkg" />
</ItemGroup>

<Copy SourceFiles="@(DownloadedWorkloadPacks)"
Expand Down
4 changes: 2 additions & 2 deletions test/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public void ItCanBuildWithMicrosoftBuildArtifactsSdk()

}

[Fact]
[Fact(Skip = "https://github.com/dotnet/sdk/issues/50140")]
public void PublishingRegistersWrittenFilesForProperCleanup()
{
var testProject = new TestProject()
Expand Down Expand Up @@ -580,7 +580,7 @@ public void PublishingRegistersWrittenFilesForProperCleanup()
LocateAndRunApp(publishDir);

// now build the app in Release configuration.
// now self-contained, so that we are forced to clean up the runtime
// not self-contained, so that we are forced to clean up the runtime
// files that were published.
new DotnetBuildCommand(Log)
.WithWorkingDirectory(projectDir)
Expand Down
Loading
Loading