diff options
author | Ivan Trubach <mr.trubach@icloud.com> | 2024-01-09 13:13:08 +0300 |
---|---|---|
committer | Ivan Trubach <mr.trubach@icloud.com> | 2024-05-22 03:08:42 +0300 |
commit | 0e64e645c92333257fa9bc78cbe31675c715533b (patch) | |
tree | e4a8b917f687d75d9f94bfefd3454800cb5f80cd /doc | |
parent | 7877140075610ffde57bc215a7e2302798620630 (diff) |
buildDotnetModule: fix cross-compilation and remove dotnet-test-sdk
This change fixes cross-compilation for .NET packages (that are not using .sln as project files). See relevant comment in the change list for more details. In addition to that, it removes dotnet-test-sdk that appears to be broken, that is, dotnet --list-sdks does not recognize SDKs from PATH, and when propagated from the check hook it was shadowed by inputs from preceding hooks. Note that dotnet-test-sdk used to work when it was introduced in PR 144062, but PR 155257 probably overlooked this case. However, currently it is not used in Nixpkgs and I think dotnetCorePackages.combinePackages should cover the intended use case for dotnet-test-sdk.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/dotnet.section.md | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/languages-frameworks/dotnet.section.md b/doc/languages-frameworks/dotnet.section.md index a4e9d6cf9a6c6..36c20a9e9c507 100644 --- a/doc/languages-frameworks/dotnet.section.md +++ b/doc/languages-frameworks/dotnet.section.md @@ -117,7 +117,6 @@ For more detail about managing the `deps.nix` file, see [Generating and updating * `useDotnetFromEnv` will change the binary wrapper so that it uses the .NET from the environment. The runtime specified by `dotnet-runtime` is given as a fallback in case no .NET is installed in the user's environment. This is most useful for .NET global tools and LSP servers, which often extend the .NET CLI and their runtime should match the users' .NET runtime. * `dotnet-sdk` is useful in cases where you need to change what dotnet SDK is being used. You can also set this to the result of `dotnetSdkPackages.combinePackages`, if the project uses multiple SDKs to build. * `dotnet-runtime` is useful in cases where you need to change what dotnet runtime is being used. This can be either a regular dotnet runtime, or an aspnetcore. -* `dotnet-test-sdk` is useful in cases where unit tests expect a different dotnet SDK. By default, this is set to the `dotnet-sdk` attribute. * `testProjectFile` is useful in cases where the regular project file does not contain the unit tests. It gets restored and build, but not installed. You may need to regenerate your nuget lockfile after setting this. Note that if set, only tests from this project are executed. * `disabledTests` is used to disable running specific unit tests. This gets passed as: `dotnet test --filter "FullyQualifiedName!={}"`, to ensure compatibility with all unit test frameworks. * `dotnetRestoreFlags` can be used to pass flags to `dotnet restore`. |