!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

114 Members
23 Servers

Load older messages


SenderMessageTime
19 Apr 2025
@upidapi:matrix.orgupidapi joined the room.17:01:44
21 Apr 2025
@corruptcomputer:matrix.orgcorruptcomputerIs that the most up to date way to do it? I saw this on the Wiki from about a week ago and this is what I had based my change on: https://discourse.nixos.org/t/dotnet-maui-workload/20370/24 There really isn't a ton of documentation around dotnet so I'm really not sure what the best way to do it is, and according to other folks on this same forum discussion for it isn't possible to update? Not really sure how thats the case when its a wiki22:54:43
@corruptcomputer:matrix.orgcorruptcomputer* Is that the most up to date way to do it? I saw this on the forum from about a week ago and this is what I had based my change on: https://discourse.nixos.org/t/dotnet-maui-workload/20370/24 There really isn't a ton of documentation around dotnet so I'm really not sure what the best way to do it is, and according to other folks on this same forum discussion for it isn't possible to update? Not really sure how thats the case when its a wiki22:54:52
@gggkiller:matrix.orgGGG it is the way I use myself. I prefer using a file in /etc because env vars require restarting your window manager or something similar to update them 22:55:18
@gggkiller:matrix.orgGGG but you shouldn't mix sdk_X_Y, runtime_X_Y, aspnetcore_X_Y packages ever 22:55:38
@gggkiller:matrix.orgGGGyou pick one of the three and use that for that version22:55:48
@gggkiller:matrix.orgGGG * it is the way I use myself. I prefer using a file in /etc because env vars require restarting your desktop manager or something similar to update them 22:55:57
@corruptcomputer:matrix.orgcorruptcomputerI need all 3 of them though, I'm developing aspnetcore and desktop applications, so I need to be able to both compile with the sdk and run with the runtime or aspnetcore runtime 22:56:40
@gggkiller:matrix.orgGGGthe SDK comes with the runtime and aspnetcore22:56:49
@gggkiller:matrix.orgGGGaspnetcore comes with the runtime22:56:53
@gggkiller:matrix.orgGGGruntime is just the runtime22:56:56
@corruptcomputer:matrix.orgcorruptcomputerAh ok, didn't realize that. Thats a lot different than I'm familiar with on Arch, on Arch you need to install all 3 separately 22:57:25
@corruptcomputer:matrix.orgcorruptcomputerdoes the sdk_X_Y support only specifying the major version? I'd like to always stay up to date with the latest minor version and just pick the major that I'm using 22:59:04
@corruptcomputer:matrix.orgcorruptcomputerlike sdk_9 or sdk_8 I mean, instead of needing sdk_9_202 or whatever the minor version is22:59:37
@corruptcomputer:matrix.orgcorruptcomputercould see it being very annoying to constantly be updating that 22:59:50
@gggkiller:matrix.orgGGG we don't currently have an option to stick to latest minor, the dotnet_9.sdk is just sdk_9_0 22:59:53
@gggkiller:matrix.orgGGG202 is the patch, so the actual version is 9.0.20223:00:06
@corruptcomputer:matrix.orgcorruptcomputerAh ok so sdk_9_0 will still get me the latest then, thanks!23:00:45
@corruptcomputer:matrix.orgcorruptcomputerIs it possible to get the latest version of VsCode with this as well? The Microsoft plugin for C# support doesn't work, says the version of VSC is too old to support it. Not sure if there some sort of version option with the vscode.fhs package as an option23:04:12
@gggkiller:matrix.orgGGGNot really, the only option is the extension in nixpkgs. It needs quite a bit of annoying patching so it doesn't work out of the box without any changes23:05:03
@gggkiller:matrix.orgGGGYour best shot might be going on unstable to get the latest version of everything, but that's about it23:05:19
@corruptcomputer:matrix.orgcorruptcomputerthat doesn't seem to work for dotnet, none of the c# packages are available there 23:05:29
@corruptcomputer:matrix.orgcorruptcomputerin the pkgs.vscode-extensions repo I mean23:05:41
@gggkiller:matrix.orgGGGoh23:05:46
@gggkiller:matrix.orgGGGI just updated them in nixpkgs though (albeit there's another PR to update them already)23:06:06
@gggkiller:matrix.orgGGGboth of them are right there: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=ms-dotnettools.cs23:06:27
@corruptcomputer:matrix.orgcorruptcomputeroh? Let me check again, I had looked over the weekend when I was trying to set this up, maybe they are there now23:06:44
@corruptcomputer:matrix.orgcorruptcomputerOk yeah looks like most of them are there now, only 2 missing at this point23:09:26
@gggkiller:matrix.orgGGGif you mean the .NET Runtime Install one, it's not used, but it is in nixpkgs since there's still a hard dependency on it23:09:56
@corruptcomputer:matrix.orgcorruptcomputerThese are the 2 I don't see there: richardwillis.vscode-entity-framework avaloniateam.vscode-avalonia23:10:04

Show newer messages


Back to Room ListRoom Version: 9