У меня есть следующий код:
Код: Выделить всё
#if PC
var rootPath = Path.Combine("dist");
#else
var rootPath = Path.Combine(@"/bin/bash");
#endif
But I didn't find the answer under the dotnet publish command.
Источник: https://stackoverflow.com/questions/781 ... recompiled