© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
3 replies
tanuki!

✅ CopyLocalLockFileAssemblies in csproj not being respected?

i'm building an addin for autodesk revit which uses different versions of net depending on its version - .net framework 4.8 for older versions, and .net 8 for the latest. i converted my project to an sdk-style project so that i can target any revit version i'd like and use the correct .net version. this worked for the framework builds, but since .net 8 doesn't copy nuget dlls to the build dir anymore, i added
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
to my .csproj file and everything worked when i built my dll for .net 8.

now, in an effort to restructure my project, i moved the .csproj file to a separate src/ProjectName folder (previously in the root folder). for some reason, this broke the behavior that i was relying on earlier. the .net framework builds work alright, but building for .net 8 results in the plugin failing to load due to it being unable to find those dlls in the place it's expecting them. how can i re-enable copying dlls to the build dir for debug/release builds?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Datetime ToString format not being respected
C#CC# / help
4y ago
csproj not found in Rider
C#CC# / help
4y ago
Copy folder in .csproj
C#CC# / help
3y ago
"x.csproj": not found in GH actions
C#CC# / help
2y ago