From ef2bc3e35fee0ee7eac3521cfd201831a8699c05 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 5 Feb 2025 12:08:23 +0100 Subject: [PATCH 01/22] Manual VMR re-bootstrap to 10.0.100-preview.2.25104.28 The re-boostrap pipeline failed to open the PR so I'm doing this manually here. --- src/SourceBuild/content/eng/Version.Details.xml | 4 ++-- src/SourceBuild/content/eng/Versions.props | 4 ++-- src/SourceBuild/content/global.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SourceBuild/content/eng/Version.Details.xml b/src/SourceBuild/content/eng/Version.Details.xml index 809c1a92f7b2..52411253c623 100644 --- a/src/SourceBuild/content/eng/Version.Details.xml +++ b/src/SourceBuild/content/eng/Version.Details.xml @@ -2,9 +2,9 @@ - + https://github.com/dotnet/arcade - fe17712bedb95a55d5af00c5191772c81393745f + 0b971a5e11be58af22ca83fbc111a1207bb62920 diff --git a/src/SourceBuild/content/eng/Versions.props b/src/SourceBuild/content/eng/Versions.props index 62928dd47dd9..0da82f9cd4a9 100644 --- a/src/SourceBuild/content/eng/Versions.props +++ b/src/SourceBuild/content/eng/Versions.props @@ -23,8 +23,8 @@ of a .NET major or minor release, prebuilts may be needed. When the release is mature, prebuilts are not necessary, and this property is removed from the file. --> - 10.0.100-preview.1.25078.1 - 10.0.100-preview.1.25078.1 + 10.0.100-preview.2.25105.1 + 10.0.100-preview.2.25105.1 2.0.0-beta4.24126.1 diff --git a/src/SourceBuild/content/global.json b/src/SourceBuild/content/global.json index 5668264000d8..fa5eb069202d 100644 --- a/src/SourceBuild/content/global.json +++ b/src/SourceBuild/content/global.json @@ -1,10 +1,10 @@ { "tools": { - "dotnet": "10.0.100-preview.1.25078.4" + "dotnet": "10.0.100-preview.2.25104.28" }, "msbuild-sdks": { "Microsoft.Build.NoTargets": "3.7.0", "Microsoft.Build.Traversal": "3.4.0", - "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25076.1" + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25103.6" } } From 116a6fceda4aa8e4eb18cf9551d65c5d3cb6eaef Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 15:11:21 +0100 Subject: [PATCH 02/22] Pass expected environment variables and properties to the test invocation --- .../repo-projects/Directory.Build.props | 71 ++++++++--------- .../repo-projects/Directory.Build.targets | 77 +++++++++++-------- .../content/repo-projects/scenario-tests.proj | 36 +++------ .../content/repo-projects/sdk.proj | 1 - 4 files changed, 90 insertions(+), 95 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index 7e9dab487c46..e63d50598667 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -38,10 +38,6 @@ $(ProjectDirectory)NuGet.config $(ProjectDirectory)NuGet.Config - $(NuGetConfigFile) - - $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(OriginalNuGetConfigFile)')) - $([MSBuild]::NormalizeDirectory('$(AssetManifestsIntermediateDir)', '$(RepositoryName)')) $([MSBuild]::NormalizeDirectory('$(IntermediateSymbolsRootDir)', '$(RepositoryName)')) @@ -86,39 +82,46 @@ $(BuildActions) $(FlagParameterPrefix)publish $(BuildActions) $(FlagParameterPrefix)sign + $(FlagParameterPrefix)restore + $(TestActions) $(FlagParameterPrefix)test + + + + - $(FlagParameterPrefix)ci - $(BuildArgs) $(FlagParameterPrefix)configuration $(Configuration) - $(BuildArgs) -bl - $(BuildArgs) /p:DotNetBuildRepo=true - - - $(BuildArgs) /p:DotNetBuildOrchestrator=true + $(FlagParameterPrefix)ci + $(CommonArgs) $(FlagParameterPrefix)configuration $(Configuration) - $(BuildArgs) /p:TargetRid=$(TargetRid) + $(CommonArgs) /p:TargetRid=$(TargetRid) - $(BuildArgs) /p:DotNetBuildPass=$(DotNetBuildPass) + $(CommonArgs) /p:DotNetBuildPass=$(DotNetBuildPass) - $(BuildArgs) /p:CrossBuild=true - $(BuildArgs) /p:RestoreConfigFile=$(NuGetConfigFile) - $(BuildArgs) /p:DotNetBuildUseMonoRuntime=$(DotNetBuildUseMonoRuntime) - $(BuildArgs) /p:OfficialBuildId=$(OfficialBuildId) - $(BuildArgs) /p:ForceDryRunSigning=$(ForceDryRunSigning) + $(CommonArgs) /p:CrossBuild=true + $(CommonArgs) /p:DotNetBuildUseMonoRuntime=$(DotNetBuildUseMonoRuntime) + $(CommonArgs) /p:OfficialBuildId=$(OfficialBuildId) + $(CommonArgs) /p:ForceDryRunSigning=$(ForceDryRunSigning) - $(BuildArgs) /p:SourceBuiltAssetsDir=$(ArtifactsAssetsDir) - $(BuildArgs) /p:SourceBuiltAssetManifestsDir=$(RepoAssetManifestsDir) + $(CommonArgs) /p:SourceBuiltAssetsDir=$(ArtifactsAssetsDir) + $(CommonArgs) /p:SourceBuiltAssetManifestsDir=$(RepoAssetManifestsDir) - $(BuildArgs) /p:DefaultArtifactVisibility=Vertical + $(CommonArgs) /p:DefaultArtifactVisibility=Vertical - $(BuildArgs) /p:DefaultArtifactVisibility=Vertical + $(CommonArgs) /p:DefaultArtifactVisibility=Vertical + + + $(CommonArgs) -bl + + $(BuildArgs) /p:DotNetBuildRepo=true + $(BuildArgs) /p:DotNetBuildOrchestrator=true + $(BuildArgs) /p:SourceBuiltSymbolsDir=$(IntermediateSymbolsRepoDir) $(BuildArgs) /p:DotNetBuildSourceOnly=true @@ -126,14 +129,8 @@ $(BuildArgs) /p:ReferencePackageNupkgCacheDir="$(ReferencePackagesDir)" + - $(FlagParameterPrefix)restore - $(TestActions) $(FlagParameterPrefix)test - - - $(FlagParameterPrefix)ci - $(TestArgs) $(FlagParameterPrefix)configuration $(Configuration) $(TestArgs) /bl:$(ArtifactsLogRepoDir)Test.binlog @@ -146,17 +143,14 @@ - - - - - - + + + - - + + @@ -179,12 +173,11 @@ - + - diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 68d0d163e1a3..70cf912eea6b 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -3,17 +3,26 @@ - $(BuildArgs) /p:UseInnerClone=true - $(BuildArgs) /p:CopySrcInsteadOfClone=true - $(BuildArgs) /p:CopyWipIntoInnerSourceBuildRepo=true + $(CommonArgs) /p:UseInnerClone=true + $(CommonArgs) /p:CopySrcInsteadOfClone=true + $(CommonArgs) /p:CopyWipIntoInnerSourceBuildRepo=true + $(DotNetRoot) + $(RepoDotNetRoot)dotnet.exe + $(RepoDotNetRoot)dotnet + + + $(NuGetConfigFile) + $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(OriginalNuGetConfigFile)')) + powershell -NoProfile "Get-PSDrive -PSProvider FileSystem -Name (Get-Item "$(RepoRoot.TrimEnd('\'))").PSDrive.Name" df -h $(RepoRoot) - $(BuildArgs) $(FlagParameterPrefix)msbuildEngine dotnet + $(CommonArgs) $(FlagParameterPrefix)msbuildEngine dotnet + $([MSBuild]::NormalizeDirectory('$(ArtifactsShippingPackagesDir)', '$(RepositoryName)')) $(ReferencePackagesDir) @@ -21,9 +30,9 @@ $(ReferencePackagesDir) - $(BuildArgs) /p:SourceBuiltShippingPackagesDir=$(RepoArtifactsShippingPackagesDir) + $(CommonArgs) /p:SourceBuiltShippingPackagesDir=$(RepoArtifactsShippingPackagesDir) - $(BuildArgs) /p:SourceBuiltNonShippingPackagesDir=$(RepoArtifactsNonShippingPackagesDir.TrimEnd('\')) + $(CommonArgs) /p:SourceBuiltNonShippingPackagesDir=$(RepoArtifactsNonShippingPackagesDir.TrimEnd('\')) <_platformIndex>$(NETCoreSdkRuntimeIdentifier.LastIndexOf('-')) @@ -31,12 +40,13 @@ <_platformIndex>$(NETCoreSdkPortableRuntimeIdentifier.LastIndexOf('-')) $(NETCoreSdkPortableRuntimeIdentifier.Substring(0, $(_platformIndex)))-$(TargetArchitecture) - $(BuildArgs) /p:PortableBuild=$(PortableBuild) - $(BuildArgs) /p:RuntimeOS=$(RuntimeOS) - $(BuildArgs) /p:BaseOS=$(BaseOS) + $(CommonArgs) /p:PortableBuild=$(PortableBuild) + $(CommonArgs) /p:RuntimeOS=$(RuntimeOS) + $(CommonArgs) /p:BaseOS=$(BaseOS) - - $(BuildArgs) /p:DotNetBuildTests=true + + $(CommonArgs) /p:DotNetBuildTests=true + $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) @@ -141,7 +151,7 @@ @@ -254,9 +264,11 @@ This guarantees that all repositories build with the VMR's SDK version. --> + Condition="'$(GlobalJsonFile)' != ''"> + + $(NETCoreSdkVersion) + + <_PossibleCliVersionJsonPath Include="sdk:version" /> <_PossibleCliVersionJsonPath Include="tools:dotnet" /> @@ -264,18 +276,13 @@ - - - - - @@ -400,8 +407,7 @@ Condition="'@(_DependentProjectToSkip)' != ''" /> - + $(BuildArgs) /p:DotNetBuildTargetRidOnly=true - $(BuildScript) $(BuildActions) $(BuildArgs) + $(BuildScript) $(BuildActions) $(CommonArgs) $(BuildArgs) @@ -482,6 +488,7 @@ + @@ -503,7 +510,7 @@ @@ -673,7 +680,7 @@ Don't run when source building to prevent the build from hanging indefinitely - https://github.com/dotnet/source-build/issues/4796 --> - - + - $(BuildScript) $(TestActions) $(TestArgs) + $(BuildScript) $(TestActions) $(CommonArgs) $(TestArgs) - + + $(TestCommand) @@ -780,7 +791,7 @@ + EnvironmentVariables="@(EnvironmentVariables);@(TestEnvironmentVariable)"> @@ -789,7 +800,11 @@ - + diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index 2acd2f8bf0b7..847aedebd6b1 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -2,14 +2,18 @@ - false + false + + false + + $(DotNetSdkExtractDir) $([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)', 'scenario-tests')) - + $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml + + $(TestArgs) /p:AdditionalTestArgs="--xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM" $(TestArgs) /p:TestBinlogDir=$(ArtifactsLogRepoDir) - - $(TestArgs) /p:RestoreConfigFile=$(NuGetConfigFile) @@ -29,29 +33,13 @@ + BeforeTargets="UpdateGlobalJsonVersions;RepoTest"> - <_CurrentDateTime>$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")) - <_TestXmlOutputPath>$(ScenarioTestsResultsDir)$(_CurrentDateTime).xml - <_ScenarioTestsAdditionalArgs>--xml $(_TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM - - - <_DotNetTool>$(DotNetSdkExtractDir)$([System.IO.Path]::GetFileName('$(DotNetTool)')) + + $(SourceBuiltSdkVersion) - - - - - - $(BuildArgs) /p:PortableOSName=$(__PortableTargetOS) $(BuildArgs) /p:Rid=$(TargetRid) $(BuildArgs) /p:Architecture=$(TargetArchitecture) - $(BuildArgs) /p:DOTNET_INSTALL_DIR=$(DotNetRoot) $(BuildArgs) /p:AspNetCoreInstallerRid=$(TargetRid) From 915d921f4c7ba5842ee6b4000ff9ca3765ae72d5 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 15:14:17 +0100 Subject: [PATCH 03/22] Remove duplicate CommonArgs condition for NuGetConfigFile --- src/SourceBuild/content/repo-projects/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 70cf912eea6b..0edca4f5c90d 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -16,6 +16,7 @@ $(NuGetConfigFile) $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(OriginalNuGetConfigFile)')) + $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) powershell -NoProfile "Get-PSDrive -PSProvider FileSystem -Name (Get-Item "$(RepoRoot.TrimEnd('\'))").PSDrive.Name" df -h $(RepoRoot) @@ -46,7 +47,6 @@ $(CommonArgs) /p:DotNetBuildTests=true - $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) From 7642544e20b6db6ecdbff926956261f1afca7499 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 15:16:01 +0100 Subject: [PATCH 04/22] Fix typo in Exec Command attribute --- src/SourceBuild/content/repo-projects/Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 0edca4f5c90d..1b60da5fbc5c 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -680,7 +680,7 @@ Don't run when source building to prevent the build from hanging indefinitely - https://github.com/dotnet/source-build/issues/4796 --> - Date: Thu, 6 Feb 2025 15:18:06 +0100 Subject: [PATCH 05/22] Add condition to PrepareScenarioTestsInputs target --- src/SourceBuild/content/repo-projects/scenario-tests.proj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index 847aedebd6b1..cfe848246161 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -33,7 +33,8 @@ + BeforeTargets="UpdateGlobalJsonVersions;RepoTest" + Condition="'$(Test)' == 'true'"> $(SourceBuiltSdkVersion) From ee33f8e98188bc514580eef13f60df6a7c17c861 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 15:20:52 +0100 Subject: [PATCH 06/22] Trim trailing backslash in TestBinlogDir path --- src/SourceBuild/content/repo-projects/scenario-tests.proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index cfe848246161..27c136bc932c 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -13,7 +13,7 @@ $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml $(TestArgs) /p:AdditionalTestArgs="--xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM" - $(TestArgs) /p:TestBinlogDir=$(ArtifactsLogRepoDir) + $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" From 170216558e35bd497a28fcaac501528d24c4988c Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 15:45:53 +0100 Subject: [PATCH 07/22] fix --- src/SourceBuild/content/repo-projects/Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index e63d50598667..c7ec5183271d 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -117,7 +117,7 @@ - $(CommonArgs) -bl + $(BuildArgs) -bl $(BuildArgs) /p:DotNetBuildRepo=true $(BuildArgs) /p:DotNetBuildOrchestrator=true From 07dd39f579b14c9a1990c04d775a021ec5cddbe6 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 18:08:50 +0100 Subject: [PATCH 08/22] fixeees (hopefully) --- .../repo-projects/Directory.Build.props | 11 --- .../repo-projects/Directory.Build.targets | 77 +++++++++++++------ .../content/repo-projects/scenario-tests.proj | 21 +++-- 3 files changed, 64 insertions(+), 45 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index c7ec5183271d..cf1d0d2a5f93 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -143,14 +143,6 @@ - - - - - - - - @@ -172,9 +164,6 @@ - - - diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 1b60da5fbc5c..5cbe3f012ce5 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -9,15 +9,6 @@ - $(DotNetRoot) - $(RepoDotNetRoot)dotnet.exe - $(RepoDotNetRoot)dotnet - - - $(NuGetConfigFile) - $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(OriginalNuGetConfigFile)')) - $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) - powershell -NoProfile "Get-PSDrive -PSProvider FileSystem -Name (Get-Item "$(RepoRoot.TrimEnd('\'))").PSDrive.Name" df -h $(RepoRoot) @@ -60,6 +51,41 @@ $(PackageReportDir)prodcon-build.xml + + + + + + + $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(NuGetConfigFile)')) + $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) + + + + + + + + + + + $(DotNetRoot) + $(RepoDotNetRoot)dotnet.exe + $(RepoDotNetRoot)dotnet + + + + + + + + + + + + + + - - + + + $(NuGetConfigFile) + + DestinationFiles="$(NuGetConfigFile)" + SkipUnchangedFiles="true"> @@ -456,7 +482,7 @@ + DependsOnTargets="SetCommonProperties;GetTransitiveRepositoryReferences"> - false - - false - - $(DotNetSdkExtractDir) + false $([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)', 'scenario-tests')) $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml $(TestArgs) /p:AdditionalTestArgs="--xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM" $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" + + PrepareScenarioTestsInputs;$(TestDependsOn) @@ -31,13 +28,15 @@ - + - + + $(DotNetSdkExtractDir) $(SourceBuiltSdkVersion) + + + false From db2d3416c3c3b6087fc1fc4529b55c326f1160c5 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 18:11:44 +0100 Subject: [PATCH 09/22] UseFxVersionOverride --- src/SourceBuild/content/repo-projects/scenario-tests.proj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index 71f9eda1ff7f..e7becf9310ac 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -9,6 +9,7 @@ $(TestArgs) /p:AdditionalTestArgs="--xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM" $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" + $(TestArgs) /p:UseFxVersionOverride=true PrepareScenarioTestsInputs;$(TestDependsOn) From b17ddf2f12121319139894c8534a7ce0a33e9e0e Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 19:29:34 +0100 Subject: [PATCH 10/22] msbuild fix --- src/SourceBuild/content/repo-projects/Directory.Build.targets | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 5cbe3f012ce5..e5314bfbc2cf 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -833,6 +833,7 @@ RepoTest; MoveDotNetBuildLogs; CleanupRepo + From 61953a60c802896b3416746ca24ad258dfbe267d Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 19:48:06 +0100 Subject: [PATCH 11/22] msbuild fix (2) --- .../repo-projects/Directory.Build.targets | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index e5314bfbc2cf..78f557d1b146 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -54,19 +54,15 @@ - - - - $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(NuGetConfigFile)')) - $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) - - - - - - - - + + $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(NuGetConfigFile)')) + $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) + + + + + + $(DotNetRoot) From ea140e79b8b8aa037d2c15bfb392e3542b0666bf Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 20:02:51 +0100 Subject: [PATCH 12/22] property fix --- src/SourceBuild/content/repo-projects/Directory.Build.targets | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 78f557d1b146..7efb8ec1b43a 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -55,6 +55,7 @@ + $(NuGetConfigFile) $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(NuGetConfigFile)')) $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) @@ -156,9 +157,6 @@ - - $(NuGetConfigFile) - Date: Thu, 6 Feb 2025 21:38:59 +0100 Subject: [PATCH 13/22] Fix test additional args passing --- src/SourceBuild/content/repo-projects/scenario-tests.proj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index e7becf9310ac..8bf1e562013b 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -4,16 +4,21 @@ false + --xml $(_TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM $([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)', 'scenario-tests')) $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml - $(TestArgs) /p:AdditionalTestArgs="--xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM" $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" $(TestArgs) /p:UseFxVersionOverride=true PrepareScenarioTestsInputs;$(TestDependsOn) + + + + + From fe90cc6f5102f74a84c2056929ffba6f45b72592 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 23:51:24 +0100 Subject: [PATCH 14/22] Reorder ScenarioTestsAdditionalArgs property --- src/SourceBuild/content/repo-projects/scenario-tests.proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index 8bf1e562013b..55abd756191d 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -4,9 +4,9 @@ false - --xml $(_TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM $([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)', 'scenario-tests')) $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml + --xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" $(TestArgs) /p:UseFxVersionOverride=true From 51e9c66e34a811db64e4400671bafae608324127 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 6 Feb 2025 23:52:19 +0100 Subject: [PATCH 15/22] Remove redundant restore action from TestActions --- src/SourceBuild/content/repo-projects/Directory.Build.props | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index cf1d0d2a5f93..19edf78bf63c 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -82,8 +82,7 @@ $(BuildActions) $(FlagParameterPrefix)publish $(BuildActions) $(FlagParameterPrefix)sign - $(FlagParameterPrefix)restore - $(TestActions) $(FlagParameterPrefix)test + $(FlagParameterPrefix)test From c0b0eabd920c7ef8be7efc13bb665db5bf80a80f Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 12 Feb 2025 14:12:28 +0100 Subject: [PATCH 16/22] Updatesssss --- .../content/Directory.Build.targets | 27 +++++++ .../repo-projects/Directory.Build.props | 15 ++++ .../repo-projects/Directory.Build.targets | 71 +++++-------------- .../content/repo-projects/scenario-tests.proj | 46 ++++++------ 4 files changed, 82 insertions(+), 77 deletions(-) diff --git a/src/SourceBuild/content/Directory.Build.targets b/src/SourceBuild/content/Directory.Build.targets index 183f0d154973..c8167c21fbb6 100644 --- a/src/SourceBuild/content/Directory.Build.targets +++ b/src/SourceBuild/content/Directory.Build.targets @@ -34,6 +34,33 @@ + + + dotnet-runtime- + + + + + + + + + + + + %(RuntimeArchiveItem.Filename)%(RuntimeArchiveItem.Extension) + %(RuntimeArchiveItem.Identity) + $(RuntimeFilename.Replace('$(RuntimeFilenamePrefix)','').Replace('-$(TargetRid)$(ArchiveExtension)','')) + + + diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index 19edf78bf63c..9c345a10b2bb 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -38,6 +38,10 @@ $(ProjectDirectory)NuGet.config $(ProjectDirectory)NuGet.Config + $(NuGetConfigFile) + + $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(OriginalNuGetConfigFile)')) + $([MSBuild]::NormalizeDirectory('$(AssetManifestsIntermediateDir)', '$(RepositoryName)')) $([MSBuild]::NormalizeDirectory('$(IntermediateSymbolsRootDir)', '$(RepositoryName)')) @@ -142,6 +146,14 @@ + + + + + + + + @@ -163,6 +175,9 @@ + + + diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 7efb8ec1b43a..34b93225b1e7 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -51,38 +51,6 @@ $(PackageReportDir)prodcon-build.xml - - - - - $(NuGetConfigFile) - $(BaseIntermediateOutputPath)$([System.IO.Path]::GetFileName('$(NuGetConfigFile)')) - $(CommonArgs) /p:RestoreConfigFile=$(NuGetConfigFile) - - - - - - - - - $(DotNetRoot) - $(RepoDotNetRoot)dotnet.exe - $(RepoDotNetRoot)dotnet - - - - - - - - - - - - - - - + @@ -285,10 +254,6 @@ - - $(NETCoreSdkVersion) - - <_PossibleCliVersionJsonPath Include="sdk:version" /> <_PossibleCliVersionJsonPath Include="tools:dotnet" /> @@ -296,13 +261,18 @@ + + + + + @@ -476,7 +446,7 @@ + DependsOnTargets="GetTransitiveRepositoryReferences"> - @@ -821,16 +790,10 @@ - - - $(TestDependsOn); - RepoTest; - MoveDotNetBuildLogs; - CleanupRepo - - - - + diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index 55abd756191d..000787ec701d 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -4,24 +4,15 @@ false - $([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)', 'scenario-tests')) - $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml - --xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM - $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" - $(TestArgs) /p:UseFxVersionOverride=true - - PrepareScenarioTestsInputs;$(TestDependsOn) + $(TestArgs) /p:TestDotNetRoot="$(DotNetSdkExtractDir.TrimEnd('\'))" - - - - - + + @@ -29,23 +20,32 @@ - - - - + + + $(TestArgs) /p:TestSdkVersion=$(SourceBuiltSdkVersion) + $(TestArgs) /p:TestFxVersion=$(SourceBuiltRuntimeVersion) + - - - $(DotNetSdkExtractDir) - $(SourceBuiltSdkVersion) + $([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)', 'scenario-tests')) + $(ScenarioTestsResultsDir)$([System.DateTime]::Now.ToString("yyyy-MM-dd_HH_mm_ss")).xml + --xml $(TestXmlOutputPath) --target-rid $(TargetRid) --portable-rid $(PortableRid) --no-cleanup --no-traits Category=MultiTFM + + + + + + + + + - false + $(TestArgs) /p:TestRestoreConfigFile=$(OriginalNuGetConfigFile) - - Date: Wed, 12 Feb 2025 14:15:10 +0100 Subject: [PATCH 17/22] fix --- src/SourceBuild/content/repo-projects/Directory.Build.targets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 34b93225b1e7..5ac4a511ab03 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -253,7 +253,9 @@ This guarantees that all repositories build with the VMR's SDK version. --> + Condition="'$(GlobalJsonFile)' != ''" + Inputs="$(MSBuildProjectFullPath);$(MSBuildThisFileFullPath)" + Outputs="$(BaseIntermediateOutputPath)UpdateGlobalJsonVersions.complete"> <_PossibleCliVersionJsonPath Include="sdk:version" /> <_PossibleCliVersionJsonPath Include="tools:dotnet" /> From d1e3fae88d9c8522dfb1c46766f70f6c592b2b9d Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 12 Feb 2025 14:15:54 +0100 Subject: [PATCH 18/22] fix --- src/SourceBuild/content/repo-projects/Directory.Build.targets | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 5ac4a511ab03..b99ef122c9cf 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -762,8 +762,7 @@ CleanupRepo" /> $(BuildScript) $(TestActions) $(CommonArgs) $(TestArgs) From 5f2bc020b1af50780f659c93d83b2c3e7ab3d8f2 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 12 Feb 2025 14:23:20 +0100 Subject: [PATCH 19/22] Refactor TestArgs property group location --- .../content/repo-projects/scenario-tests.proj | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index 000787ec701d..b9819187f6dc 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -6,6 +6,10 @@ $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" $(TestArgs) /p:TestDotNetRoot="$(DotNetSdkExtractDir.TrimEnd('\'))" + + + $(TestArgs) /p:TestRestoreConfigFile=$(OriginalNuGetConfigFile) @@ -40,12 +44,6 @@ - - - - $(TestArgs) /p:TestRestoreConfigFile=$(OriginalNuGetConfigFile) - Date: Wed, 12 Feb 2025 16:02:05 +0100 Subject: [PATCH 20/22] fix --- src/SourceBuild/content/repo-projects/scenario-tests.proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceBuild/content/repo-projects/scenario-tests.proj b/src/SourceBuild/content/repo-projects/scenario-tests.proj index b9819187f6dc..773ea4457a02 100644 --- a/src/SourceBuild/content/repo-projects/scenario-tests.proj +++ b/src/SourceBuild/content/repo-projects/scenario-tests.proj @@ -26,7 +26,7 @@ + BeforeTargets="RepoTest"> $(TestArgs) /p:TestSdkVersion=$(SourceBuiltSdkVersion) $(TestArgs) /p:TestFxVersion=$(SourceBuiltRuntimeVersion) From 75d03eff7d937070be89fc11f06cafa9d716d41e Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 12 Feb 2025 20:17:09 +0100 Subject: [PATCH 21/22] Respond to PR feedback and remove outdated comment --- src/SourceBuild/content/Directory.Build.targets | 4 ++-- src/SourceBuild/content/repo-projects/Directory.Build.props | 1 - src/SourceBuild/content/repo-projects/scenario-tests.proj | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/SourceBuild/content/Directory.Build.targets b/src/SourceBuild/content/Directory.Build.targets index c8167c21fbb6..481deba14bee 100644 --- a/src/SourceBuild/content/Directory.Build.targets +++ b/src/SourceBuild/content/Directory.Build.targets @@ -47,12 +47,12 @@ %(RuntimeArchiveItem.Filename)%(RuntimeArchiveItem.Extension) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index 9c345a10b2bb..e833298963ac 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -151,7 +151,6 @@ - false - $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('\'))" - $(TestArgs) /p:TestDotNetRoot="$(DotNetSdkExtractDir.TrimEnd('\'))" + $(TestArgs) /p:TestBinlogDir="$(ArtifactsLogRepoDir.TrimEnd('/\'))" + $(TestArgs) /p:TestDotNetRoot="$(DotNetSdkExtractDir.TrimEnd('/\'))" From 421c04cd3d9af64b23b87c608b31a6cdab05cd86 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 13 Feb 2025 00:51:11 +0100 Subject: [PATCH 22/22] Ignore wixpack.zip --- src/SourceBuild/content/Directory.Build.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SourceBuild/content/Directory.Build.targets b/src/SourceBuild/content/Directory.Build.targets index 481deba14bee..2c9efb5d2102 100644 --- a/src/SourceBuild/content/Directory.Build.targets +++ b/src/SourceBuild/content/Directory.Build.targets @@ -40,7 +40,8 @@ - +