Skip to content

Fix referenceassemblygeneration for .exe files #13963

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

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

KevinRansom
Copy link
Contributor

@KevinRansom KevinRansom commented Sep 22, 2022

Ref assembly generation is turned on by default by the sdk in dotnet 7.0 rc2 and later. This causes an issue when building .exe files with the --test output enabled.
For example our build displays this output when building on a machine :
image

The fix is to emit to the reference assembly the entrypoint. This is benign because it will have the correct visibility markings.

In reference assemblies the generated main method looks similar to:
image

  • Need to add a test.

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