!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

112 Members
23 Servers

Load older messages


SenderMessageTime
11 Dec 2025
@suua:matrix.orgsuua joined the room.16:11:55
@corngood:corngood.comCorngoodhttps://github.com/NixOS/nixpkgs/pull/469483 10.0.1 update is here. I already ran nixpkgs-review, tests, etc, but PR review would be appreciated19:07:15
14 Dec 2025
@emma:rory.gayEmma [it/its]hmm, can i not package blazor apps?03:05:20
@emma:rory.gayEmma [it/its]

fetch-deps errored out of all things:

Executing dotnetConfigureHook
  Determining projects to restore...
  Restored /tmp/fetch-deps-Spacebar.AdminApi.TestClient-1.0.0-preview.20251213-234913+a4527d16-dirty.0NUTOn/source/Spacebar.AdminApi.Models/Spacebar.AdminApi.Models.csproj (in 104 ms).
/tmp/fetch-deps-Spacebar.AdminApi.TestClient-1.0.0-preview.20251213-234913+a4527d16-dirty.0NUTOn/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.Mono.linux-x64 with version (= 10.0.0)
/tmp/fetch-deps-Spacebar.AdminApi.TestClient-1.0.0-preview.20251213-234913+a4527d16-dirty.0NUTOn/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 137 version(s) in nuget [ Nearest version: 9.0.0-preview.7.24405.7 ]
/tmp/fetch-deps-Spacebar.AdminApi.TestClient-1.0.0-preview.20251213-234913+a4527d16-dirty.0NUTOn/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 0 version(s) in /nix/store/jl3858nslcfn094yhs51hgq7sg6ksv6r-dotnet-sdk-10.0.100/share/dotnet/library-packs
/tmp/fetch-deps-Spacebar.AdminApi.TestClient-1.0.0-preview.20251213-234913+a4527d16-dirty.0NUTOn/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 0 version(s) in _nix
  Failed to restore /tmp/fetch-deps-Spacebar.AdminApi.TestClient-1.0.0-preview.20251213-234913+a4527d16-dirty.0NUTOn/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj (in 19.4 sec).
03:05:39
@emma:rory.gayEmma [it/its](blazor webassembly, fwiw)03:08:06
@corngood:corngood.comCorngoodTake a look at https://github.com/NixOS/nixpkgs/pull/469483#issuecomment-3649467851 I'm not sure how closely related this it, but I think `ersatztv` is a blazor app. It seems to work okay, but it ended up being tied to a specific runtime version of a nuget package.03:09:53
@corngood:corngood.comCorngoodYours is complaining about mono though. To be honest I still don't really understand the point of those mono runtime packages 03:11:29
@emma:rory.gayEmma [it/its]dotnet uses those for the "more out there" targets (ios, android, webassembly, afaik)03:12:09
@emma:rory.gayEmma [it/its]in my case, standalone webassembly ^^'03:13:36
@emma:rory.gayEmma [it/its]checked the project's csproj, that's a blazor server app03:23:26
@emma:rory.gayEmma [it/its] <Project Sdk="Microsoft.NET.Sdk.Web"> vs <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> :) 03:23:57
@emma:rory.gayEmma [it/its]clipboard.png
Download clipboard.png
03:30:21
@emma:rory.gayEmma [it/its]i guess it might be worthwhile to test with the new dotnet version lol03:30:30
@corngood:corngood.comCorngoodAh okay, that's the only blazor thing I've come across. That mono package hasn't been published on nuget.org since 8, so isn't it weird that it's looking for v10? 03:32:52
@emma:rory.gayEmma [it/its] a regular dotnet build works fine, which is the weird part 03:33:55
@emma:rory.gayEmma [it/its] or rather, it works under a regular shell, hence im surprised it doesnt under buildDotnetModule? 03:36:49
@corngood:corngood.comCorngoodMaybe it has to do with the `--runtime` flag? 03:50:51
@emma:rory.gayEmma [it/its]maybe?03:58:47
@emma:rory.gayEmma [it/its] ah yeah, i guess it defaults to --runtime browser-wasm for blazor wasm projects 04:00:27
@emma:rory.gayEmma [it/its]any suggestiosn of stuff i could try?04:01:08
@corngood:corngood.comCorngoodYou should be able to override the runtime id. We should probably add a test project for this, and for the server one as well.04:14:35
@emma:rory.gayEmma [it/its]TIL that exists04:36:22
@emma:rory.gayEmma [it/its]yeah, that worked, interesting04:40:41
@emma:rory.gayEmma [it/its]huh interesting04:45:02
@emma:rory.gayEmma [it/its] it restored correctly, but then doesnt build 04:45:10
@emma:rory.gayEmma [it/its] /nix/store/jl3858nslcfn094yhs51hgq7sg6ksv6r-dotnet-sdk-10.0.100/share/dotnet/sdk/10.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(190,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'browser-wasm'. [/build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj] 04:45:28
@corngood:corngood.comCorngoodDoes that happen with the flag when you build it outside the sandbox?04:50:37
@emma:rory.gayEmma [it/its]

that fails in a completely different way:

/nix/store/jl3858nslcfn094yhs51hgq7sg6ksv6r-dotnet-sdk-10.0.100/share/dotnet/sdk/10.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: 
  To build this project, the following workloads must be installed: wasm-tools
  To install these workloads, run the following command: dotnet workload restore
04:51:10
@emma:rory.gayEmma [it/its] doesnt take much to reproduce either: dotnet new blazor-wasm 04:51:55
@corngood:corngood.comCorngoodThat error might be from restore unless you're using --no-restore?04:52:20

Show newer messages


Back to Room ListRoom Version: 9