I'm using dotnet 2.1.4 on Windows. dotnet --info shows:
.NET Command Line Tools (2.1.4)
Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2190
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.4\
Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
I'm using dotnet publish to create the output for a platform:
dotnet publish ..\src\ChestnutDS.Host\ChestnutDS.Host.csproj
-c Release -o ..\..\published\win-x64
--self-contained -r win-x64 -v n
This gives me the desired (and working) output in a folder with 323 files.
Now, what I want to do is move all most of the files into a subfolder, e.g., lib.
From what I've gathered, setting additionalProbingPaths in the runtimeconfig.json should work:
{
"runtimeOptions": {
"additionalProbingPaths": [
"lib"
]
}
}
But it complains about not finding the libraries:
Error:
An assembly specified in the application dependencies manifest (ChestnutDS.Host.deps.json) was not found:
package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.1'
path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
Trying to pass --additionalProbingPath as a command line argument also doesn't work, same error.
Trying to create the mentioned structure and moving the file (lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll) also doesn't work.
Am I missing something? Was that functionality removed? It doesn't seem like it, the source code still contains it.


.deps.jsonfile, but I haven't found the correct combination of settings to make this work yet. - Michael Stum♦what I want to do is move all most of the files into a subfolder- Which is it? All or most? - NightOwl888