!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

116 Members
24 Servers

Load older messages


SenderMessageTime
14 Dec 2025
@x408788:fi.muni.czJan KvapilGood luck with that, .NET19:47:39
@emma:rory.gayEmma [it/its] but yeah its hanging because its trying to read your entire nix store due to the csproj being copied as a solo store path 19:47:50
@emma:rory.gayEmma [it/its](TIL!)19:47:59
@emma:rory.gayEmma [it/its]that sounds like an easy nixpkgs PR, lol19:48:31
@corngood:corngood.comCorngoodUh I guess it's because the .csproj ends up as a single file in the root of /nix/store/. I wonder what it's looking for exactly19:48:33
@emma:rory.gayEmma [it/its]i think its trying to find the sources to build19:48:43
@emma:rory.gayEmma [it/its]though interesting that it reads things that arent .cs files19:48:59
@corngood:corngood.comCorngoodah yeah, that makes sense19:49:00
@emma:rory.gayEmma [it/its]yeah, kinda worrying that it would have succeeded on my system with an error lol19:50:09
@emma:rory.gayEmma [it/its](due to the root partition, and hence the nix store, being smaller than the machine's available memory)19:50:28
@x408788:fi.muni.czJan Kvapil The nix develop .#... ended up creating a source dir with some read-only files. But I guess it's just readonly copy that is safe to nuke ? 19:51:36
@emma:rory.gayEmma [it/its]i'd guess its a symlink to the nix store, no?19:52:05
@x408788:fi.muni.czJan Kvapilno19:52:10
@corngood:corngood.comCorngood Oh sorry, I missed a step in the dev shell: cd $NIX_BUILD_TOP before running the build.. which just puts you in the /tmp/ dir it creates for the shell 19:52:56
@corngood:corngood.comCorngood so it'll leave some files behind which you can git clean or whatever 19:53:16
@corngood:corngood.comCorngood source/ is definitely part of it, but there might also be other temp dirs 19:54:40
@x408788:fi.muni.czJan Kvapil Getting tired, I need to hook to the buildPhase and buildDotnetModule.overrideAttrs is not working. Is it not possible or bad syntax? 20:03:15
@emma:rory.gayEmma [it/its] Corngood re: yesterday, do you think you have any suggestions for things to try with the blazor wasm stuff? 20:06:49
@emma:rory.gayEmma [it/its] i did find https://github.com/dotnet/runtime/blob/main/src/mono/browser/runtime, but that seems to require emscripten 20:20:47
@emma:rory.gayEmma [it/its] https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet10-transport seems the "nuget" builds moved here 20:31:39
@emma:rory.gayEmma [it/its]hm, it seems to wipe my nuget.config lol20:36:49
@emma:rory.gayEmma [it/its] i did try adding useAppHost=false and got this:
/build/nuget.f8zl6P/fallback/microsoft.net.sdk.webassembly.pack/10.0.0/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(240,5): error WASM0005: Unable to resolve WebAssembly runtime pack version [/build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj]
20:39:53
@emma:rory.gayEmma [it/its]okay, i got closer!20:50:07
@emma:rory.gayEmma [it/its]
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102: Unable to find package Microsoft.NET.ILLink.Tasks with version (>= 10.0.1)
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 10.0.0 ]
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 1 version(s) in /nix/store/jl3858nslcfn094yhs51hgq7sg6ksv6r-dotnet-sdk-10.0.100/share/dotnet/library-packs [ Nearest version: 10.0.0 ]
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102: Unable to find package Microsoft.NET.Sdk.WebAssembly.Pack with version (>= 10.0.1)
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 10.0.0 ]
Spacebar.AdminApi.TestClient> /build/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
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Internal.Assets with version (>= 10.0.1)
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 10.0.0 ]
Spacebar.AdminApi.TestClient> /build/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
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser-wasm with version (= 10.0.1)
Spacebar.AdminApi.TestClient> /build/source/Utilities/Spacebar.AdminApi.TestClient/Spacebar.AdminApi.TestClient.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 10.0.0 ]
Spacebar.AdminApi.TestClient> /build/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
20:50:21
@corngood:corngood.comCorngood

I was thinking we'd do something similar to this test:

        mkWebTest =
          lang: suffix:
          mkDotnetTest {
            name = "web-${suffix}";
            template = "web";
            inherit lang;
            build = "dotnet publish -o $out/bin";
            runtime = finalAttrs.finalPackage.aspnetcore;
...

but using a different template like you mentioned earlier (template is just the arg for dotnet new).

21:14:10
@corngood:corngood.comCorngood *

I was thinking we'd do something similar to this test:

        mkWebTest =
          lang: suffix:
          mkDotnetTest {
            name = "web-${suffix}";
            template = "web";
            inherit lang;
            build = "dotnet publish -o $out/bin";
            runtime = finalAttrs.finalPackage.aspnetcore;
...

but using a different template like you mentioned earlier (template is just the arg for dotnet new).

(pkgs/development/compilers/dotnet/wrapper.nix)

21:14:50
@emma:rory.gayEmma [it/its]ah21:22:47
@emma:rory.gayEmma [it/its]sounds reasonable21:48:29
15 Dec 2025
@ghishadow:matrix.orgghishadow joined the room.08:12:57
16 Dec 2025
@saschaontour:matrix.orgSaschaOnTour joined the room.16:30:32

Show newer messages


Back to Room ListRoom Version: 9