Skip to content

How to share common libraries across multiple console apps #43

Answered by liesauer
askids asked this question in Q&A
Discussion options

You must be logged in to vote

you can have a look at this example, https://github.com/nulastudio/NetBeauty2/tree/master/NetBeautyTest/SharedRuntimeTest

the key configs are

<BeautySharedRuntimeMode>True</BeautySharedRuntimeMode>
<BeautyLibsDir Condition="$(BeautySharedRuntimeMode) == 'True'">../runtimes</BeautyLibsDir>

so the final structure will be something likes this

├── runtimes
│   └── tons of runtime dlls and dependencies
├── app1
│   ├── hostfxr.dll
│   ├── nbloader.dll
│   ├── app1.deps.json
│   ├── app1.dll
│   ├── app1.exe
│   ├── app1.runtimeconfig.json
│   └── ...
├── app2
│   ├── hostfxr.dll
│   ├── nbloader.dll
│   ├── app2.deps.json
│   ├── app2.dll
│   ├── app2.exe
│   ├── app2.runtimeconfig.json
│   └─…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liesauer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants