Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
143 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 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...