Граф коммитов

28 Коммитов

Автор SHA1 Сообщение Дата
ThomasGoulet73 fbff6e12cd
Enable PresentationCore tests (#9471)
* Run PresentationCore tests

* Use previously built package native files
2024-07-26 16:49:04 +05:30
Rishabh Chauhan f29acba869
Replace binary formatter (#8532)
* Replace BF for string input

* Replacing BF

* Updated BinaryFormattedObjectExtension

* Replacing BF in DataStreams

* Fixing Build for test

* Updating comments

* Adding fall back to BinaryFormatter

* Adding UnitTest setup

* Adding more BinaryFormatWriter test

* Adding more unit tests

* Adding BinaryFormattedObjectTests

* Replacing Binaries before Unit Tests

* Updating copy-wpf.ps1

* Resolving Replace binaries issue

* Adding UnitTest setup

* Adding more BinaryFormatWriter test

* Adding more unit tests

* Adding BinaryFormattedObjectTests

* Replacing Binaries before Unit Tests

* Updating copy-wpf.ps1

* Resolving Replace binaries issue

* excluding DirectWriteForwarder for copy command

* disable replace naive binaries

* updating args data type

* Replace BF for string input

* Replacing BF

* Updated BinaryFormattedObjectExtension

* Replacing BF in DataStreams

* Fixing Build for test

* Updating comments

* Adding fall back to BinaryFormatter

* Adding UnitTest setup

* Adding more BinaryFormatWriter test

* Adding more unit tests

* Adding BinaryFormattedObjectTests

* Replacing Binaries before Unit Tests

* Updating copy-wpf.ps1

* Resolving Replace binaries issue

* excluding DirectWriteForwarder for copy command

* Adding UnitTest setup

* Adding more BinaryFormatWriter test

* Adding more unit tests

* disable replace naive binaries

* updating args data type

* updating pipeline-pr.yml

* Replace BF for string input

* Replacing BF

* Updated BinaryFormattedObjectExtension

* Replacing BF in DataStreams

* Fixing Build for test

* Updating comments

* Adding fall back to BinaryFormatter

* Adding UnitTest setup

* Adding more BinaryFormatWriter test

* Adding more unit tests

* Adding BinaryFormattedObjectTests

* Replacing Binaries before Unit Tests

* Updating copy-wpf.ps1

* Resolving Replace binaries issue

* excluding DirectWriteForwarder for copy command

* Adding UnitTest setup

* Adding more BinaryFormatWriter test

* Adding more unit tests

* disable replace naive binaries

* updating args data type

* updating pipeline-pr.yml

* Replace BF for string input

* Replacing BF

* Replacing BF in DataStreams

* Updating comments

* Adding fall back to BinaryFormatter

* Adding more BinaryFormatWriter test

* Adding more unit tests

* Adding more BinaryFormatWriter test

* Adding more unit tests

* Remove commented code and add correct indentation

* Add "System.Runtime.Serialization.Formatters" reference in unit test

* Disabling PresentationCore.Tests [Temp]

* Revert Replace binaries before test

* Fix indentation

* Update Release | x86 type for SystemXamlTest

* Update Write-host to wirte-debug for debug statement
2024-07-19 14:50:23 +05:30
dotnet-maestro[bot] a95e5eaa3a
[main] Update dependencies from dotnet/winforms (#9141)
[main] Update dependencies from dotnet/winforms
- Coherency Updates:
  - System.Reflection.MetadataLoadContext: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Windows.Extensions: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - Microsoft.NETCore.Platforms: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Resources.Extensions: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - Microsoft.NETCore.App.Ref: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - Microsoft.NETCore.App.Runtime.win-x64: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - VS.Redist.Common.NetCore.SharedFramework.x64.9.0: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - Microsoft.Win32.Registry.AccessControl: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - Microsoft.Win32.SystemEvents: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.CodeDom: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.ComponentModel.Composition: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Configuration.ConfigurationManager: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Data.Odbc: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Data.OleDb: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Diagnostics.EventLog: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Diagnostics.PerformanceCounter: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.DirectoryServices.AccountManagement: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.DirectoryServices.Protocols: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.DirectoryServices: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.IO.Packaging: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.IO.Ports: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Management: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Reflection.Context: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Runtime.Caching: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Security.Cryptography.Pkcs: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Security.Cryptography.ProtectedData: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Security.Cryptography.Xml: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Security.Permissions: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.ServiceModel.Syndication: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.ServiceProcess.ServiceController: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Speech: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Text.Encoding.CodePages: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.Threading.AccessControl: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)
  - System.ComponentModel.Composition.Registration: from 9.0.0-preview.5.24265.2 to 9.0.0-preview.5.24275.1 (parent: Microsoft.Private.Winforms)

 - Merge remote-tracking branch 'upstream/main' into darc-main-e4fca629-cb58-4468-8df8-4f57313cc672

 - Fix setting of RuntimeFrameworkVersion

`TargetFrameworkIdentifier` should not be used in props files since it
is not set this early.  There was also a problem with the unsetting
condition using >= rather than <.  That can be removed if we refactor
the setting to happen in the targets file.

 - Fix Platform for System.Xaml.Tests

Platform was set to Win32 rather than x86.
2024-05-28 21:07:37 +00:00
Harshit fb28902a8f
Windows 11 Theming Changes (#8870)
* Adding Win11 styles

* Working code - Window and Theming API changes.

* Cleanup - Removing WindowCornerPreference and minor refactoring

* Moving types from public to internal + bug fix for Window caption

* Moving types from public to internal

* Added Menu.xaml.cs to address x:Class attribute in Menu.xaml

* Fix namespaces and assembly names, added textbox xaml

* Changed x:Class attribute value (#8607)

* Adding win11 styles to RichTextBox and Separator (#8581)

* Adding win11 styles to RichTextBox and Separator

* Changed the IsReadOnly flag to "False"

* Fixed win11 theming changes for ListView and ListViewItem (#8629)

* Added win11 styles for ListView and ListViewItem

* Updated header information and namespace for controls : Calendar, DataGrid, DatePicker, Expander, MenuItem, RichTextBox, ScrollBar, ScrollViewer, Separator

Removing unwanted references

* Added null check here on CanExecuteChanged to avoid exception (#8619)

* Adding Win11 Styles to Combo box (#8593)

* Added win11 styles to ComboBox

* Removed TranslateTransform from ComboBox's border

* Removing unused references

* Resolving Merge Conflicts

Resolving Merge Conflicts

Removing IconProperty Reference

* Import xaml styles in the integrated styles page

* Moving ThemesDictionary and ControlsDictionary to parent namespace

* Update ApplicationThemeManager.cs to use correct namespace

* Add missing FontIcon and ImageIcon classes

* Fix for fall back colours for high contrast theme

* Making SymbolExtensions internal

* Removing extra properties for ribbon

* fix(win11theme): ExpandDirection not respected in expander

* Fix(win11theme): TabStripPlacement not Respected in tabcontrol

* Import FluentWindow and TitleBar

* Adding win11 styles to PasswordBox (#8612)

* Added TextBox styles

Todo:
Clear button not showing up

* Added styles for PasswordBox

Todo:
Reveal button functionality not supported

* fix(win11theming): Ally and Navigation Issues in DataGrid

* Fix(Win11Theming): Adding RepeatButton Styles

* Add(Win11Theming): Bold, Italics, Underline, Floater and Paragraph Styles

* Add(Win11Theming): DocumentViewer, Hyperlink, List, ResizeGrip and Thumb Styles

* Add(Win11Theming): ContentControl, GridSplitter, GroupBox, GroupItem and HeaderedContentControl Styles

* Add(Win11Theming): Border, ButtonBase, Control, ItemsControl, TextBoxBase, UserControl Styles

* Add(Win11Theming): NavigationWindow Styles

* Fixing margins in TreeViewItem

* Fix for Mica style dropping on theme change

* Fix(Win11Theming): TextBlock Foreground and FontIcon Issue

* Fixed Border linear gradient for TextBox and PasswordBox

* Fix(Win11Theming): MenuItems Dark Theme Visibility

* Fix(Win11Theming): TextBlock Foreground and FontIcon Issue

* Fix(Win11Theming): Menu Foreground Issue

* Fix(win11theming): MenuBar hover highlighting

* Fix(win11theming): MenuItems hover highlighting

* Fix(Win11Theme): Add PasswordBox Styles to Resource Dictionary

* Update resources on theme change

* Accent Updates in SystemResources.cs

Signed-off-by: Ashish Kumar Singh <singhashish@microsoft.com>

* Refactoring accent colorization part

* Changing Accent Color and Theme

* Remove use of WinDef classes

* Fix (Win11Theming): MainWindow does not load with latest system themes (Accent Colors, Background and System Theme)

* Fix (win11theming): Delayed theme change (Optimizing theme change time)

* Removed Button.Appearance and introduced Accent Button Style

* Made extra converters internal

* Enabling High Contrast Switching

* Fix(win11theming): dark theme not working properly

* Update(Win11Theming): Changing access type of non-essential methods to internal

* Removed all chromes from Win11 styles

* Removed SystemDropShadowChrome from Win11 style

* Remove extra properties from PasswordBox

* Removed extra public API changes in TextBox and RichTextBox

* Made ClearButtonEnabled property internal in TextBox

* Removed ContextMenu and Menu code-behind

* Made extra methods internal in TextBox

* Refactor(Win11Theming): Reusing currentTheme component and minor fixes

* Fix(Win11Theming): Removing unused SystemThemeManager and SystemTheme references

* Removed IsTextSelectionEnabled from RichTextBox

* Making DataGridCheckboxColumn Style property internal

* Revert "Removed ContextMenu and Menu code-behind"

This reverts commit c7df285fdf.

* Removed ContextMeny and Menu Style code behinds

* Removed RelayCommands and WindowCornerPreference

* Code Cleanup and Removal of ControlsDictionary

* Fix(Win11Theming): Adding Opt-in for New styles and controls

* Removing unused ObservedWindow class

* Removed FluentWindow and made WindowBackdrop internal. Fixed RTB CM

* Fix(Win11Theming): Build Failure and High Contrast Switching

* Removing Files/Classes not being compiled

* Remove TitleBar and FluentWindow

* Fix(Win11Theming): CheckBox Design Issues

* Fixed gradient for border brush

* Fix(Win11Theming): Removal of unused RDM, changing requested method name, and code refactoring

* Removed extra classes and replaced FontIcon with TextBlock

* Removed color extension and fixed CheckBox style

* Fix(Win11Theming): Discarded need for using theme dictionary i app.xaml while not being respected and minor fixes

* Removed DisplayDpi and fixed icon animations

* Remove unused styles and methods

* Fix(Win11Theming): Get Exact Accent color variations
  
* Removed placeholder from the controls

* Removed unnecessary code

* Removed extra files and renamed AppInitNewTheme flag

* Fix(Win11Theming): Updated Common xaml resources to support exact accent colors

* Removed some files and renamed some methods

* Fix(Win11Theming): Accent Button incorrect styles

* Removed some extra code from styles

* Fixed calendar header font weight

* Revert "Fixed calendar header font weight"

This reverts commit bf57add01d.

* Merge branch 'CompleteWin11Changes' of https://dev.azure.com/dnceng/internal/_git/dotnet-wpf into CompleteWin11Changes

* Fix(Win11Theming): ListBox Design Issues

* Fix(Win11Theming): Progress Bar's Color Issues

* Fix(Win11Theming): ProgressBar Design Issues

* Fixed RadioButton disabled state colour

* Fix(Win11Design): RadioButton and Checkbox Design Issues

* Fix(Win11Theming): Checkbox Glyph Design Issues

* Candidate Fix for Button Design Issues

* Fix(Win11Theming): Removing Extra Border

* Fix(Win11Theming): Dark accent button background color

* Fix(Win11Theming): Disbaled Button Design Issues

* Extended application based theme switching

* Updating Theme name

* Fix: Dictionary paths

* Remove hard-coded reference

* Removing unused Acrylic References

* Unsubscribing the Loaded handler for applying window backdrop and glass frame

* Update src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DWMColorization.cs

Co-authored-by: lindexi <lindexi@users.noreply.github.com>

* Fixing ProgressBar's incorrect brush assignment

* Adding a fallback if appsuselightthemekey is not present

* Replacing the highcontrast detection

* Addressing PR Review Comments :
1. Removed Fonts and Pallete resources
2. Fixed Slider styling
3. Removed extra structs from DwmAPI

* Change : Removed Dwmapi.cs and merged it with NativeMethods

* Removing fallback accent color variation calculation logic and assigning fixed values

* Refactoring WindowBackdrop and removing undocumented APIs (#21)

* Trimmed WindowBackdrop code

* Removed undocumented DWMWA APIs

* Fixed theme apply in child windows

* Changes : Reverting decoupling of backdrop and background
2. Updated check to AllowsTransparency for applying backdrop
3. Refactored ThemeColorization

* Fixed HighContrast and other review comments

* Removing unused dwColorSetIndex and updating default value of dwmValue

* Changing GetColorFromPreference arguments

* Changing the system accent color to get value from IMCLR_SystemAccent

* Fixing Typo

* Addressing Review Comments - Part 4 (#23)

* Moved Clear command to Editing commands

* Added DwmSetWindowAttribute* methods and refactoring

* Removed ByteColor struct

* Fixed DwmColorization ParseDWordColor

* Fixed datagrid checkbox column styling

* Renamed WindowBackdropType enum values

* Remove button from PasswordBox

* Replaced sizeof with Marshal.SizeOf

* Fix Border Highlight color on focus

* Fix Progress Bar Tracker Height and Color Issues

* Update Accent color for some controls in Dark mode

* Fix MenuFlyout Issues

* Slider accent color and ticks fix

* Added animations for mouseover and pressed feedback

* Fixes review comments - Refactoring (#25)

* Refactored WindowBackdrop, BackgroundManager, ThemeColorization

* Fix Window implicit style and Textblock inheritence

* Moved WindowBackdrop to OnSourceInitialized and added app context switch for disabling backdrop

* Initial Accent Color update fix

* Added initialization in ThemeManager. Added comments

* Added UISettings to handle accent color fetching (#34)

* Added UISettings RCW

* Made UISettings handle fallback

* Fixes UISetting Initialization

* Renamed style names (#40)

Co-authored-by: dipeshmsft <dipeshkumar@microsoft.com>

* ListBox and Slider Design Fix (#41)

* Updating ListBox design

* Fixed Slider selected range

* Fixing ListBox style colors

* Fixing selected range offset issue

---------

Co-authored-by: Rishabh Chauhan <rchauhan@microsoft.com>
Co-authored-by: dipeshmsft <dipeshkumar@microsoft.com>

* Updatating OS version check

---------

Co-authored-by: dipeshmsft <dipeshkumar@microsoft.com>

* Removed extra MenuItem styles (#43)

* Made Font Names Dynamic (#45)

* Removed TextBlock Style (#44)

* Added comments for new default font size

* Modified control elevation brush and button style (#46)

* Fix control elevation brush (#47)

* Renaming the theme to Fluent (#38)

* Correcting FluentWindows path of fonts file

---------

Co-authored-by: dipeshmsft <dipeshkumar@microsoft.com>

---------

Signed-off-by: Ashish Kumar Singh <singhashish@microsoft.com>
Co-authored-by: Ashish Kumar Singh <SINGHASHISH@MICROSOFT.COM>
Co-authored-by: Pankaj Chaurasia <pchaurasia@microsoft.com>
Co-authored-by: Anjali <anjalisheel@microsoft.com>
Co-authored-by: dipeshmsft <dipeshkumar@microsoft.com>
Co-authored-by: Rishabh Chauhan <rchauhan@microsoft.com>
Co-authored-by: lindexi <lindexi@users.noreply.github.com>
Co-authored-by: Dipesh Kumar <85861525+dipeshmsft@users.noreply.github.com>
Co-authored-by: Rishabh Chauhan <107022063+rchauhan18@users.noreply.github.com>
2024-04-19 18:59:28 +05:30
Hugh Bellamy bde0f12d20
Add Windows.Markup tests (#138)
* Add System.Xaml.Tests project
2023-09-06 10:39:58 +05:30
Ashish Kumar Singh eaee9fea7d Don't include d3dcompiler_47.dll on ARM64. 2021-11-29 18:05:17 +05:30
Ryland 007a7e8424
WPF support for ARM64: WPF public repo project updates and final source fixes (#4049)
* WPF support for ARM64: WPF public repo project updates and final source fixes

Co-authored-by: Alexandre Zollinger Chohfi <alzollin@microsoft.com>
Co-authored-by: Marcpems <marcpe@microsoft.com>
Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com>
Co-authored-by: Ryland <41491307+ryalanms@users.noreply.github.com>

* PR Feedback

Co-authored-by: Alexandre Zollinger Chohfi <alzollin@microsoft.com>
Co-authored-by: Marcpems <marcpe@microsoft.com>
Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com>
Co-authored-by: Ryland <41491307+ryalanms@users.noreply.github.com>

* Add Juan's sln fix for ARM64 platform

Co-authored-by: Alexandre Zollinger Chohfi <alzollin@microsoft.com>
Co-authored-by: Marcpems <marcpe@microsoft.com>
Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com>
Co-authored-by: Ryland <41491307+ryalanms@users.noreply.github.com>
2021-01-21 19:47:09 -08:00
Robert LaDuca edbd9e2968 Renormalizing 2020-03-05 17:13:16 -08:00
Vatsan Madhavan 1ffbd30a58 Add a redist project for PresentationNative 2020-02-11 15:14:36 -08:00
Vatsan Madhavan c516feedbd Add projects and update sln/vcxproj 2020-02-11 15:14:19 -08:00
Vatsan Madhavan 19f4cfd6d6 Add PenImc and Redist projects 2020-02-11 15:14:04 -08:00
Vatsan Madhavan b20dc4c4e2
Add support for publishing Debug packages separately (#2521)
* Ad $(Debug) suffix to packages when $(Configuration) == Debug. Enable publishing packages in debug builds.

* Temporarily remove test projects from build - they require updaed Microsoft.DotNet.Wpf.DncEng.Debug packages which are not ready yet.

* Add platform suffix to log folder

* Evaluate $Configuration during target execution.
2020-02-07 22:49:09 -08:00
Steven Kirbach c271205b80
Open Sourcing more WPF assemblies (#1576)
* adding other assemblies

* removing unknown character

* adding apicompat baselines

* updating themes projects and licenses

* fixing markup compilation

* addign PresentationUI

* adding WindowsFormsIntegration

* updating solution to add WindowsFormsIntegration

* add WindowsFormsIntegration-ref project to sln

* adding PresentationUI ref project

* reverting line ending change

* adding comment to describe changes to pbt.targets

* fixing solution

* adding PresentationUI-ref to sln

* adding deploy configs for System.Printing and DirectWriteForwarder

* undo change to make everyone happy

* Couple of conditions were wrong in two targets, preventing them from running correctly and calculating NetCoreReference values during reference-evaluation. Fixing the conditions fixes the evaluation of NetCoreReferences during builds.
2019-08-09 09:41:37 -07:00
Rob LaDuca 422c8df558
Convert C# Reference Assembly Generation to Use GenAPI (#1057)
* Adding DARC dependency for Microsoft.DotNet.GenAPI and updating

* Version updates, adding basic target

* Enabling GenAPI to generate sources for all applicable assemblies.
Disabling use of ProduceReferenceAssembly across the codebase.

* Adding PBT to GenAPI project list.

* Initial build targets for GenAPI and generated reference assembly projects.

* Reverting to projects explicitly declaring their needed PackageReferences.  Otherwise we can potentially import at incorrect times, overriding various values from the WpfArcadeSdk.

* Adding additional GenAPI params.

* Switching to generate the reference assembly project via a task using the runtime assembly's project as a template.  Based on PBT's GenerateTemporaryTargetAssembly.

* Adding project exclusions for WIndowsBase

* Turning off XLIFF generation for reference assemblies.
Removing EmbeddedResources from reference assemblies.

* Removing module initializer injection from PCore-ref

* Removing CompileDependsOn from PFramework-ref

* Removing disabling of default compile items to pickup the generated reference sources.

* Adding global API exclusions file.

* Removing further default excludes.

* Adding initial exclusions and NoWarns based on building.

* Initial change to manual reference assembly projects.
File dumping the initial generated code and projects.

* Modifications to build System.Xaml-ref.
Changes to ensure that reference assembly projects are properly bin placed into the ref pack.

* Fixing issues with checks against hand ref assembly property.
Adding WindowsBase reference assembly.

* Adding UIAutomationTypes reference assembly

* Adding reference project for UIAutomationProvider

* Adding UIAutomationClient ref project

* Removing workaround for WindowsBase GenAPI issue and adding back manually fixed output for WindowsBase reference assembly.

* Adding UIAutomationClientSideProviders reference project.

* Adding System.Windows.Input.Manipulations reference project

* Adding PresentationBuildTasks reference project

* Adding PresentationCore ref project.

* Cleaning up PresentationCore ref assembly and adding exclusion notes.

* Adding security attributes to exclusions

* Fixing exclusion list

* Fixing exclude param

* Fixing attribute exclusions to match CoreFX.
Fixing cmd line params to GenAPI.

* Applying new exclusions to ref assembly code and fixups

* Cleaning UIA assemblies and updating code with latest exclusions.

* New exclusions and cleanup

* PBT cleanup and new exclusions

* New exclusions and fixups for PCore ref assembly

* Adding ReachFramework ref project and cleaning.

* Adding PresentationFramework reference assembly and fixups.

* Removing any extraneous ProjectReferences from reference assembly projects.  Anything that is not itself a reference assembly was removed.

* Adding back assembly attributes to ref assemblies where applicable.
Fixing PresentationFramework-ref to use private copy of asm attributes due to internals dependency.

* Removing PBT reference assembly as we're not shipping one anymore.

* Further removing PBT-ref

* Adding the ReferenceAssemblyAttribute to all hand-crafted ref assemblies.

* Removing no longer applicable tasks

* Fixing an issue with incorrect signing of System.Xaml.

* Enable ApiCompat against new ref assemblies.
Fixing ApiCompat issues with PCore and re-baselining.

* PresentationFramework ApiCompat baseline

* ReachFramework ApiCompat baseline

* System.Windows.Input.Manipulations ApiCompat baseline

* UIA ApiCompat baselines

* Fixing removal of ObsoleteAttribute and ApiCompat baseline for System.Xaml

* ApiCompat baselines for WindowsBase

* Updating WindowsBase ApiCompat baseline.

* Adding back attributes that were removed incorrectly.

* Fixing missing attributes

* Fixing missing attributes on reachframework

* Updating PCore baselines and adding back missing attrs

* PresentationFramework fixup + baselines

* Fixing ApiCompat bugs

* Re-baselining with ApiCompat fixes and removing old, no longer applicable baseline files.

* Updating reference assemblies due to System.Security.Permissions changes.

* Fixing up ResolveMicrosoftDotNetWpfGitHubReferences so that dotnet_wpf_int references lib assemblies instead of ref assemblies from the GitHub package.

* Fixing up ApiCompat for C++\CLI vs C# runtime projects.

* Fixing PackageRefernece for RID specific MicrosoftDotNetWpfGitHubPackageso that it doesn't get added when the package isn't defined (building in the open).

* Adding dotnet-wpf-int ref assemblies to signing and apicompat.

* Cleaning up reference assembly generation.
Fixing Intellisense XML placement.

* Add back internals to support XAML compilation.
2019-06-24 13:29:56 -07:00
Vatsan Madhavan 9271e6e34a
Incorporate Intellisense XML into ref-assembly nuget packages (#979) 2019-06-19 11:35:38 -07:00
Steven Kirbach 628e8f129d
Adding initial Helix support (#802)
* adding initial helix support

note: this definitely won't work, it's just some basic initial infrastructure for us to build on once we have a better idea of what to do

use dummy HelixWorkItem initially

updating pipeline.yml

fix Release only condition

* move to using Microsoft.DotNet.Wpf.DncEng.Test package name

* Add target queues

* run test in powershell script

* updating dependencies and removing workaround

* adding documentation

* reverting dependency update

* switching back to true DrtXaml

* prepare helix payload with DRT

* add source link for deterministic source path issue

* remove explicit platform and extra file added

* fixing up targets/props so we can build with -test

* tests properly running and reporting results

* a little cleaning up

* fix creating payload directory

* put test directory back to how it is when restoring via msbuild

* updating dependencies

* adding all helix queues

* running tests with build -test

this creates the payload as part of msbuild

* fixing DrtXaml

This is very close, we are just missing native wpf assemblies from being added to the deps.json

* don't use publish

* updating documentation

* fixing typo

* responding to pr feedback

* updating injectmoduleinitializer

* fix batching

* add back workaround for missing WindowsDesktop

* add WindowsDesktop package to payload for CI builds

QualityVault and STI require the WindowsDesktop package

* ensure ResolveFrameworkReferences actually works

* workaround no windowsdesktop install on helix machine

* updating developer documentation

* allow for looking outside of local dotnet install

* Suppress all GUI from IL(D)Asm calls. (#877)

* Suppress all GUI from IL(D)Asm calls.

* Don't generate ref assemblies for WPF extension assemblies (#879)

* Update dependencies from https://github.com/dotnet/arcade build 20190605.13 (#883)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19305.13
- Microsoft.DotNet.CodeAnalysis - 1.0.0-beta.19305.13

* Update dependencies from https://github.com/dotnet/core-setup build 20190605.02 (#884)

- Microsoft.NETCore.App - 3.0.0-preview7-27805-02

Dependency coherency updates

- Microsoft.Win32.Registry - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.CodeDom - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Configuration.ConfigurationManager - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Diagnostics.EventLog - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.DirectoryServices - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Drawing.Common - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Reflection.Emit - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Reflection.MetadataLoadContext - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Security.AccessControl - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Xml - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Security.Permissions - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Security.Principal.Windows - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Windows.Extensions - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.Platforms - 3.0.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.IO.Packaging - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.ILDAsm - 3.0.0-preview7.19305.2 (parent: Microsoft.NETCore.Runtime.CoreCLR)
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview7.19305.2 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.ILAsm - 3.0.0-preview7.19305.2 (parent: Microsoft.NETCore.Runtime.CoreCLR)
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview7.19305.2 (parent: Microsoft.NETCore.App)

* Update dependencies from https://github.com/dotnet/winforms build 20190605.1 (#885)

- Microsoft.Private.Winforms - 4.8.0-preview7.19305.1

* Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int build 20190605.10 (#886)

- Microsoft.DotNet.Wpf.DncEng - 4.8.0-preview7.19305.10

* Remove workaround for https://github.com/dotnet/corefx/issues/32641. (#882)

* upload drt results in helix run

* adding initial helix support

note: this definitely won't work, it's just some basic initial infrastructure for us to build on once we have a better idea of what to do

use dummy HelixWorkItem initially

updating pipeline.yml

fix Release only condition

* move to using Microsoft.DotNet.Wpf.DncEng.Test package name

* Add target queues

* run test in powershell script

* updating dependencies and removing workaround

* adding documentation

* reverting dependency update

* switching back to true DrtXaml

* prepare helix payload with DRT

* add source link for deterministic source path issue

* remove explicit platform and extra file added

* fixing up targets/props so we can build with -test

* tests properly running and reporting results

* a little cleaning up

* fix creating payload directory

* put test directory back to how it is when restoring via msbuild

* updating dependencies

* adding all helix queues

* running tests with build -test

this creates the payload as part of msbuild

* fixing DrtXaml

This is very close, we are just missing native wpf assemblies from being added to the deps.json

* don't use publish

* updating documentation

* fixing typo

* responding to pr feedback

* updating injectmoduleinitializer

* fix batching

* add back workaround for missing WindowsDesktop

* add WindowsDesktop package to payload for CI builds

QualityVault and STI require the WindowsDesktop package

* ensure ResolveFrameworkReferences actually works

* workaround no windowsdesktop install on helix machine

* updating developer documentation

* allow for looking outside of local dotnet install
2019-06-06 13:42:22 -07:00
Rob LaDuca 09f602b554
Remove PresentationCore-CommonResources and move composite fonts to PresentationCore (#794)
* Add back composite font files as resources in PresentationCore

* Remove use of PresentationCore-CommonResources in loading composite font files.

* Removing PresentationCore-CommonResources as it's no longer needed.
2019-06-04 16:45:11 -07:00
Ryland c20b856ea5
Add extension assemblies to WPF solution (#795) 2019-05-30 13:15:31 -07:00
Vatsan Madhavan ae1790531c
Add WindowsBase, PresentationCore, PresentationFramework (+more) sources (#720)
Add PresentationFramework, PresentationCore, WindowsBase, DirectWriteForwarder sources, along with sources for allied assemblies
2019-05-22 14:08:14 -07:00
Vatsan Madhavan d79e015eb2
RuntimeFrameworkVersion enablement - final step (test projects) (#711)
With this change, System.Xaml tests actually build and run against System.Xaml!
2019-05-20 12:14:10 -07:00
Steven Kirbach fc1f9df17c
Dev/stevenki/port analyzers and system xaml (#517)
* moving analyzers to targets files

* Merged PR 596: Add analyzers for System.Xaml

I started with System.Xaml, since I'm planning on moving some of these changes to GitHub.

Currently only enabled for System.Xaml project. Below is the logic behind how we should suppress rules:

1. Any rules we want suppressed globally, get suppressed in CodeAnaysis.ruleset by setting Action to "None"
2. Any rules that are enabled but require certain suppressions, should be suppressed in GlobalSuppressions.cs
3. Any suppressions that we want to fix, but won't for the 3.0 release due to compat concerns, should be suppressed inline.

Currently globally suppressed rules:
[CA1307](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1307-specify-stringcomparison?view=vs-2017)
[CA1305](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1305-specify-iformatprovider?view=vs-2017)
[CA2235](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2235-mark-all-non-serializable-fields?view=vs-2017)
[CA1822](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1822-mark-members-as-static?view=vs-2017)
[CA1801](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1801-review-unused-parameters?view=vs-2017)
[CA1812](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1812-avoid-uninstantiated-internal-classes?view=vs-2017)
[CA1304](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1304-specify-cultureinfo?view=vs-2017)

Also some changes to help make building out of VS possible. While this still doesn't work, we can now at least do a nuget restore.

Added a .editorconfig file that matches the CoreFX one.

* adding suppressions and fixing version.details.xml

* removing accidental comment

* ensuring that throw argument null exception before calling ValidateGetter/Setter
2019-04-08 15:19:06 -07:00
Steven Kirbach efc7d0bb88
reverting completing of PR (#516) 2019-04-06 15:18:24 -07:00
Steven Kirbach c59b4511af Merged PR 596: Add analyzers for System.Xaml
I started with System.Xaml, since I'm planning on moving some of these changes to GitHub.

Currently only enabled for System.Xaml project. Below is the logic behind how we should suppress rules:

1. Any rules we want suppressed globally, get suppressed in CodeAnaysis.ruleset by setting Action to "None"
2. Any rules that are enabled but require certain suppressions, should be suppressed in GlobalSuppressions.cs
3. Any suppressions that we want to fix, but won't for the 3.0 release due to compat concerns, should be suppressed inline.

Currently globally suppressed rules:
[CA1307](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1307-specify-stringcomparison?view=vs-2017)
[CA1305](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1305-specify-iformatprovider?view=vs-2017)
[CA2235](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2235-mark-all-non-serializable-fields?view=vs-2017)
[CA1822](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1822-mark-members-as-static?view=vs-2017)
[CA1801](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1801-review-unused-parameters?view=vs-2017)
[CA1812](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1812-avoid-uninstantiated-internal-classes?view=vs-2017)
[CA1304](https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1304-specify-cultureinfo?view=vs-2017)

Also some changes to help make building out of VS possible. While this still doesn't work, we can now at least do a nuget restore.

Added a .editorconfig file that matches the CoreFX one.
2019-04-05 14:22:47 -07:00
ryalanms e25cd6b620
[netcore3] Open source PresentationBuildTasks (#504)
* Add files needed for PresentationBuildTasks

* Synchronize files

* Adding PresentationCore files

* Add <Link> tags to organize csproj

* Add README files

* Add WindowsDesktop Sdk project files

* Add WindowsDesktop Sdk to solution

* PresentationBuildTasks: PoliCheck, sss.exe (sanitize), and codeformatter with customer rules + manual scrub for aliases, bugs, todos

* Update ShippingProjects.props

* Add changes to contribution.md with info about analyzers

* Update README.md's for shared files
2019-04-05 12:34:59 -07:00
Vatsan Madhavan 14ce9170ad
Make C# Project template identical to .NET Framework's template (#497)
Fixed #497
2019-04-05 10:15:46 -07:00
Vatsan Madhavan a48d98b2b0
Project template for WPF (#489)
* Add WPF project template
2019-04-03 21:49:42 -07:00
Vatsan Madhavan 031b79d9ae
Onboarding new build infrastructure (#473)
This PR onboards a new shared build infrastrucutre - primarily props + targets - that are shared between this repo and WPF's internal build.
2019-03-28 12:06:32 -07:00
Steven Kirbach 35fc9697cc initial commit of system.xaml 2018-11-12 11:16:08 -08:00