diff --git a/pkgs/development/compilers/dotnet/common.nix b/pkgs/development/compilers/dotnet/common.nix index e88ddfb3e37f..e8c726f93bd7 100644 --- a/pkgs/development/compilers/dotnet/common.nix +++ b/pkgs/development/compilers/dotnet/common.nix @@ -38,7 +38,6 @@ --fish ${./completions/dotnet.fish} ''; -} // lib.optionalAttrs (type == "sdk") { passthru = { tests = let mkDotnetTest = @@ -79,10 +78,13 @@ ''; in { - version = testers.testVersion { + version = testers.testVersion ({ package = finalAttrs.finalPackage; - }; - + } // lib.optionalAttrs (type != "sdk") { + command = "dotnet --info"; + }); + } + // lib.optionalAttrs (type == "sdk") { console = mkDotnetTest { name = "console"; template = "console";