Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
142 views
in Technique[技术] by (71.8m points)

visual studio - Managing optional dll dependencies in net core

I have a solution targeting "netcoreapp3.1" consisting of main project, and multiple optional libraries. For debugging purposes right now the main project has dependencies to all the libraries, this ensures that then the main project is rebuild, the libraries dll's are rebuild too and new dll's are copied to main projects output folder. But if i delete an optional dll, the main solution gives an error "An assembly specified in the application dependencies manifest was not found". Obiously, if i delete the dependencies and manually copy dlls from libraries output, everything works as intended, but I'm afraid that this will be prone to human error. Is there better solution? Maybe some way to mark dependency as optional? Or maybe some other option to build and copy library dlls then the main project is rebuild?

question from:https://stackoverflow.com/questions/66060380/managing-optional-dll-dependencies-in-net-core

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...