!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
8 Dec 2025
@k900:0upti.meK900You might want to just try building it with Core20:48:20
@k900:0upti.meK900If it doesn't use Windows.Forms it should be fine20:48:27
@tpw_rules:matrix.orgtpw_rulesi'm following the path in the manual and it hasn't exploded yet20:48:42
@tpw_rules:matrix.orgtpw_rulesi figured out mono is a submodule of the project which is a bit scary20:49:12
@tpw_rules:matrix.orgtpw_rulesokay it exploded, the "type or namespace name could not be found"20:52:17
@tpw_rules:matrix.orgtpw_rulesthere look to be some strange stanzas that suggest that should be pre-compiled. i will try to rip it out and see what happens. don't think i need to narrate the whole journey20:55:53
@tpw_rules:matrix.orgtpw_rulesso i've got it compiling but it crashes at runtime with some complaint about frobbing a property it doesn't like in Windows.Forms. is that cause i'm compiling against an ersatz mono version?22:07:04
@tpw_rules:matrix.orgtpw_ruleswell i patched the error out of my mono and it's working well enough now.22:34:37
@tpw_rules:matrix.orgtpw_rulesstill unclear why the official build works!22:34:52
10 Dec 2025
@dillonb:matrix.orgdgbHey, I updated a dotnet package and I'm seeing something really weird, I'm having to manually set DOTNET_ROOT in the preCheck phase, the tests don't run without it. https://github.com/NixOS/nixpkgs/pull/469509#discussion_r2605320864 Does anyone know why this might be happening?06:07:01
@dillonb:matrix.orgdgbit feels like something I shouldn't have to do, I don't see any other dotnet packages doing it.06:07:34
@xsrp:matrix.org@xsrp:matrix.org removed their profile picture.06:23:47
@xsrp:matrix.org@xsrp:matrix.org removed their display name srp.06:23:57
@xsrp:matrix.org@xsrp:matrix.org left the room.06:24:03
@corngood:corngood.comCorngoodWhat error do you get?12:59:00
@dillonb:matrix.orgdgbit can't find the dotnet runtime: https://files.dgb.sh/public/bicep_tests_failure.log I edited dotnet-hook.sh and confirmed that DOTNET_ROOT is empty when the tests run if I don't manually set it here, so it's not completely unsurprising?21:13:31
@dillonb:matrix.orgdgbhere: https://github.com/NixOS/nixpkgs/blob/59e6d1e9ac49051644a8a3802c1531e17932c675/pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh#L20821:14:15
@dillonb:matrix.orgdgbbut, before my update, DOTNET_ROOT is still empty and yet it can find the runtime22:06:32
@dillonb:matrix.orgdgbI am very confused :)22:06:41
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

Show newer messages


Back to Room ListRoom Version: 9