Nix + dotnet | 117 Members | |
| 23 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Dec 2025 | ||
ah yeah, i guess it defaults to --runtime browser-wasm for blazor wasm projects | 04:00:27 | |
| any suggestiosn of stuff i could try? | 04:01:08 | |
| You 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 | |
| TIL that exists | 04:36:22 | |
| yeah, that worked, interesting | 04:40:41 | |
| huh interesting | 04:45:02 | |
| it restored correctly, but then doesnt build | 04:45:10 | |
/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 | |
| Does that happen with the flag when you build it outside the sandbox? | 04:50:37 | |
| that fails in a completely different way: | 04:51:10 | |
doesnt take much to reproduce either: dotnet new blazor-wasm | 04:51:55 | |
| That error might be from restore unless you're using --no-restore? | 04:52:20 | |
In reply to @emma:rory.gayWe should probably just make the test based on this template project. I also haven't figured out the whole workload thing or how we can support it | 04:53:26 | |
| you shouldnt even need the workload | 06:16:39 | |
| i dont have the workload, and never had it (and no im not using anything special here) | 06:16:52 | |
dotnet publish -c Release -r browser-wasm | 06:17:01 | |
as soon as i remove browser-wasm it builds fine | 06:17:13 | |
* as soon as i remove browser-wasm it builds fine, but fails to restore specifically under nix with the fetch-deps script | 06:17:28 | |
| 16:43:30 | ||
| Hi folks, I can't seem to get the NuGet dependencies working (https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/dotnet.section.md#generating-and-updating-nuget-dependencies-generating-and-updating-nuget-dependencies). Using
Anyone experienced something similar? | 16:47:23 | |
I am trying to package this NBitcoin module for bitcoinfuzz: https://github.com/quapka/bitcoinfuzz/blob/build-with-nix/modules/nbitcoin/default.nix | 16:51:57 | |
| I would try to figure out what's going on with `fetch-deps`. What's the last output you see? | 17:38:23 | |
Would be nice to be able to use the lock file generated by the dotnet restore --use-lock-file... that one is almost immediate. | 17:43:02 | |
| 17:48:30 | |
In reply to @x408788:fi.muni.czIs the problem that it's not using the lockfile during the build? | 18:30:21 | |
| That one is not in the correct format, not a list. I haven't investigated further. | 18:37:51 | |
I am re-trying fetch-deps with dotnet 10, but so far it got "stuck" on the same dotnetConfigureHook. | 18:38:32 | |
| could be taking a while because it has to redownload all dependencies cleanly | 18:39:41 | |
Maybe, but that seems to have been already done. At least the very first line was these 36 derivations will be built and it finished rather quickly. | 18:40:44 | |
| fairly certain that's for building the script itself | 18:41:04 | |