Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package Windows Forms analyzers #1693

Merged
merged 3 commits into from
Jul 29, 2021
Merged

Package Windows Forms analyzers #1693

merged 3 commits into from
Jul 29, 2021

Conversation

RussKie
Copy link
Member

@RussKie RussKie commented Jun 2, 2021

Unblocks: dotnet/winforms#5035

Inbox Windows Forms analyzers into Windows Desktop SDK as per https://github.com/dotnet/designs/blob/main/accepted/2021/InboxSourceGenerators.md

  • The analyzers and source generators come from a Windows Forms transport package built and packaged by https://github.com/dotnet/winforms/tree/main/pkg/Microsoft.Private.Winforms project. The analyzers are placed under .\sdk\analyzers folder, so that when the transport package is ingested the analyzers would not get imported by the ingesting projects (e.g. this project or dotnet/wpf).

  • Add validation to verify the Windows Forms transport package contains the required content.

  • And while at it, update the way the Windows Forms file classifications are referenced.

  • Windows Forms transport package (published to general-testing-internal feed)
    image

  • Windows Desktop package
    image

  • End result:
    image

@RussKie RussKie marked this pull request as draft June 2, 2021 11:54
@vatsan-madhavan
Copy link
Member

Would you be able to upload copies of generated NuGet packages we can take a peek at?

@vatsan-madhavan
Copy link
Member

/cc @ryalanms @SamBent

@RussKie
Copy link
Member Author

RussKie commented Jun 3, 2021

Would you be able to upload copies of generated NuGet packages we can take a peek at?

I'm getting close to opening a PR in dotnet/winforms that will contain all of this. I'll ping back.

@RussKie
Copy link
Member Author

RussKie commented Jun 3, 2021

@RussKie

This comment has been minimized.

Inbox Windows Forms analyzers into Windows Desktop SDK as per
https://github.com/dotnet/designs/blob/main/accepted/2021/InboxSourceGenerators.md

The analyzers and source generators come from a Windows Forms transport
package built and packaged by https://github.com/dotnet/winforms/tree/main/pkg/Microsoft.Private.Winforms
project. The analyzers are placed under .\sdk\analyzers folder, so that
when the transport package is ingested the analyzers would not get imported
by the ingesting projects (e.g. this project or dotnet/wpf).

Add validation to verify the Windows Forms transport package contains the
required content.

And while at it, update the way the Windows Forms file classifications
are referenced.
@RussKie RussKie self-assigned this Jul 28, 2021
@RussKie RussKie marked this pull request as ready for review July 28, 2021 12:45
@AraHaan
Copy link
Member

AraHaan commented Jul 28, 2021

Wait so that is the structure of those Sdk's? 🤔

@RussKie
Copy link
Member Author

RussKie commented Jul 28, 2021

You can see the structure in

  • runtime C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App
  • ref pack: C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref

dotnet-maestro bot and others added 2 commits July 29, 2021 06:41
Microsoft.DotNet.Wpf.GitHub , Microsoft.DotNet.Wpf.ProjectTemplates , Microsoft.NET.Sdk.WindowsDesktop
 From Version 6.0.0-rc.1.21378.4 -> To Version 6.0.0-rc.1.21378.6

Dependency coherency updates

Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Private.Winforms,Microsoft.Dotnet.WinForms.ProjectTemplates
 From Version 6.0.0-rc.1.21378.3 -> To Version 6.0.0-rc.1.21378.7 (parent: Microsoft.DotNet.Wpf.GitHub
…7-607a64fca6a0' into inbox_Windows_Forms_analyzers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants