Skip to content

Commit 09f03b1

Browse files
authored
Merge branch 'dotnet:main' into Issue-6530_Automation_Peer_For_ContextMenu_Support_Groups
2 parents 69fb9a1 + 7a6188f commit 09f03b1

File tree

298 files changed

+4547
-3168
lines changed

Some content is hidden

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

298 files changed

+4547
-3168
lines changed

NuGet.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<add key="dotnet7-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7-transport/nuget/v3/index.json" />
1111
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
1212
<add key="dotnet8-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" />
13+
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
14+
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
1315
</packageSources>
1416
<disabledPackageSources />
1517
</configuration>

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
[![Build Status](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/wpf/dotnet-wpf%20CI)](https://dnceng.visualstudio.com/public/_build/latest?definitionId=270)
44
[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/dotnet/wpf/blob/main/LICENSE.TXT)
55

6-
Windows Presentation Foundation (WPF) is a UI framework for building Windows desktop applications. WPF supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding and documents. WPF uses the Extensible Application Markup Language (XAML) to provide a declarative model for application programming.
6+
Windows Presentation Foundation (WPF) is a UI framework for building Windows desktop applications.
77

8-
WPF applications are based on a vector graphics architecture. This enables applications to look great on high DPI monitors, as they can be infinitely scaled. WPF also includes a flexible hosting model, which makes it straightforward to host a video in a button, for example. The visual designer provided in Visual Studio makes it easy to build WPF application, with drag-in-drop and/or direct editing of XAML markup.
8+
WPF supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding and documents. WPF uses the Extensible Application Markup Language (XAML) to provide a declarative model for application programming.
99

10-
As of .NET 6.0 WPF supports ARM64.
10+
WPF's rendering is vector-based, which enables applications to look great on high DPI monitors, as they can be infinitely scaled. WPF also includes a flexible hosting model, which makes it straightforward to host a video in a button, for example.
11+
12+
Visual Studio's designer, as well as Visual Studio Blend, make it easy to build WPF applications, with drag-and-drop and/or direct editing of XAML markup.
13+
14+
As of .NET 6.0, WPF supports ARM64.
1115

1216
See the [WPF Roadmap](roadmap.md) to learn about project priorities, status and ship dates.
1317

1418
[WinForms](https://github.com/dotnet/winforms) is another UI framework for building Windows desktop applications that is supported on .NET (7.0.x/6.0.x). WPF and WinForms applications only run on Windows. They are part of the `Microsoft.NET.Sdk.WindowsDesktop` SDK. You are recommended to use the most recent version of [Visual Studio](https://visualstudio.microsoft.com/downloads/) to develop WPF and WinForms applications for .NET.
1519

16-
To build the WPF repo and contribute features and fixes for .NET 8.0, [Visual Studio 2022 Preview](https://visualstudio.microsoft.com/vs/preview/) is required.
20+
To build the WPF repo and contribute features and fixes for .NET 8.0, [Visual Studio 2022 Preview](https://visualstudio.microsoft.com/vs/preview/) is required.
1721

1822
## Getting started
1923

eng/AfterSolutionBuild.targets

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<Project>
2-
<Import Project="$(MSBuildThisFileDirectory)WpfArcadeSdk\tools\RunDrtsLocal.targets" Condition="'$(Test)'=='True'" />
2+
<!-- Disabling currently in favour of enabling unit tests -->
3+
<!-- As of now, 10/07/23 DRTs are already running on build pipelines -->
4+
<!-- <Import Project="$(MSBuildThisFileDirectory)WpfArcadeSdk\tools\RunDrtsLocal.targets" Condition="'$(Test)'=='True'" /> -->
35
</Project>

eng/Version.Details.xml

Lines changed: 94 additions & 86 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<MajorVersion>8</MajorVersion>
4+
<MajorVersion>9</MajorVersion>
55
<MinorVersion>0</MinorVersion>
66
<PatchVersion>0</PatchVersion>
7-
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
8-
<PreReleaseVersionIteration>7</PreReleaseVersionIteration>
7+
<PreReleaseVersionLabel>alpha</PreReleaseVersionLabel>
8+
<PreReleaseVersionIteration>1</PreReleaseVersionIteration>
99
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
1010
<!--
1111
Set assembly version to align with major and minor version, as for the patches and revisions should be manually
@@ -21,35 +21,40 @@
2121
</PropertyGroup>
2222
<!-- Packages that come from https://github.com/dotnet/winforms -->
2323
<PropertyGroup>
24-
<MicrosoftPrivateWinformsVersion>8.0.0-preview.6.23320.12</MicrosoftPrivateWinformsVersion>
24+
<MicrosoftPrivateWinformsVersion>9.0.0-alpha.1.23454.1</MicrosoftPrivateWinformsVersion>
2525
</PropertyGroup>
2626
<!-- Packages that come from https://github.com/dotnet/runtime -->
2727
<PropertyGroup>
28-
<VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>8.0.0-preview.6.23319.9</VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>
29-
<MicrosoftNETCoreAppRefVersion>8.0.0-preview.6.23319.9</MicrosoftNETCoreAppRefVersion>
30-
<MicrosoftNETCoreAppRuntimewinx64Version>8.0.0-preview.6.23319.9</MicrosoftNETCoreAppRuntimewinx64Version>
31-
<MicrosoftNETCorePlatformsVersion>8.0.0-preview.6.23319.9</MicrosoftNETCorePlatformsVersion>
32-
<SystemCodeDomPackageVersion>8.0.0-preview.6.23319.9</SystemCodeDomPackageVersion>
33-
<SystemConfigurationConfigurationManagerPackageVersion>8.0.0-preview.6.23319.9</SystemConfigurationConfigurationManagerPackageVersion>
34-
<SystemDiagnosticsEventLogPackageVersion>8.0.0-preview.6.23319.9</SystemDiagnosticsEventLogPackageVersion>
35-
<SystemDrawingCommonVersion>8.0.0-preview.6.23320.12</SystemDrawingCommonVersion>
36-
<SystemDirectoryServicesVersion>8.0.0-preview.6.23319.9</SystemDirectoryServicesVersion>
37-
<SystemIOPackagingVersion>8.0.0-preview.6.23319.9</SystemIOPackagingVersion>
38-
<SystemReflectionMetadataLoadContextVersion>8.0.0-preview.6.23319.9</SystemReflectionMetadataLoadContextVersion>
28+
<VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>8.0.0-rc.1.23421.3</VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>
29+
<MicrosoftNETCoreAppRefVersion>9.0.0-alpha.1.23430.1</MicrosoftNETCoreAppRefVersion>
30+
<MicrosoftNETCoreAppRuntimewinx64Version>9.0.0-alpha.1.23430.1</MicrosoftNETCoreAppRuntimewinx64Version>
31+
<MicrosoftNETCorePlatformsVersion>9.0.0-alpha.1.23430.1</MicrosoftNETCorePlatformsVersion>
32+
<SystemCodeDomPackageVersion>9.0.0-alpha.1.23430.1</SystemCodeDomPackageVersion>
33+
<SystemConfigurationConfigurationManagerPackageVersion>9.0.0-alpha.1.23430.1</SystemConfigurationConfigurationManagerPackageVersion>
34+
<SystemDiagnosticsEventLogPackageVersion>9.0.0-alpha.1.23430.1</SystemDiagnosticsEventLogPackageVersion>
35+
<SystemDrawingCommonVersion>9.0.0-alpha.1.23454.1</SystemDrawingCommonVersion>
36+
<SystemDirectoryServicesVersion>9.0.0-alpha.1.23430.1</SystemDirectoryServicesVersion>
37+
<SystemIOPackagingVersion>9.0.0-alpha.1.23430.1</SystemIOPackagingVersion>
38+
<SystemReflectionMetadataLoadContextVersion>9.0.0-alpha.1.23430.1</SystemReflectionMetadataLoadContextVersion>
3939
<SystemReflectionTypeExtensionsPackageVersion>4.6.0-preview4.19176.11</SystemReflectionTypeExtensionsPackageVersion>
40-
<SystemResourcesExtensionsVersion>8.0.0-preview.6.23319.9</SystemResourcesExtensionsVersion>
41-
<SystemSecurityCryptographyXmlPackageVersion>8.0.0-preview.6.23319.9</SystemSecurityCryptographyXmlPackageVersion>
42-
<SystemSecurityPermissionsPackageVersion>8.0.0-preview.6.23319.9</SystemSecurityPermissionsPackageVersion>
43-
<SystemWindowsExtensionsPackageVersion>8.0.0-preview.6.23319.9</SystemWindowsExtensionsPackageVersion>
40+
<SystemResourcesExtensionsVersion>9.0.0-alpha.1.23430.1</SystemResourcesExtensionsVersion>
41+
<SystemSecurityCryptographyXmlPackageVersion>9.0.0-alpha.1.23430.1</SystemSecurityCryptographyXmlPackageVersion>
42+
<SystemSecurityPermissionsPackageVersion>9.0.0-alpha.1.23430.1</SystemSecurityPermissionsPackageVersion>
43+
<SystemWindowsExtensionsPackageVersion>9.0.0-alpha.1.23430.1</SystemWindowsExtensionsPackageVersion>
4444
</PropertyGroup>
4545
<!-- Docs / Intellisense -->
4646
<PropertyGroup>
4747
<MicrosoftPrivateIntellisenseVersion>7.0.0-preview-20221010.1</MicrosoftPrivateIntellisenseVersion>
4848
</PropertyGroup>
4949
<!-- Packages that come from https://github.com/dotnet/arcade -->
5050
<PropertyGroup>
51-
<MicrosoftDotNetApiCompatVersion>8.0.0-beta.23320.3</MicrosoftDotNetApiCompatVersion>
52-
<MicrosoftDotNetCodeAnalysisPackageVersion>8.0.0-beta.23320.3</MicrosoftDotNetCodeAnalysisPackageVersion>
51+
<MicrosoftDotNetApiCompatVersion>8.0.0-beta.23451.1</MicrosoftDotNetApiCompatVersion>
52+
<MicrosoftDotNetCodeAnalysisPackageVersion>8.0.0-beta.23451.1</MicrosoftDotNetCodeAnalysisPackageVersion>
53+
</PropertyGroup>
54+
<!-- Sourcelink -->
55+
<PropertyGroup>
56+
<MicrosoftSourceLinkGitHubVersion>8.0.0-beta.23409.2</MicrosoftSourceLinkGitHubVersion>
57+
<MicrosoftSourceLinkAzureReposGitVersion>8.0.0-beta.23409.2</MicrosoftSourceLinkAzureReposGitVersion>
5358
</PropertyGroup>
5459
<!-- Maintain System.CodeDom PackageVersion at 4.4.0. See https://github.com/Microsoft/msbuild/issues/3627 -->
5560
<!-- Pin specific versions of S.Memory so that it would supply AssemblyVersion=4.0.1.0. See https://github.com/dotnet/runtime/issues/31672 -->
@@ -74,9 +79,13 @@
7479
-->
7580
<MicrosoftDotNetWpfTestPackageVersion>1.0.0-beta.19263.1</MicrosoftDotNetWpfTestPackageVersion>
7681
<!-- These versions are specified in global.json -->
77-
<StrawberryPerlVersion>5.28.1.1-1</StrawberryPerlVersion>
82+
<StrawberryPerlVersion>5.38.0.1</StrawberryPerlVersion>
7883
<NetFramework48RefAssembliesVersion>0.0.0.1</NetFramework48RefAssembliesVersion>
7984
</PropertyGroup>
85+
<!-- External Analyzers -->
86+
<PropertyGroup>
87+
<MicrosoftCodeAnalysisNetAnalyzersVersion>7.0.0</MicrosoftCodeAnalysisNetAnalyzersVersion>
88+
</PropertyGroup>
8089
<!--Package names-->
8190
<PropertyGroup>
8291
<SystemReflectionMetadataLoadContextPackage>System.Reflection.MetadataLoadContext</SystemReflectionMetadataLoadContextPackage>
@@ -88,6 +97,6 @@
8897
<SystemReflectionMetadataLoadContextPackage>System.Reflection.MetadataLoadContext</SystemReflectionMetadataLoadContextPackage>
8998
</PropertyGroup>
9099
<PropertyGroup>
91-
<MicrosoftDotNetWpfDncEngVersion>8.0.0-preview.7.23321.2</MicrosoftDotNetWpfDncEngVersion>
100+
<MicrosoftDotNetWpfDncEngVersion>9.0.0-alpha.1.23416.3</MicrosoftDotNetWpfDncEngVersion>
92101
</PropertyGroup>
93102
</Project>

eng/WpfArcadeSdk/Sdk/Sdk.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<Import Project="$(WpfArcadeSdkToolsDir)ApiCompat.props" />
4545
<Import Project="$(WpfArcadeSdkToolsDir)GenApi.props" />
4646
<Import Project="$(WpfArcadeSdkToolsDir)Publishing.props" />
47+
<Import Project="$(WpfArcadeSdkToolsDir)CodeAnalysis.props" />
4748

4849
<PropertyGroup>
4950
<DebugType>full</DebugType>

eng/WpfArcadeSdk/Sdk/Sdk.targets

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
<Project>
22
<!-- Import Signing.targets before Microsoft.DotNet.Arcade.Sdk -->
33
<Import Project="$(WpfArcadeSdkToolsDir)Signing.targets" />
4-
4+
<Import Project="$(WpfArcadeSdkToolsDir)SourceLink.targets" Condition="'$(MSBuildProjectExtension)'=='.vcxproj'" />
5+
56
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
67
<Import Project="$(WpfArcadeSdkToolsDir)ApiCompat.targets"/>
78
<Import Project="$(WpfArcadeSdkToolsDir)FolderPaths.targets"/>
89
<Import Project="$(WpfArcadeSdkToolsDir)RuntimeFrameworkReference.targets"/>
910
<Import Project="$(WpfArcadeSdkToolsDir)InlineTasks.targets" />
1011
<Import Project="$(WpfArcadeSdkToolsDir)ShippingProjects.targets" />
11-
<Import Project="$(WpfArcadeSdkToolsDir)GenerateProgramFileForTests.targets" />
12+
13+
<!-- Disabling currently in favour of enabling unit tests -->
14+
<!-- As of now, 10/07/23 DRTs are already running on build pipelines -->
15+
<!-- <Import Project="$(WpfArcadeSdkToolsDir)GenerateProgramFileForTests.targets" /> -->
16+
1217
<Import Project="$(WpfArcadeSdkToolsDir)Packaging.targets" />
1318
<Import Project="$(WpfArcadeSdkToolsDir)Publishing.targets" />
1419
<Import Project="$(WpfArcadeSdkToolsDir)ReferenceAssembly.targets"/>
@@ -21,10 +26,14 @@
2126
<Import Project="$(WpfArcadeSdkToolsDir)CodeAnalysis.targets" />
2227
<Import Project="$(WpfArcadeSdkToolsDir)Wpf.Cpp.targets" Condition="'$(MSBuildProjectExtension)'=='.vcxproj'"/>
2328
<Import Project="$(NoTargetsTargets)" Condition="'$(NoTargets)'=='true'"/>
24-
<Import Project="$(WpfArcadeSdkToolsDir)TestProjects.targets" />
25-
<Import Project="$(WpfArcadeSdkToolsDir)CreateTestPayload.targets" Condition="'$(CreateTestPayload)'=='true'"/>
29+
30+
<!-- Disabling currently in favour of enabling unit tests -->
31+
<!-- As of now, 10/07/23 DRTs are already running on build pipelines -->
32+
<!-- <Import Project="$(WpfArcadeSdkToolsDir)TestProjects.targets" /> -->
33+
<!-- <Import Project="$(WpfArcadeSdkToolsDir)CreateTestPayload.targets" Condition="'$(CreateTestPayload)'=='true'"/> -->
34+
2635
<Import Project="$(WpfArcadeSdkToolsDir)GenApi.targets"/>
27-
36+
2837
<!-- PresentationBuildTasks related targets files -->
2938
<Import Project="$(WpfArcadeSdkToolsDir)Pbt.targets" Condition="'$(InternalMarkupCompilation)'=='true'"/>
3039
<Import Project="$(WpfArcadeSdkToolsDir)NoInternalTypeHelper.targets" />
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
<Project>
22

33
<PropertyGroup>
4-
<CodeAnalysisRuleset Condition="'$(IsTestProject)'!='true' AND '$(EnableAnalyzers)'=='true'">$(MSBuildThisFileDirectory)CodeAnalysis\WpfCodeAnalysis.ruleset</CodeAnalysisRuleset>
4+
<!-- Do not warn about the version of analyzers being used in this project -->
5+
<_SkipUpgradeNetAnalyzersNuGetWarning>true</_SkipUpgradeNetAnalyzersNuGetWarning>
56
</PropertyGroup>
67

7-
<ItemGroup Condition="'$(IsTestProject)'!='true' AND '$(EnableAnalyzers)'=='true'">
8-
<!-- Managed Code Reference analyzers -->
9-
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" />
10-
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="2.9.0" />
11-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
12-
<PackageReference Include="System.Runtime.Analyzers" Version="1.1.0" />
13-
<PackageReference Include="System.Runtime.InteropServices.Analyzers" Version="1.1.0" />
14-
</ItemGroup>
15-
</Project>
8+
</Project>

eng/WpfArcadeSdk/tools/CodeAnalysis.targets

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<Project>
2-
<PropertyGroup>
3-
<CodeAnalysisRuleSet Condition="'$(IsTestProject)'!='true' AND '$(EnableAnalyzers)'=='true'">$(MSBuildThisFileDirectory)CodeAnalysis\WpfCodeAnalysis.ruleset</CodeAnalysisRuleSet>
4-
</PropertyGroup>
5-
62
<ItemGroup Condition="'$(IsTestProject)'!='true' AND '$(EnableAnalyzers)'=='true'">
3+
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)CodeAnalysis\CodeAnalysis.src.globalconfig" />
74
<!-- Managed Code Reference analyzers -->
85
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" />
9-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" />
6+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="$(MicrosoftCodeAnalysisNetAnalyzersVersion)" PrivateAssets="all" />
107
<PackageReference Include="System.Runtime.Analyzers" Version="1.1.0" />
118
<PackageReference Include="System.Runtime.InteropServices.Analyzers" Version="1.1.0" />
129
</ItemGroup>

0 commit comments

Comments
 (0)