Skip to content

.NET8: Ability to not include ref diretory in published single exe file #16759

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

Open
NN--- opened this issue Apr 6, 2021 · 3 comments
Open

.NET8: Ability to not include ref diretory in published single exe file #16759

NN--- opened this issue Apr 6, 2021 · 3 comments
Milestone

Comments

@NN---
Copy link
Contributor

NN--- commented Apr 6, 2021

I am willing to make the smallest possible executable.
The publish single exe adds assemblies from ref directory which are not required to my executable to work well.
Is there any flag which prevents adding them into single exe file ?

@ghost ghost added the untriaged Request triage from a team member label Apr 6, 2021
@ghost
Copy link

ghost commented Apr 6, 2021

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

@wli3
Copy link

wli3 commented Apr 7, 2021

You could disable reference assembly generation by $(ProduceReferenceAssembly).
However there is no flag specifically for published single exe file

@wli3 wli3 added Area-ILLink and removed untriaged Request triage from a team member labels Apr 7, 2021
@wli3 wli3 removed their assignment Apr 7, 2021
@wli3 wli3 added this to the Discussion milestone Apr 7, 2021
@NN---
Copy link
Contributor Author

NN--- commented Apr 11, 2021

I added ProduceReferenceAssembly false , but I still see ref directories.
Anyway it doesn't solve the single-file.

@richlander richlander modified the milestones: Discussion, 8.0.1xx Jun 25, 2022
@richlander richlander changed the title Ability to not include ref diretory in published single exe file .NET8: Ability to not include ref diretory in published single exe file Jun 25, 2022
@marcpopMSFT marcpopMSFT modified the milestones: 8.0.1xx, 8.0.4xx Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants