Hi
I tried to find a similar question, but couldn’t find it.
I’m trying to config example flake for dotnet solution (contains two simple cs projects - app-one (console) and app-two (webapi)).
I’m using “executable” array for .../bin/app-one
, .../bin/app-two
creation.
My flake.nix contains:
{
packages.${system} = rec {
default = all;
all = pkgs.buildDotnetModule {
pname = "solution";
version = "0.0.1";
# contains sln with two csproj
# src/app-one/app-one.csproj - console
# src/app-two/app-two.csproj - webapi
src = src;
nugetDeps = deps;
#dotnet-runtime = pkgs.dotnet-runtime_6;
#dotnet-runtime = pkgs.dotnet-aspnetcore; #6
buildType = "Release";
# This wraps "$out/lib/$pname/foo" to `$out/bin/foo`.
executables = [
"app-one"
"app-two"
];
};
}
If there is a way to specify own runtime for each element of executables (for “app-one” - dotnet runtime, for “app-two” - asp net runtime) ?