Skip to content

.exe file for OutputType=Exe should not be flow with ProjectReference #11131

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

Closed
yyjdelete opened this issue Apr 3, 2020 · 1 comment
Closed
Assignees
Labels
untriaged Request triage from a team member

Comments

@yyjdelete
Copy link

yyjdelete commented Apr 3, 2020

Issue Title

.exe file for project with OutputType=Exe should not be flow with ProjectReference

Reproduce Step

netcoreapp3.1 or 5.0preview is needed

  1. dotnet new console -n c1
  2. dotnet new console -n c2
  3. dotnet add c1 reference c2
  4. dotnet build c1

Expected

c2.exe should not be included in the output of c1, only c2.dll is needed.
Or c2.deps.json(and maybe also c2.runtimeconfig.json) should be included to make c2.exe really executable.

Actual

c2.exe is included. But it can not be executed without an c2.deps.json and is useless(assembly reference only need the dll files, I didn't see any usage for the .exe file)

@dsplaisted
Copy link
Member

See also #1675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants