Skip to content

Commit a6c3f53

Browse files
authored
Merge pull request #95980 from jkoritzinsky/9.0-sdk
Move to building with the 9.0 SDK and move our ToolCurrent TFM to 9.0
2 parents dbb335c + 275359e commit a6c3f53

File tree

63 files changed

+370
-1199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+370
-1199
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@
9999
<!-- when this is updated, make sure to keep $(_TargetFrameworkForNETCoreTasks)
100100
in src/mono/wasm/build/WasmApp.LocalBuild.props
101101
and in src/mono/msbuild/apple/build/AppleBuild.LocalBuild.props in sync -->
102-
<NetCoreAppToolCurrentVersion>8.0</NetCoreAppToolCurrentVersion>
102+
<NetCoreAppToolCurrentVersion>9.0</NetCoreAppToolCurrentVersion>
103103
<NetCoreAppToolCurrent>net$(NetCoreAppToolCurrentVersion)</NetCoreAppToolCurrent>
104104
<NetCoreAppCurrentToolTargetFrameworkMoniker>$(NetCoreAppCurrentIdentifier),Version=v$(NetCoreAppToolCurrentVersion)</NetCoreAppCurrentToolTargetFrameworkMoniker>
105105

106-
<AspNetCoreAppCurrentVersion>8.0</AspNetCoreAppCurrentVersion>
106+
<AspNetCoreAppCurrentVersion>9.0</AspNetCoreAppCurrentVersion>
107107
<AspNetCoreAppCurrent>net$(AspNetCoreAppCurrentVersion)</AspNetCoreAppCurrent>
108108

109109
<NetFrameworkMinimum>net462</NetFrameworkMinimum>

eng/SourceBuildPrebuiltBaseline.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<UsagePattern IdentityGlob="Microsoft.CodeAnalysis*/*4.7.*" />
1111

