···11mkShell {
12 name = "dotnet-env";
13 packages = [
14- dotnet-sdk_3
15 ];
16}
17```
···27 name = "dotnet-env";
28 packages = [
29 (with dotnetCorePackages; combinePackages [
30- sdk_3_1
31 sdk_6_0
032 ])
33 ];
34}
35```
3637-This will produce a dotnet installation that has the dotnet 3.1 6.0 sdk. The first sdk listed will have it's cli utility present in the resulting environment. Example info output:
3839```ShellSession
40$ dotnet --info
41-.NET Core SDK (reflecting any global.json):
42- Version: 3.1.101
43- Commit: b377529961
00000000000000000000000004445-...
00004647-.NET Core SDKs installed:
48- 2.1.803 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/sdk]
49- 3.0.102 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/sdk]
50- 3.1.101 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/sdk]
5152-.NET Core runtimes installed:
53- Microsoft.AspNetCore.All 2.1.15 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.AspNetCore.All]
54- Microsoft.AspNetCore.App 2.1.15 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.AspNetCore.App]
55- Microsoft.AspNetCore.App 3.0.2 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.AspNetCore.App]
56- Microsoft.AspNetCore.App 3.1.1 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.AspNetCore.App]
57- Microsoft.NETCore.App 2.1.15 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.NETCore.App]
58- Microsoft.NETCore.App 3.0.2 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.NETCore.App]
59- Microsoft.NETCore.App 3.1.1 [/nix/store/iiv98i2jdi226dgh4jzkkj2ww7f8jgpd-dotnet-core-combined/shared/Microsoft.NETCore.App]
60```
6162## dotnet-sdk vs dotnetCorePackages.sdk {#dotnet-sdk-vs-dotnetcorepackages.sdk}
···119120 projectReferences = [ referencedProject ]; # `referencedProject` must contain `nupkg` in the folder structure.
121122- dotnet-sdk = dotnetCorePackages.sdk_3_1;
123- dotnet-runtime = dotnetCorePackages.net_6_0;
124125 executables = [ "foo" ]; # This wraps "$out/lib/$pname/foo" to `$out/bin/foo`.
126 executables = []; # Don't install any executables.
···11mkShell {
12 name = "dotnet-env";
13 packages = [
14+ dotnet-sdk
15 ];
16}
17```
···27 name = "dotnet-env";
28 packages = [
29 (with dotnetCorePackages; combinePackages [
030 sdk_6_0
31+ sdk_7_0
32 ])
33 ];
34}
35```
3637+This will produce a dotnet installation that has the dotnet 6.0 7.0 sdk. The first sdk listed will have it's cli utility present in the resulting environment. Example info output:
3839```ShellSession
40$ dotnet --info
41+.NET SDK:
42+ Version: 7.0.202
43+ Commit: 6c74320bc3
44+45+Środowisko uruchomieniowe:
46+ OS Name: nixos
47+ OS Version: 23.05
48+ OS Platform: Linux
49+ RID: linux-x64
50+ Base Path: /nix/store/n2pm44xq20hz7ybsasgmd7p3yh31gnh4-dotnet-sdk-7.0.202/sdk/7.0.202/
51+52+Host:
53+ Version: 7.0.4
54+ Architecture: x64
55+ Commit: 0a396acafe
56+57+.NET SDKs installed:
58+ 6.0.407 [/nix/store/3b19303vwrhv0xxz1hg355c7f2hgxxgd-dotnet-core-combined/sdk]
59+ 7.0.202 [/nix/store/3b19303vwrhv0xxz1hg355c7f2hgxxgd-dotnet-core-combined/sdk]
60+61+.NET runtimes installed:
62+ Microsoft.AspNetCore.App 6.0.15 [/nix/store/3b19303vwrhv0xxz1hg355c7f2hgxxgd-dotnet-core-combined/shared/Microsoft.AspNetCore.App]
63+ Microsoft.AspNetCore.App 7.0.4 [/nix/store/3b19303vwrhv0xxz1hg355c7f2hgxxgd-dotnet-core-combined/shared/Microsoft.AspNetCore.App]
64+ Microsoft.NETCore.App 6.0.15 [/nix/store/3b19303vwrhv0xxz1hg355c7f2hgxxgd-dotnet-core-combined/shared/Microsoft.NETCore.App]
65+ Microsoft.NETCore.App 7.0.4 [/nix/store/3b19303vwrhv0xxz1hg355c7f2hgxxgd-dotnet-core-combined/shared/Microsoft.NETCore.App]
66+67+Other architectures found:
68+ None
6970+Environment variables:
71+ Not set
72+73+global.json file:
74+ Not found
7576+Learn more:
77+ https://aka.ms/dotnet/info
007879+Download .NET:
80+ https://aka.ms/dotnet/download
00000081```
8283## dotnet-sdk vs dotnetCorePackages.sdk {#dotnet-sdk-vs-dotnetcorepackages.sdk}
···140141 projectReferences = [ referencedProject ]; # `referencedProject` must contain `nupkg` in the folder structure.
142143+ dotnet-sdk = dotnetCorePackages.sdk_6.0;
144+ dotnet-runtime = dotnetCorePackages.runtime_6_0;
145146 executables = [ "foo" ]; # This wraps "$out/lib/$pname/foo" to `$out/bin/foo`.
147 executables = []; # Don't install any executables.
+1-1
nixos/doc/manual/release-notes/rl-2305.section.md
···178 - Please note that an upgrade from v24 (or older) to v26 directly is not possible. Please upgrade to `nextcloud25` (or earlier) first. Nextcloud prohibits skipping major versions while upgrading. You can upgrade by declaring [`services.nextcloud.package = pkgs.nextcloud25;`](options.html#opt-services.nextcloud.package).
179 - It's recommended to use the latest version available (i.e. v26) and to specify that using `services.nextcloud.package`.
180181-- .NET 5.0 was removed due to being end-of-life, use a newer, supported .NET version - https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core
182183- The iputils package, which is installed by default, no longer provides the
184 `ninfod`, `rarpd` and `rdisc` tools. See
···178 - Please note that an upgrade from v24 (or older) to v26 directly is not possible. Please upgrade to `nextcloud25` (or earlier) first. Nextcloud prohibits skipping major versions while upgrading. You can upgrade by declaring [`services.nextcloud.package = pkgs.nextcloud25;`](options.html#opt-services.nextcloud.package).
179 - It's recommended to use the latest version available (i.e. v26) and to specify that using `services.nextcloud.package`.
180181+- .NET 5.0 and .NET 3.1 were removed due to being end-of-life, use a newer, supported .NET version - https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core
182183- The iputils package, which is installed by default, no longer provides the
184 `ninfod`, `rarpd` and `rdisc` tools. See