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

Produce a warning and ignore Prefer32Bit for netcoreapp #27776

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

VSadov
Copy link
Member

@VSadov VSadov commented Sep 8, 2022

Fixes:dotnet/runtime#70776

Prefer32Bit is a way to control how OS loader loads a managed .exe. It does not make sense for a .dll and the loader would refuse to load such .dll.
For netcoreapp target Prefer32Bit results in an app that cannot run.

With this change we produce a warning when building for netcoreapp >= 7.0 target and ignore the setting.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@VSadov VSadov marked this pull request as ready for review September 9, 2022 16:10
@VSadov
Copy link
Member Author

VSadov commented Sep 9, 2022

Thanks!!

@VSadov VSadov merged commit fe4f774 into dotnet:main Sep 9, 2022
@VSadov VSadov deleted the pref32bit branch September 9, 2022 18:26
VSadov added a commit to VSadov/sdk that referenced this pull request Sep 11, 2022
* Check for and switch off Prefer32Bit for >= 7.0

* add Prefer32Bit in the test

* added a distinct warning message
VSadov added a commit to VSadov/sdk that referenced this pull request Sep 12, 2022
* Check for and switch off Prefer32Bit for >= 7.0

* add Prefer32Bit in the test

* added a distinct warning message
VSadov added a commit that referenced this pull request Sep 12, 2022
…eapp (#27796)

* Produce a warning and ignore Prefer32Bit for netcoreapp  (#27776)

* Check for and switch off Prefer32Bit for >= 7.0

* add Prefer32Bit in the test

* added a distinct warning message

* fix intl strings

* update error IDs in tests
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.

2 participants