winforms/pkg/Microsoft.Private.Winforms
Jeremy Kuhne acbf8ade62
Add System.Private.Windows.Core to ref (#10673)
As nothing is actually visible in this assembly we were trying to leave it out of the ref package. C# needs the types to be there when it compiles interface casts. This adds the assembly to the ref and excludes looking for intellisense files.
2024-01-16 14:15:46 -08:00
..
sdk Add System.Private.Windows.Core to ref (#10673) 2024-01-16 14:15:46 -08:00
Directory.Build.targets Pin assembly versions to prevent revving those in servicing releases (#6668) 2022-02-15 16:02:08 +11:00
Microsoft.Private.Winforms.csproj Prototype shared CsWin32 with System.Drawing.Common (#10525) 2024-01-04 14:56:41 -08:00
README.md Prototype shared CsWin32 with System.Drawing.Common (#10525) 2024-01-04 14:56:41 -08:00

README.md

Overview

This is a transport package consumed by WPF and WindowsDesktop. Some packaging configurations are defined in this project, and others are defined in <repo root>\eng\packageContent.targets.

sdk\dotnet-windowsdesktop folder

This folder contains props and targets used to ingest our assemblies into the Windows Desktop SDK for purpose of bundling of our analyzers into Microsoft.WindowsDesktop.App.Ref pack.

How to update System.Windows.Forms.FileClassification.props

The existing System.Windows.Forms.FileClassification.props is be compared against the list of assemblies in Microsoft.Private.Winforms.[version].nuspec² generated as part of the pack command.

If the content of these files differ - the build will fail.

⚠️ The process is purposefully made manual to ensure changes in the manifest are made consciously.

To update the manifest run the following command and check in the updated files manifest:

.\build.cmd -pack /p:_GenerateManifest=true

To debug the script run the following command:

dotnet build .\pkg\Microsoft.Private.Winforms\Microsoft.Private.Winforms.csproj /t:UpdateTransportPackage /p:_GenerateManifest=true /v:m /bl /p:CommonLibrary_NativeInstallDir=$env:UserProfile\.netcoreeng\native\

sdk\dotnet-wpf folder

This folder contains props and targets that are part of Windows Desktop SDK (which is hosted and assembled in dotnet/wpf). These files are referenced the Microsoft.NET.Sdk.WindowsDesktop project's props and targets located here. When this project is being built, it copies the files from our transport NuGet package to a Microsoft.NET.Sdk.WindowsDesktop bundle.




1. Except for Accessibility.dll which is noted explicitly.

2. Generated in .\winforms\artifacts\obj\Microsoft.Private.Winforms\[Debug|Release].