Skip to content

added validation of the resource list for winforms and .Design assemblies#8393

Merged
Tanya-Solyanik merged 2 commits intodotnet:mainfrom
Tanya-Solyanik:test-resources
Dec 20, 2022
Merged

added validation of the resource list for winforms and .Design assemblies#8393
Tanya-Solyanik merged 2 commits intodotnet:mainfrom
Tanya-Solyanik:test-resources

Conversation

@Tanya-Solyanik
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik commented Dec 15, 2022

Ensure that we do not add any unexpected resources.

Removed test that validated presence of manifest because it's superseded by the test that matches available resources against the expected list.
Expected lists are dumped out from assemblies before the change that introduced regular expressions to the project files.

Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned Tanya-Solyanik Dec 15, 2022
@elachlan
Copy link
Contributor

LGTM! Only suggestion would be if we can maintain the lists of icons, cursors, and manifest separately. Then use them in the other tests as well as this new test. That way we reduce the duplicated data.

@ghost ghost added the draft draft PR label Dec 16, 2022
@Tanya-Solyanik
Copy link
Contributor Author

Then use them in the other tests as well as this new test.

Thank you, good idea! This list is easier to dump and update than to match inline data to file names! This is how I tested your fix. I was going add the same to .Design assembly, where the list is generated off version before your change.

@Tanya-Solyanik Tanya-Solyanik changed the title added validation of the resource list for winforms assembly added validation of the resource list for winforms and .Design assemblies Dec 19, 2022
@Tanya-Solyanik Tanya-Solyanik marked this pull request as ready for review December 19, 2022 21:11
@Tanya-Solyanik Tanya-Solyanik requested a review from a team as a code owner December 19, 2022 21:11
@elachlan
Copy link
Contributor

LGTM! This is great!

@Tanya-Solyanik Tanya-Solyanik added waiting-review This item is waiting on review by one or more members of team and removed draft draft PR labels Dec 19, 2022
Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

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

🚀

@lonitra lonitra added the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Dec 20, 2022
@Tanya-Solyanik Tanya-Solyanik merged commit b97494e into dotnet:main Dec 20, 2022
@Tanya-Solyanik Tanya-Solyanik deleted the test-resources branch December 20, 2022 20:44
@ghost ghost added this to the 8.0 Preview1 milestone Dec 20, 2022
@Tanya-Solyanik
Copy link
Contributor Author

Thank you @elachlan @lonitra!

@Tanya-Solyanik Tanya-Solyanik removed waiting-review This item is waiting on review by one or more members of team ready-to-merge PRs that are ready to merge but worth notifying the internal team. labels Dec 20, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jan 20, 2023
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.

3 participants