!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

120 Members
24 Servers

Load older messages


SenderMessageTime
14 Dec 2025
@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
13 Oct 2022
@winterqt:nixos.devWinter (she/her) joined the room.17:56:01
12 Nov 2022
@sg-qwt:nltrix.net321, jiayou! joined the room.09:31:11
@sg-qwt:nltrix.net321, jiayou! left the room.09:31:52
16 Nov 2022
@omlet:matrix.orgomlet joined the room.20:33:57
25 Nov 2022
@raphi:tapesoftware.netraphi changed their profile picture.19:41:53
1 Dec 2022
@hexa:lossy.networkhexa changed their display name from hexa to hexa (22.11 now).13:08:55
@hexa:lossy.networkhexa changed their display name from hexa (22.11 now) to hexa.14:38:43
12 Jan 2023
@daniel:nopemail.orgdaniel joined the room.12:58:04
@daniel:nopemail.orgdanielAnyone who has some experience with packaging a .NET-project using flakes? All prior art I’ve found seems to use the legacy way.13:02:55
@winterqt:nixos.devWinter (she/her)
In reply to @daniel:nopemail.org
Anyone who has some experience with packaging a .NET-project using flakes? All prior art I’ve found seems to use the legacy way.

flakes are the same way as the "legacy way," all flakes help with is exposing the package.

what trouble are you running into?

14:23:13
@daniel:nopemail.orgdaniel
In reply to @winterqt:nixos.dev

flakes are the same way as the "legacy way," all flakes help with is exposing the package.

what trouble are you running into?

How to "expose"/run fetch-deps
14:24:38
@winterqt:nixos.devWinter (she/her) just do nix build .#whateverPackage.fetch-deps 14:25:11
@daniel:nopemail.orgdanielI did that over and over, realized now that I of course called it with the wrong package name. Thanks though!14:29:12
@winterqt:nixos.devWinter (she/her)
In reply to @daniel:nopemail.org
I did that over and over, realized now that I of course called it with the wrong package name. Thanks though!
(was it not erroring?)
14:31:10
@daniel:nopemail.orgdaniel
In reply to @winterqt:nixos.dev
(was it not erroring?)
It was, but I thought that meant that somehow fetch-deps didn't pass through correctly.
14:33:24
17 Jan 2023
@daniel:nopemail.orgdanielFetch-deps doesn't seem to handle project references correctly, am I observing this right? The script wants to look for the project dependencies in the "nuget.org" source.11:07:33
@raphi:tapesoftware.netraphi in my experience <ProjectReference> just works, as long both the referring project and the referenced project are part of src
example: https://github.com/raphaelr/nugettest
if they are separated search for projectReferences in the nixpkgs manual
11:48:50
22 Jan 2023
@omlet:matrix.orgomlet left the room.20:26:21

Show newer messages


Back to Room ListRoom Version: 9