Replies: 2 comments 5 replies
-
Maybe what you are looking for is |
Beta Was this translation helpful? Give feedback.
4 replies
-
See dotnet/sdk#41529 and dotnet/sdk#31636 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently developing extensions for a driver.
Some of the core dependencies are already loaded in the default context at runtime, which means there isn't a need to package them with my extension as the app will provide them (plugins are built for a range versions of the app).
I can exclude dlls from from a package using
Publish="false"
like such :However, attempting to use the same property for a project reference (
ProjectReference
) will result in the project's files being copied to the output folder on publish :(in my use case, I am using a git submodule as some of the components I need are not available as nuget packages).
Since this isn't working, I'm wondering if there is another way to prevent those files from being copied to the publish folder, that wouldn't involve a post build target, or a cleanup step in my build script.
Currently, I'm building my extensions to a temporary folder where i then proceed to move specific files to the final build folder, not ideal, and prone to break if not carefully done.
Any Suggestions?
Update 1
Private="False"
Seem to only work for the dlls generated directly by the target project, it does not prevent dlls from its dependencies from being included in the publish folder.DisableTransitiveProjectReferences="true"
could partially solve that issue, but then i would have to add a project reference for all subdependencies i might need.Beta Was this translation helpful? Give feedback.
All reactions