Skip to content

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