mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-07-09 03:49:52 +02:00
## Summary of the Pull Request .NET 10 Upgrade. Requires Visual Studio 2026. ## PR Checklist - [x] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments - Upgraded target framework from `net9.0` to `net10.0` across all projects - Removed redundant package references now included by default in .NET 10 - Updated package versions to .NET 10 releases - Modernized regex usage with source generators for better performance - Added `vbcscompiler` to the spell-check allowlist (`.github/actions/spell-check/expect.txt`) ## Validation Steps Performed <!-- START COPILOT CODING AGENT TIPS --> --- 🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. [Learn more about Advanced Security.](https://gh.io/cca-advanced-security) --------- Co-authored-by: Jeroen van Warmerdam <jeronevw@hotmail.com> Co-authored-by: Copilot <copilot@github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
48 lines
1.9 KiB
XML
48 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- Some items may be set in Directory.Build.props in root -->
|
||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||
<Import Project=".\Common.Dotnet.PrepareGeneratedFolder.targets" />
|
||
|
||
<PropertyGroup>
|
||
<CoreTargetFramework>net10.0</CoreTargetFramework>
|
||
<WindowsSdkPackageVersion>10.0.26100.68-preview</WindowsSdkPackageVersion>
|
||
<TargetFramework>$(CoreTargetFramework)-windows10.0.26100.0</TargetFramework>
|
||
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
|
||
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
|
||
</PropertyGroup>
|
||
|
||
<!-- Common from the debug / release items -->
|
||
<PropertyGroup>
|
||
<WarningLevel>4</WarningLevel>
|
||
<NoWarn></NoWarn>
|
||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||
<WarningsNotAsErrors>CA1824;CA1416;CA1720;CA1859;CA2263;CA2022;MVVMTK0045;MVVMTK0049</WarningsNotAsErrors>
|
||
</PropertyGroup>
|
||
|
||
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
||
<DebugSymbols>true</DebugSymbols>
|
||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||
<DebugType>portable</DebugType>
|
||
<Optimize>false</Optimize>
|
||
</PropertyGroup>
|
||
|
||
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
||
<ErrorReport>prompt</ErrorReport>
|
||
<DefineConstants>RELEASE;TRACE</DefineConstants>
|
||
<DebugType>pdbonly</DebugType>
|
||
<Optimize>true</Optimize>
|
||
</PropertyGroup>
|
||
|
||
<ItemGroup>
|
||
<PackageReference Include="Microsoft.Windows.CsWinRT" />
|
||
</ItemGroup>
|
||
|
||
<!-- this may need to be removed on future CsWinRT upgrades-->
|
||
<Target Name="RemoveCsWinRTPackageAnalyzer" BeforeTargets="CoreCompile">
|
||
<ItemGroup>
|
||
<Analyzer Remove="@(Analyzer)" Condition="%(Analyzer.NuGetPackageId) == 'Microsoft.Windows.CsWinRT'" />
|
||
</ItemGroup>
|
||
</Target>
|
||
</Project>
|