Can I put my own dependencies in a subfolder

When I publish a project with the dotnet core, it generates a single folder with hundreds of frameworks and built-in runtime files.

I understand that these files are necessary for everything to work, but can I transfer them to a subfolder and still run my application?

for instance

MYAppFolder\
    MyApp.exe
    MyApp.exe.config
    native\
       hostfxr.dll
       netstandard.dll
       ...

Is there some kind of test drive configuration that can do this?

+3
source share
2 answers

As far as I can see, you have a separate application Standalone (SCD).

For this type of deployment, hostfxr.dllit must always exist in the application directory by convention.

deps, , [AppName].deps.json , [AppName].deps.json. , ( deps.json ), , .

, Standalone , , lib.

, :

, Portable (FDD). .

+5
0

Source: https://habr.com/ru/post/1693280/


All Articles