1212
<!-- Allowed and pinned to major version due to https://github.com/dotnet/source-build/issues/3228 -->
13-
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Crossgen2.linux-x64/*8.*" />
14-
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Runtime.linux-x64/*8.*" />
15-
<UsagePattern IdentityGlob="*Microsoft.DotNet.ILCompiler/*8.*" />
13+
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Crossgen2.linux-x64/*9.*" />
14+
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Runtime.linux-x64/*9.*" />
15+
<UsagePattern IdentityGlob="*Microsoft.DotNet.ILCompiler/*9.*" />
1616

1717
<!-- Allowed and pinned to SDK version -->
18-
<UsagePattern IdentityGlob="Microsoft.NET.ILLink.Tasks/*8.*" />
18+
<UsagePattern IdentityGlob="Microsoft.NET.ILLink.Tasks/*9.*" />
1919

2020
<!-- This version is brought in transitively from NuGet.Packaging.6.2.4.
2121
Once a newer version of NuGet.Packaging is referenced which has a

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@
353353
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
354354
<Sha>7064208ca24e7b40f2437f61e69701fb53d53cfa</Sha>
355355
</Dependency>
356-
<Dependency Name="Microsoft.DotNet.HotReload.Utils.Generator.BuildTool" Version="9.0.0-alpha.0.23611.1">
356+
<Dependency Name="Microsoft.DotNet.HotReload.Utils.Generator.BuildTool" Version="9.0.0-alpha.0.23618.4">
357357
<Uri>https://github.com/dotnet/hotreload-utils</Uri>
358-
<Sha>cc369887e92bac086dd296beb7cd169b6cff9716</Sha>
358+
<Sha>14a6f0b652e5d1053b5213adfcdfe1aaa6d52d6d</Sha>
359359
</Dependency>
360360
<Dependency Name="System.Runtime.Numerics.TestData" Version="9.0.0-beta.23615.1">
361361
<Uri>https://github.com/dotnet/runtime-assets</Uri>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>9.0.0-prerelease.23611.1</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
183183
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>9.0.0-prerelease.23611.1</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
184184
<MicrosoftDotNetXHarnessCLIVersion>9.0.0-prerelease.23611.1</MicrosoftDotNetXHarnessCLIVersion>
185-
<MicrosoftDotNetHotReloadUtilsGeneratorBuildToolVersion>9.0.0-alpha.0.23611.1</MicrosoftDotNetHotReloadUtilsGeneratorBuildToolVersion>
185+
<MicrosoftDotNetHotReloadUtilsGeneratorBuildToolVersion>9.0.0-alpha.0.23618.4</MicrosoftDotNetHotReloadUtilsGeneratorBuildToolVersion>
186186
<NUnitVersion>3.12.0</NUnitVersion>
187187
<NUnitTestAdapterVersion>4.1.0</NUnitTestAdapterVersion>
188188
<CoverletCollectorVersion>6.0.0</CoverletCollectorVersion>

eng/targetingpacks.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@
5353
RuntimeFrameworkName="$(LocalFrameworkOverrideName)"
5454
LatestRuntimeFrameworkVersion="$(ProductVersion)"
5555
RuntimePackNamePatterns="$(LocalFrameworkOverrideName).Runtime.Mono.**RID**"
56-
RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;linux-s390x;linux-bionic-arm;linux-bionic-arm64;linux-bionic-x64;linux-bionic-x86;browser-wasm;wasi-wasm;ios-arm64;ios-arm;iossimulator-arm64;iossimulator-x64;iossimulator-x86;tvos-arm64;tvossimulator-arm64;tvossimulator-x64;maccatalyst-x64;maccatalyst-arm64;android-arm64;android-arm;android-x64;android-x86"
56+
RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;linux-s390x;linux-bionic-arm;linux-bionic-arm64;linux-bionic-x64;linux-bionic-x86;browser-wasm;ios-arm64;ios-arm;iossimulator-arm64;iossimulator-x64;iossimulator-x86;tvos-arm64;tvossimulator-arm64;tvossimulator-x64;maccatalyst-x64;maccatalyst-arm64;android-arm64;android-arm;android-x64;android-x86"
5757
RuntimePackLabels="Mono"
5858
Condition="'$(UseLocalTargetingRuntimePack)' == 'true' and ('@(KnownRuntimePack)' == '' or @(KnownRuntimePack->WithMetadataValue('Identity', 'Microsoft.NETCore.App')->WithMetadataValue('RuntimePackLabels', 'Mono')->WithMetadataValue('TargetFramework', '$(NetCoreAppCurrent)')) == '')" />
59+
<!-- always add wasi-wasm as it is never added by the sdk -->
60+
<KnownRuntimePack Update="@(KnownRuntimePack->WithMetadataValue('Identity', '$(LocalFrameworkOverrideName)')->WithMetadataValue('RuntimePackLabels', 'Mono')->WithMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))"
61+
RuntimePackRuntimeIdentifiers="%(RuntimePackRuntimeIdentifiers);wasi-wasm"
62+
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'" />
5963
<KnownRuntimePack Include="$(LocalFrameworkOverrideName)"
6064
TargetFramework="$(NetCoreAppCurrent)"
6165
RuntimeFrameworkName="$(LocalFrameworkOverrideName)"

eng/testing/tests.browser.targets

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<WasmIgnoreNet6WorkloadInstallErrors Condition="'$(WasmIgnoreNet6WorkloadInstallErrors)' == ''">true</WasmIgnoreNet6WorkloadInstallErrors>
2424
<WasmIgnoreNet6WorkloadInstallErrors Condition="'$(WasmIgnoreNet6WorkloadInstallErrors)' != 'true'">false</WasmIgnoreNet6WorkloadInstallErrors>
2525
<!--<InstallWorkloadUsingArtifactsDependsOn>_GetWorkloadsToInstall;$(InstallWorkloadUsingArtifactsDependsOn)</InstallWorkloadUsingArtifactsDependsOn>-->
26-
<GetWorkloadInputsDependsOn>_GetWorkloadsToInstall;$(GetWorkloadInputsDependsOn)</GetWorkloadInputsDependsOn>
2726
<!-- '/.dockerenv' - is to check if this is running in a codespace -->
2827
<InstallChromeForTests Condition="'$(InstallChromeForTests)' == '' and
2928
('$(ContinuousIntegrationBuild)' != 'true' or Exists('/.dockerenv')) and
@@ -33,7 +32,6 @@
3332
($([MSBuild]::IsOSPlatform('windows')) or $([MSBuild]::IsOSPlatform('linux')))"
3433
>true</InstallV8ForTests>
3534

36-
<GetNuGetsToBuildForWorkloadTestingDependsOn>_GetRuntimePackNuGetsToBuild;_GetNugetsForAOT;$(GetNuGetsToBuildForWorkloadTestingDependsOn)</GetNuGetsToBuildForWorkloadTestingDependsOn>
3735
<_BundleAOTTestWasmAppForHelixDependsOn>$(_BundleAOTTestWasmAppForHelixDependsOn);PrepareForWasmBuildApp;_PrepareForAOTOnHelix</_BundleAOTTestWasmAppForHelixDependsOn>
3836
<WasmEnableLegacyJsInterop Condition="'$(WasmEnableLegacyJsInterop)' == ''">true</WasmEnableLegacyJsInterop>
3937
<UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">false</UseSystemResourceKeys>
@@ -272,90 +270,4 @@
272270
<SetScriptCommands Condition="'$(IsBrowserWasmProject)' == 'true'" Include="set RuntimeIdentifier=browser-wasm" />
273271
</ItemGroup>
274272
</Target>
275-
276-
<Target Name="_GetWorkloadsToInstall" DependsOnTargets="_SetPackageVersionForWorkloadsTesting" Returns="@(WorkloadIdForTesting);@(WorkloadCombinationsToInstall)">
277-
<ItemGroup>
278-
<WorkloadIdForTesting Include="wasm-tools;wasm-experimental"
279-
ManifestName="Microsoft.NET.Workload.Mono.ToolChain.Current"
280-
Variant="latest"
281-
Version="$(PackageVersionForWorkloadManifests)" />
282-
283-
<WorkloadIdForTesting Include="wasm-tools-net8;wasm-experimental-net8"
284-
ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net8"
285-
Variant="net8"
286-
Version="$(PackageVersionForWorkloadManifests)" />
287-
288-
<WorkloadIdForTesting Include="wasm-tools-net7;wasm-experimental-net7"
289-
ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net7"
290-
Variant="net7"
291-
Version="$(PackageVersionForWorkloadManifests)"
292-
Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" />
293-
294-
<WorkloadIdForTesting Include="wasm-tools-net6"
295-
ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net6"
296-
Variant="net6"
297-
Version="$(PackageVersionForWorkloadManifests)"
298-
IgnoreErrors="$(WasmIgnoreNet6WorkloadInstallErrors)"
299-
Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" />
300-
301-
<WorkloadCombinationsToInstall Include="latest" Variants="latest;net8" />
302-
<WorkloadCombinationsToInstall Include="net7" Variants="net7" Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" />
303-
<WorkloadCombinationsToInstall Include="net7+latest" Variants="net7;latest" Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" />
304-
<!--<WorkloadCombinationsToInstall Include="net6" Variants="net6" />-->
305-
<!--<WorkloadCombinationsToInstall Include="net6+7" Variants="net6;net7" />-->
306-
<!--<WorkloadCombinationsToInstall Include="none" />-->
307-
</ItemGroup>
308-
</Target>
309-
310-
<!-- For local builds, only one of the 3 required runtime packs might be available. In that case,
311-
build the other nugets with the *same runtime* but different names.
312-
-->
313-
<Target Name="_GetRuntimePackNuGetsToBuild" Condition="'$(WasmSkipMissingRuntimePackBuild)' != 'true'" Returns="@(_NuGetsToBuild)">
314-
<PropertyGroup>
315-
<_DefaultBuildVariant Condition="'$(MonoWasmBuildVariant)' == 'multithread'">.multithread.</_DefaultBuildVariant>
316-
<_DefaultBuildVariant Condition="'$(_DefaultBuildVariant)' == ''">.</_DefaultBuildVariant>
317-
318-
<_DefaultRuntimePackNuGetPath>$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono$(_DefaultBuildVariant)$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg</_DefaultRuntimePackNuGetPath>
319-
</PropertyGroup>
320-
321-
<ItemGroup>
322-
<_RuntimePackNugetAvailable Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.$(RuntimeIdentifier).*$(PackageVersionForWorkloadManifests).nupkg" />
323-
<_RuntimePackNugetAvailable Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.*.$(RuntimeIdentifier).*$(PackageVersionForWorkloadManifests).nupkg" />
324-
<_RuntimePackNugetAvailable Remove="@(_RuntimePackNugetAvailable)" Condition="$([System.String]::new('%(_RuntimePackNugetAvailable.FileName)').EndsWith('.symbols'))" />
325-
</ItemGroup>
326-
327-
<Error Condition="@(_RuntimePackNugetAvailable -> Count()) != 2 and @(_RuntimePackNugetAvailable -> Count()) != 1"
328-
Text="Expected to find either one or two in $(LibrariesShippingPackagesDir): @(_RuntimePackNugetAvailable->'%(FileName)%(Extension)')" />
329-
330-
<ItemGroup>
331-
<_BuildVariants Include="multithread" Condition="'$(_DefaultBuildVariant)' != '.multithread.'" />
332-
333-
<_NuGetsToBuild Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.%(_BuildVariants.Identity).$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg"
334-
Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj"
335-
Dependencies="$(_DefaultRuntimePackNuGetPath)"
336-
Properties="@(_DefaultPropsForNuGetBuild, ';');MonoWasmBuildVariant=%(_BuildVariants.Identity)"
337-
Descriptor="runtime pack for %(_BuildVariants.Identity)"
338-
Condition="'%(_BuildVariants.Identity)' != ''"/>
339-
340-
<!-- add for non-threaded runtime also -->
341-
<_NuGetsToBuild Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg"
342-
Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj"
343-
Properties="@(_DefaultPropsForNuGetBuild, ';');MonoWasmBuildVariant="
344-
Dependencies="$(_DefaultRuntimePackNuGetPath)"
345-
Descriptor="single threaded runtime pack"
346-
Condition="'$(_DefaultBuildVariant)' != '.'" />
347-
</ItemGroup>
348-
349-
<Message
350-
Condition="@(_RuntimePackNugetAvailable -> Count()) == 1"
351-
Importance="High"
352-
Text="
353-
********************
354-
355-
Note: Could not find the expected two runtime packs in $(LibrariesShippingPackagesDir). Found @(_RuntimePackNugetAvailable->'%(FileName)%(Extension)', ', ') .
356-
To support local builds, the same runtime pack will be built with the other variant names.
357-
To disable this behavior, pass `-p:WasmSkipMissingRuntimePackBuild=true` .
358-
359-
*******************" />
360-
</Target>
361273
</Project>

eng/testing/tests.wasi.targets

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
>true</InstallWasmtimeForTests>
1414

1515
<!--<InstallWorkloadUsingArtifactsDependsOn>_GetWorkloadsToInstall;$(InstallWorkloadUsingArtifactsDependsOn)</InstallWorkloadUsingArtifactsDependsOn>-->
16-
<GetWorkloadInputsDependsOn>_GetWorkloadsToInstall;$(GetWorkloadInputsDependsOn)</GetWorkloadInputsDependsOn>
17-
<GetNuGetsToBuildForWorkloadTestingDependsOn>_GetNugetsForAOT;$(GetNuGetsToBuildForWorkloadTestingDependsOn)</GetNuGetsToBuildForWorkloadTestingDependsOn>
1816
<WASI_SDK_PATH Condition="'$(WASI_SDK_PATH)' == ''">$([MSBuild]::NormalizeDirectory($(MonoProjectRoot), 'wasi', 'wasi-sdk'))</WASI_SDK_PATH>
1917

2018
<_BundleAOTTestWasmAppForHelixDependsOn>$(_BundleAOTTestWasmAppForHelixDependsOn);PrepareForWasiBuildApp;_PrepareForAOTOnHelix</_BundleAOTTestWasmAppForHelixDependsOn>
@@ -158,19 +156,4 @@
158156
<SetScriptCommands Condition="'$(IsWasiProject)' == 'true'" Include="set RuntimeIdentifier=wasi-wasm" />
159157
</ItemGroup>
160158
</Target>
161-
162-
<Target Name="_GetWorkloadsToInstall" DependsOnTargets="_SetPackageVersionForWorkloadsTesting" Returns="@(WorkloadIdForTesting);@(WorkloadCombinationsToInstall)">
163-
<ItemGroup>
164-
<WorkloadIdForTesting Include="wasi-experimental"
165-
ManifestName="Microsoft.NET.Workload.Mono.ToolChain.Current"
166-
Variant="latest"
167-
Version="$(PackageVersionForWorkloadManifests)" />
168-
169-
<WorkloadIdForTesting Include="wasi-experimental-net8;wasi-experimental"
170-
ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net8"
171-
Variant="net8"
172-
Version="$(PackageVersionForWorkloadManifests)" />
173-
<WorkloadCombinationsToInstall Include="latest" Variants="latest;net8" />
174-
</ItemGroup>
175-
</Target>
176159
</Project>

eng/testing/tests.wasm.targets

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -186,30 +186,4 @@
186186
<Target Name="DeployHelixTargetsFile" AfterTargets="ArchiveTests" Condition="'$(HelixTargetsFile)' != ''">
187187
<Copy SourceFiles="$(HelixTargetsFile)" DestinationFiles="$(TestArchiveTestsDir)$(TestProjectName).helix.targets" SkipUnchangedFiles="true" />
188188
</Target>
189-
190-
<Target Name="_GetNugetsForAOT" Returns="@(_NuGetsToBuild)">
191-
<PropertyGroup>
192-
<!-- Eg. Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm.6.0.0-dev.nupkg -->
193-
<_AOTCrossNuGetPath>$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.AOT.$(NETCoreSdkRuntimeIdentifier).Cross.$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg</_AOTCrossNuGetPath>
194-
</PropertyGroup>
195-
196-
<ItemGroup>
197-
<_NuGetsToBuild Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Ref.$(PackageVersionForWorkloadManifests).nupkg"
198-
Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App\Microsoft.NETCore.App.Ref.sfxproj"
199-
Properties="@(_DefaultPropsForNuGetBuild, ';')"
200-
Descriptor="Ref pack"/>
201-
202-
<!-- AOT Cross compiler -->
203-
<_PropsForAOTCrossBuild Include="@(_DefaultPropsForNuGetBuild)" />
204-
<_PropsForAOTCrossBuild Include="TestingWorkloads=true" />
205-
<_PropsForAOTCrossBuild Include="RuntimeIdentifier=$(NETCoreSdkRuntimeIdentifier)" />
206-
<_PropsForAOTCrossBuild Include="TargetCrossRid=$(RuntimeIdentifier)" />
207-
<_PropsForAOTCrossBuild Include="DisableSourceLink=true" />
208-
209-
<_NuGetsToBuild Include="$(_AOTCrossNuGetPath)"
210-
Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App\Microsoft.NETCore.App.MonoCrossAOT.sfxproj"
211-
Properties="@(_PropsForAOTCrossBuild,';')"
212-
Descriptor="AOT Cross compiler"/>
213-
</ItemGroup>
214-
</Target>
215189
</Project>

0 commit comments

Comments
 (0)