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

Add test for Control.Language property resource #3219

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

HebaruSan
Copy link
Member

Background

#3218 fixed a problem with Mono 6 generating builds that don't work on Windows, but there's a risk that Visual Studio will create the problem again by setting the $this.Language property of a .resx file. If this happens, the current maintainers may not remember or may never have known that this is a problem, and a broken release could happen.

Changes

Now a new Test checks that $this.Language is not set in any known resource file, which will prevent this problem from recurring in the future. To achieve this, SingleAssemblyComponentResourceManager is marked as internal and the Tests project is given internals-visibility into the GUI project.

@HebaruSan HebaruSan added GUI Issues affecting the interactive GUI Pull request Windows Issues specific for Windows Mono Issues specific for Mono Tests Issues affecting the internal tests labels Dec 1, 2020
@HebaruSan HebaruSan requested a review from DasSkelett December 1, 2020 21:23
@HebaruSan HebaruSan added the In progress We're still working on this label Dec 1, 2020
@HebaruSan

This comment has been minimized.

@HebaruSan HebaruSan force-pushed the fix/mono-6-build-tests branch from cbdb20f to 2d3d8c6 Compare December 1, 2020 21:58
@HebaruSan HebaruSan removed the In progress We're still working on this label Dec 1, 2020
Copy link
Member

@DasSkelett DasSkelett left a comment

Choose a reason for hiding this comment

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

Yup, should reduce the risk of sneaking it back in. Thanks!

@HebaruSan HebaruSan merged commit e8ba8fc into KSP-CKAN:master Dec 8, 2020
@HebaruSan HebaruSan deleted the fix/mono-6-build-tests branch December 8, 2020 21:46
@DasSkelett DasSkelett added the i18n Issues regarding the internationalization of CKAN and PRs that need translating label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues affecting the interactive GUI i18n Issues regarding the internationalization of CKAN and PRs that need translating Mono Issues specific for Mono Tests Issues affecting the internal tests Windows Issues specific for Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants