Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Update AddDesktopProperties to add desktop props for all project styles #399

Merged
merged 1 commit into from
May 13, 2021

Conversation

mjrousos
Copy link
Member

A customer ran into an issue where an MSTest project with references to PresentationFramework and PresentationCore wasn't getting a UseWPF property during conversion.

This PR updates AddDesktopProperties to allow adding desktop properties for any project styles (not just Windows desktop ones) since other project types (MSTest, for example) could have WPF or WinForms dependencies and benefit from the desktop properties.

I've tried to think through if there's any reason we wouldn't want these properties in projects that didn't evaluate to WindowsDesktop project style (which I think will only be MSTest or Custom projects since those are the ones that are checked before desktop currently) and I can't think of anything. Let me know if you can think of any cases where we wouldn't want these added.

@mjrousos
Copy link
Member Author

@cartermp @twsouthwick

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good to me.

@cartermp cartermp merged commit 35173c0 into dotnet:main May 13, 2021
@cartermp
Copy link
Contributor

I will spin up a new release today as well.

@cartermp
Copy link
Contributor

Release created, package uploaded and indexing. Should be good to go within a few mins: https://github.com/dotnet/try-convert/releases/tag/v0.7226301

@mjrousos
Copy link
Member Author

Awesome; thanks for the quick turnaround, @cartermp!

@mjrousos mjrousos deleted the mjrousos/desktop-props branch May 13, 2021 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants