Ever came across this error on publishing a dotnet project that includes libs of your own:

error NETSDK1097: It is not supported to publish an application to a single-file without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set PublishSingleFile to false.

E.g. using urho.net with this vs-code setup:


Adding this to the referenced project's csproj fixed the issue:


I'm quite sure the problem is that I had created the subprojects as console-application and not as library and that this is actually the problem....

Btw, found a hint on how to handle this here