!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

122 Members
24 Servers

Load older messages


SenderMessageTime
3 Dec 2024
@emma:rory.gayEmma [it/its]
In reply to @corngood:corngood.com

https://github.com/NixOS/nixpkgs/pull/360923

Here's a PR that adds dotnet-sdk_9, etc. I intend to backport it to 24.11.

I'm curious what people think about sdk/runtime naming. We currently have minor version SDKs that aren't accessible at the top level, e.g. dotnetCorePackages.sdk_8_0_1xx.

Should we add dotnet-sdk_8_0_1xx?

i think the current system of having those symlink to latest major releases is fine
06:50:27
@genga898:matrix.orgEmmanuel GengaHow do you guys install dev certs on your machine for development of Dotnet web apps12:27:46
4 Dec 2024
@emma:rory.gayEmma [it/its]i dont, i jut get rid of https alltogether13:24:57
@emma:rory.gayEmma [it/its]dont even need to worry about restricted APIs because browsers treat localhost as always-secure rather than making it conditional on https13:25:38
@lostmsu:matrix.orglostmsuWhat is the difference between dotnetCorePackages.dotnet_9.sdk and dotnet-sdk_9?19:21:55
@corngood:corngood.comCorngood nothing. they're the same package 19:22:55
@lostmsu:matrix.orglostmsuHm, is there a plan to remove one of them to avoid confusion?19:23:26
@corngood:corngood.comCorngood I originally had it in mind to remove the top level aliases, but now I'm not so sure. I added dotnet-sdk_9 recently to be consistent with the other versions. 19:25:05
@lostmsu:matrix.orglostmsuimage.png
Download image.png
19:28:09
@lostmsu:matrix.orglostmsuThere's a bit more of confusion: there's no dotnet-aspnetcore_819:28:20
@corngood:corngood.comCorngood There is, but dotnet-aspnetcore is an alias for it 19:28:54
@corngood:corngood.comCorngoodWhat's that from? Maybe we can clean up what's being reported a bit19:29:26
@lostmsu:matrix.orglostmsuhttps://search.nixos.org/packages?channel=24.11&from=0&size=50&sort=relevance&type=packages&query=dotnet-aspnetcore19:29:35
@lostmsu:matrix.orglostmsuThis is what I'm currently using as a app/package store for NixOS19:29:57
@lostmsu:matrix.orglostmsureally not the best thing for it, does anyone know anything better?19:30:21
@corngood:corngood.comCorngood I'm sorry, this is wrong. dotnetCorePackages.dotnet_9.sdk is the source-built sdk, and dotnet-sdk_9 is the binary SDK. 19:31:34
@corngood:corngood.comCorngood dotnet-sdk_9 is an alias of dotnetCorePackages.sdk_9_0 19:31:49
@lostmsu:matrix.orglostmsushould one care?19:31:59
@corngood:corngood.comCorngoodNot really. At some point I'd like to make the top level aliases point at the source-built versions. Once they build reliably on all platforms.19:32:59
@corngood:corngood.comCorngood * +nothing. they're the same package+ 19:33:40
@corngood:corngood.comCorngood * ~~nothing. they're the same package~~ 19:34:00
@corngood:corngood.comCorngood * nothing. they're the same package 19:34:40
@lostmsu:matrix.orglostmsuStill getting confused I have the following two system packages installed + Rider: dotnetCorePackages.dotnet_8.aspnetcore dotnet-sdk_9 and yet I get $ dotnet --info Host: Version: 8.0.11 Architecture: x64 Commit: 9cb3b725e3 RID: linux-x64 .NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.AspNetCore.App 8.0.11 [/nix/store/pyh7d87igawxpr9qnpc0ap4v0irx3591-dotnet-aspnetcore-runtime-8.0.11/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 8.0.11 [/nix/store/pyh7d87igawxpr9qnpc0ap4v0irx3591-dotnet-aspnetcore-runtime-8.0.11/share/dotnet/shared/Microsoft.NETCore.App] Other architectures found: None Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/download $ which dotnet /run/current-system/sw/bin/dotnet19:56:41
@corngood:corngood.comCorngood

Check this out: https://nixos.org/manual/nixpkgs/stable/#using-many-sdks-in-a-workflow

You need to combine them into a single package because the dotnet CLI has no mechanism for finding things unless they are all in one DOTNET_ROOT.

20:18:12
@lostmsu:matrix.orglostmsuWhat about global environment?20:19:12
@corngood:corngood.comCorngood you can install the output of combinePackages wherever you're using e.g. dotnet-sdk_9 20:19:58
@gggkiller:matrix.orgGGG joined the room.21:44:23
@gggkiller:matrix.orgGGG changed their display name from GGG KILLER to GGG.21:52:55
5 Dec 2024
@wiiplayer2:matrix.orgWaldemar Tomme (they/them) joined the room.12:51:19
@tomasajt:matrix.orgToma joined the room.18:43:11

Show newer messages


Back to Room ListRoom Version: 9