Replies: 1 comment 7 replies
-
This isn't very easy right now. The main tracking bug is dotnet/runtime#53834. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got the following setup:
LibraryProject is a .NET library referenced by .NET MainAppProject.
ToolProject is a .NET project too, it compiles to an executable which is sometimes run by the LibraryProject (I cannot link against ToolProject because it needs a different bitness).
Now, I want the output of ToolProject be available for the MainApp (as a transitive dependency of LibraryProject).
For it, I tried using
in LibraryProject.csproj, but this way only Tool.exe is copied to the target folder, not the other files.
I tried using
This achieves the job, but it has an unfortunate effect that the classes from ToolProject become available in the LibraryProject, which is very misleading and leads to conflicts.
The question: is it possible to reference the ToolProject so that it will be used as a dependency from the project point of view (compile order, copying to the output, etc.), but will not be visible in the LibraryProject's source code?
Beta Was this translation helpful? Give feedback.
All reactions