!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

125 Members
24 Servers

Load older messages


SenderMessageTime
14 Aug 2023
@magikarpz:matrix.orgmdarochafetch-deps runs nuget-to-nix internally07:45:59
@magikarpz:matrix.orgmdarochawhat problem did you run into that you had to run nuget-to-nix?07:46:17
@emma:rory.gayEmma [it/its]my issue is that its missing a framework dependency07:46:22
@emma:rory.gayEmma [it/its]i dont remember, its been ages and i stuck with it07:46:39
@magikarpz:matrix.orgmdarochaare you trying to package a .net framework app?07:46:56
@emma:rory.gayEmma [it/its]no, im building a blazor wasm app07:47:11
@magikarpz:matrix.orgmdarocha oh yeah, the error you posted above right 07:47:45
@magikarpz:matrix.orgmdarochahmm seems like this package is restored differently internally07:47:58
@emma:rory.gayEmma [it/its] i had to explicitly add this line to deps.nix for my project to fix that error:
(fetchNuGet { pname = "Microsoft.NETCore.App.Runtime.Mono.browser-wasm"; version = "7.0.9"; sha256 = "PHY9n/4/MY3FdnsQWXr/UyByzSxStzcXt11Ys9reN8w="; })
07:48:01
@magikarpz:matrix.orgmdarochaand it’s not being picked up by nuget-to-nix07:48:14
@magikarpz:matrix.orgmdarochayeah that should fix it for now07:48:23
@emma:rory.gayEmma [it/its]now im dealing with a NETSDK1084 (no app host available for specific RuntimeIdentifier)07:48:32
@emma:rory.gayEmma [it/its]
In reply to @magikarpz:matrix.org
and it’s not being picked up by nuget-to-nix
because its a framework dep, not a project dep
07:48:47
@magikarpz:matrix.orgmdarochait’ll need to be fixed upstream in nixpkgs07:48:55
@emma:rory.gayEmma [it/its]i guess so, since it has a package type of DotnetPlatform07:49:23
@magikarpz:matrix.orgmdarocha that can also be because of a missing nuget 07:49:42
@magikarpz:matrix.orgmdarochamost of the platform packages are bundled with the dotnet-sdk package in nixpkgs07:50:03
@emma:rory.gayEmma [it/its]yeah this one is just missing07:50:14
@magikarpz:matrix.orgmdarochabut i guess all the blazor stuff isn’t there, so it has to be added07:50:19
@yarekt:matrix.orgYarek THmm, with dotnet you usually specify all the dependencies in its <foo>.csproj file, and they get pulled down in a restore step. Does Nix replace that somehow?16:39:14
@yarekt:matrix.orgYarek TI suppose it wants to if it needs reproducible builds16:39:25
@yarekt:matrix.orgYarek T Oh, are you using dotnetCorePackages.sdk_7_0 or pkgs.dotnet-sdk_7 ? because the former doesn't package aspnetcore even though it says it should 16:41:49
@yarekt:matrix.orgYarek TOh wait, isn't mono like completely gone from dotnet these days? Hmm. Is this thing open source? Do you have something I can replicate on my machine?16:46:26
@magikarpz:matrix.orgmdarochadotnet-sdk_7 is an alias to dotnetcorePackages.sdk_7_0, so I don't know how you can encounter differences between the two16:51:04
@magikarpz:matrix.orgmdarochathey both point to a packaged sdk, which should contain the aspnetcore framework files16:51:23
@magikarpz:matrix.orgmdarocha
In reply to @yarekt:matrix.org
Hmm, with dotnet you usually specify all the dependencies in its <foo>.csproj file, and they get pulled down in a restore step. Does Nix replace that somehow?
in case of Nix, it runs dotnet restore and then builds a deps.nix based on the restored nugets. This doesnt always work, cause sometimes (ie. in case of alternative sdk packages) not all nugets are pulled at restore
16:52:24
@magikarpz:matrix.orgmdarochabut most framework and SDK stuff is included by default when using buildDotnetModule, so it isn't usually a problem16:52:53
@magikarpz:matrix.orgmdarochathe error like with blazor is mostly probably due to missing stuff in the dependencies included by default, which aren't also properly picked up into deps.nix16:53:40
@magikarpz:matrix.orgmdarochaunless there's some other problems, it would also help with debugging to share a repo with a reproduction of the problems16:54:19
@magikarpz:matrix.orgmdarocha * unless there's some other problems, it would also help with debugging to share a repo with a reproduction of the errors16:54:24

Show newer messages


Back to Room ListRoom Version: 9