-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add Profile for System.Private.Windows.Core #4366
Conversation
resolve dotnet/winforms#11282 |
@@ -64,7 +64,7 @@ | |||
<FrameworkListFileClass Include="System.Windows.Forms.Primitives.resources.dll" Profile="WindowsForms" /> | |||
<FrameworkListFileClass Include="System.Windows.Forms.resources.dll" Profile="WindowsForms" /> | |||
<FrameworkListFileClass Include="System.Windows.Input.Manipulations.resources.dll" Profile="WindowsForms" /> | |||
<FrameworkListFileClass Include="System.Private.Windows.Core.dll"/> | |||
<FrameworkListFileClass Include="System.Private.Windows.Core.dll" Profile="WindowsForms" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you confirm that setting this value will work in a publish setting? Perhaps by manually adding this to the RuntimeList.xml on an older runtime pack?
I made this request because adding a profile to System.Private.Windows.Core.dll
in #4227 caused an issue with publishing. But I checked with the current SDK and this no longer causes any issues. There is a SDK test that tests publishing WinForms in a self-contained mode but does not run.
Thanks for fixing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I had tried this and see that System.Private.Windows.Core.dll is now included in publish folder when publishing self contained winforms app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/backport to release/9.0-preview4 |
@lonitra Are you handling this backport? |
Adding profile to System.Private.Windows.Core as it is for winforms only
This file was added in #4227 but System.Private.Windows.Core is missing a profile, which will cause code added in dotnet/sdk#39402 to filter out this assembly from the runtime pack when publishing self contained