Skip to content

Produce a warning and ignore Prefer32Bit for netcoreapp - #27776

Merged
VSadov merged 3 commits into
dotnet:mainfrom
VSadov:pref32bit
Sep 9, 2022
Merged

VSadov merged 3 commits into
dotnet:mainfrom
VSadov:pref32bit

Conversation

@VSadov

@VSadov VSadov commented Sep 8, 2022 •

Copy link
Copy Markdown
Member

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.

@ghost

ghost commented Sep 8, 2022

Copy link
Copy Markdown

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

VSadov commented Sep 9, 2022

Copy link
Copy Markdown
Member Author

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