Publish only selected files #47
-
Hi Roman! When I build my addin project, I get several dlls copied to the bin folder like To avoid distributing bloat, how would you recommend skipping these from my installer? I could maybe hard code exception file names or add a target in my Nuke project to delete these files at the right time, but maybe there are more elegant solutions like an MS Build config for that. I hoped you could quickly point me in a good direction with my search. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You are not using them directly, they are implicit dependencies of some packages you use. In Revit 2025 and .Net 8, these libraries are part of the NET Runtime and so they won't be in the output. My recommendation is to not remove them and keep them as is. To ensure that the plugin ships with all dependencies in use |
Beta Was this translation helpful? Give feedback.
You are not using them directly, they are implicit dependencies of some packages you use.
Your plugin only works because another plugin probably loaded them earlier. If your plugin is the only one plugin in Revit, it probably won't run if you exclude these dependencies.
In Revit 2025 and .Net 8, these libraries are part of the NET Runtime and so they won't be in the output.
My recommendation is to not remove them and keep them as is. To ensure that the plugin ships with all dependencies in use
Check your Nuget packages for these dependencies