Skip to content

Commit

Permalink
Update versions and tweak / simplify some version related stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyKuhne committed Nov 1, 2024
1 parent accf26f commit 0d38625
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
12 changes: 6 additions & 6 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</PropertyGroup>
<!-- Packages that come from https://github.com/dotnet/winforms -->
<PropertyGroup>
<MicrosoftPrivateWinformsVersion>10.0.0-alpha.1.24529.3</MicrosoftPrivateWinformsVersion>
<MicrosoftPrivateWinformsVersion>10.0.0-alpha.1.24531.1</MicrosoftPrivateWinformsVersion>
<!-- Override as WinForms is still building against the 9.0 platform. -->
<_WinFormsTargetFrameworkVersion>net9.0</_WinFormsTargetFrameworkVersion>
</PropertyGroup>
Expand All @@ -40,11 +40,11 @@
<SystemIOPackagingVersion>10.0.0-alpha.1.24528.7</SystemIOPackagingVersion>
<SystemReflectionMetadataLoadContextVersion>10.0.0-alpha.1.24528.7</SystemReflectionMetadataLoadContextVersion>
<SystemReflectionTypeExtensionsPackageVersion>4.6.0-preview4.19176.11</SystemReflectionTypeExtensionsPackageVersion>
<SystemResourcesExtensionsVersion>10.0.0-alpha.1.24528.7</SystemResourcesExtensionsVersion>
<SystemRuntimeSerializationFormattersPackageVersion>10.0.0-alpha.1.24528.7</SystemRuntimeSerializationFormattersPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>10.0.0-alpha.1.24528.7</SystemSecurityCryptographyXmlPackageVersion>
<SystemSecurityPermissionsPackageVersion>10.0.0-alpha.1.24528.7</SystemSecurityPermissionsPackageVersion>
<SystemWindowsExtensionsPackageVersion>10.0.0-alpha.1.24528.7</SystemWindowsExtensionsPackageVersion>
<SystemResourcesExtensionsVersion>10.0.0-alpha.1.24530.5</SystemResourcesExtensionsVersion>
<SystemRuntimeSerializationFormattersPackageVersion>10.0.0-alpha.1.24530.5</SystemRuntimeSerializationFormattersPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>10.0.0-alpha.1.24530.5</SystemSecurityCryptographyXmlPackageVersion>
<SystemSecurityPermissionsPackageVersion>10.0.0-alpha.1.24530.5</SystemSecurityPermissionsPackageVersion>
<SystemWindowsExtensionsPackageVersion>10.0.0-alpha.1.24530.5</SystemWindowsExtensionsPackageVersion>
<SystemRuntimeCompilerServicesUnsafePackageVersion>6.0.0</SystemRuntimeCompilerServicesUnsafePackageVersion>
</PropertyGroup>
<!-- Docs / Intellisense -->
Expand Down
18 changes: 12 additions & 6 deletions eng/WpfArcadeSdk/tools/RuntimeFrameworkReference.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
Explicitly import Microsoft.NETCore.Platforms to prevent using the one from the SDK, which
usually lags behind the version that WPF gets from CoreFx packages
-->

<PropertyGroup>
<UpdatedTargetingPackVersion Condition="'$(MicrosoftNETCoreAppRefVersion)'!=''
And '$(NoTargets)'!='true'
And '$(TargetFrameworkIdentifier)' == '.NETCoreApp'
And $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '3.0'))
And '$(MSBuildProjectExtension)'!='.vcxproj'">$(MicrosoftNETCoreAppRefVersion)</UpdatedTargetingPackVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Platforms"
Version="$(MicrosoftNETCorePlatformsVersion)"
Expand All @@ -12,13 +21,10 @@
Version="$(MicrosoftNETCorePlatformsVersion)"
Condition="'$(ManagedCxx)'=='true'"/>

