CodeCavePro / revit-sdk

The Software Development Toolkit (SDK) provides extensive .NET code samples and documentation to help you get started developing with the Revit API.
https://www.autodesk.com/developer-network/platform-technologies/revit
21 stars 12 forks source link

Reference only assemblies #1

Closed jeremy-marcus closed 3 years ago

jeremy-marcus commented 3 years ago

When using PackageReference a nuget package can specify that assemblies are for compile-time only (they won't output to the bin folder) by being in a /ref folder rather than /lib. By changing the csproj to put assemblies in /ref the package would act the same as setting Copy Local=No.

Documentation for this feature is here: https://docs.microsoft.com/en-us/nuget/create-packages/select-assemblies-referenced-by-projects

salaros commented 3 years ago

Actually that's a good idea, I wasn't aware of such NuGet feature and was using a MSBuild target to avoid having those files in the output directory. Updated all the packages

THANKS