<!-- This should probably update all FrameworkReference entries. -->
<FrameworkReference Update="Microsoft.NETCore.App"
Condition="'$(MicrosoftNETCoreAppRefVersion)'!=''
And '$(NoTargets)'!='true'
And '$(TargetFrameworkIdentifier)' == '.NETCoreApp'
And $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '3.0'))
And '$(MSBuildProjectExtension)'!='.vcxproj'">
<TargetingPackVersion>$(MicrosoftNETCoreAppRefVersion)</TargetingPackVersion>
Condition="'$(UpdatedTargetingPackVersion)'!=''">
<TargetingPackVersion>$(UpdatedTargetingPackVersion)</TargetingPackVersion>
</FrameworkReference>

<!--
Expand Down
6 changes: 2 additions & 4 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
"tools": {
"dotnet": "10.0.100-alpha.1.24530.9",
"runtimes": {
"dotnet/x64": [
"$(VSRedistCommonNetCoreSharedFrameworkx64100PackageVersion)"
],
"dotnet/x86": [
"dotnet": [
"2.1.7",
"$(VSRedistCommonNetCoreSharedFrameworkx64100PackageVersion)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@
Limit the assemblies that are packaged into Microsoft.NET.Sdk.WindowsDesktop
-->
<ItemGroup Condition="'$(TargetFramework)'=='net472'">
<PackagingAssemblyContent Include="PresentationBuildTasks.dll" />
<PackagingAssemblyContent Include="System.Collections.Immutable.dll" />
<PackagingAssemblyContent Include="System.Memory.dll" />
<PackagingAssemblyContent Include="System.Numerics.Vectors.dll" />
<PackagingAssemblyContent Include="System.Reflection.Metadata.dll" />
<PackagingAssemblyContent Include="System.Reflection.MetadataLoadContext.dll" />
<PackagingAssemblyContent Include="System.Runtime.CompilerServices.Unsafe.dll" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net10.0'">
<ItemGroup>
<PackagingAssemblyContent Include="PresentationBuildTasks.dll" />
<PackagingAssemblyContent Include="System.Reflection.MetadataLoadContext.dll" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,18 @@
-->
<Target Name="FixupRuntimeFrameworkVersions" AfterTargets="ProcessFrameworkReferences" BeforeTargets="GenerateBuildDependencyFile">
<PropertyGroup>
<!--
This would be more correct to just match the TargetFramework version between the RuntimeFramework and the KnownFramework.
-->

<!-- Find the Major.Minor out of the updated targeting pack semantic version. -->
<_targetPackVersion Condition="'$(UpdatedTargetingPackVersion)' != ''">$([System.Text.RegularExpressions.Regex]::Match($(UpdatedTargetingPackVersion), '^(\d+)\.(\d+)').Value)</_targetPackVersion>

<!-- Split out the target framework. "net10.0-windows" is an example. -->
<_targetFrameworkIdentifier>$([MSBuild]::GetTargetFrameworkIdentifier($(TargetFramework)))</_targetFrameworkIdentifier>
<_targetFrameworkIdentifier Condition="'$(_targetFrameworkIdentifier)' == '.NETCoreApp'">net</_targetFrameworkIdentifier>
<_targetFrameworkVersion>$([MSBuild]::GetTargetFrameworkVersion($(TargetFramework)))</_targetFrameworkVersion>
<_targetFrameworkVersion Condition="'$(_targetPackVersion)' != ''">$(_targetPackVersion)</_targetFrameworkVersion>
<_targetFrameworkVersion Condition="'$(_targetFrameworkVersion)' == ''">$([MSBuild]::GetTargetFrameworkVersion($(TargetFramework)))</_targetFrameworkVersion>
<_targetFrameworkRoot>$(_targetFrameworkIdentifier)$(_targetFrameworkVersion)</_targetFrameworkRoot>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<Platforms>x64;x86;ARM64</Platforms>
<RootNamespace />
<TargetFramework>net10.0-windows</TargetFramework>
<TargetFramework Condition="!$(TargetFramework.Contains('windows'))">$(TargetFramework)-windows</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 0d38625

Please sign in to comment.