!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

118 Members
23 Servers

Load older messages


SenderMessageTime
8 Jan 2026
@sersorrel:matrix.org@sersorrel:matrix.org left the room.08:42:04
11 Jan 2026
@ivank:matrix.orgivan joined the room.01:45:48
@9hp71n:matrix.orgghpzin joined the room.16:15:20
17 Jan 2026
@emma:rory.gayEmma [it/its]hm, is there a case where the fetch-deps passthru script doesnt work?16:15:21
@emma:rory.gayEmma [it/its] unsure what i did wrong but im seeing it not touch my deps.json files when i've replaced the content with [] 16:15:57
@emma:rory.gayEmma [it/its] * unsure what i did wrong but im seeing it not touch my deps.json files when i've replaced the content with [], despite having direct dependencies 16:16:05
@emma:rory.gayEmma [it/its](the script doesnt even log anything at all)16:27:43
@emma:rory.gayEmma [it/its]well, i got it to behave i guess, for some reason it just needed to be ran multiple times16:32:57
23 Jan 2026
@emma:rory.gayEmma [it/its]

/nix/store/q8dadmxlzghlh64rgmvpkxka32yg44n9-dotnet-sdk-10.0.102/share/dotnet/sdk/10.0.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(440,5): error NETSDK1127: The targeting pack Microsoft.NETCore.App is not installed. Please restore and try again.

uh oh, surely thats not supposed to happen?

08:56:56
@emma:rory.gayEmma [it/its]oh, i guess this isnt something that's actually bundled with dotnet, odd08:57:45
@corngood:corngood.comCorngood
In reply to @emma:rory.gay
oh, i guess this isnt something that's actually bundled with dotnet, odd
We do have it in nixpkgs in dotnet-sdk_10.packages, but you have to do nuget.config stuff (or environment vars) for it to be used.
13:38:14
@emma:rory.gayEmma [it/its]ah13:45:31
25 Jan 2026
@emma:rory.gayEmma [it/its]hm, do i need to do anything special to make dotnet recognise a .nupkg dir as a nuget source?18:03:37
@emma:rory.gayEmma [it/its] im in their weird valley atm where dotnet package search will find my stuff, but dotnet restore doesnt 18:04:18
@emma:rory.gayEmma [it/its]
sh-5.3$ dotnet restore
    /home/Rory/git/spacebar/server-master/extra/admin-api/Utilities/Spacebar.Cdn.Fsck/Spacebar.Cdn.Fsck.csproj : error NU1102: 
      Unable to find package ArcaneLibs with version (>= 1.0.1-preview.20260125-175232)
        - Found 101 version(s) in nuget [ Nearest version: 1.0.0-preview9938860405.f09a666 ]
        - Found 0 version(s) in /nix/store/q8dadmxlzghlh64rgmvpkxka32yg44n9-dotnet-sdk-10.0.102/share/dotnet/library-packs
        - Found 0 version(s) in /nix/store/vknqgc4mvkjmgvxb5vk8y6b83lr85mjc-ArcaneLibs-1.0.1-preview.20260125-175232-nuget-artifacts
        - Found 0 version(s) in Infragistics
        - Found 0 version(s) in dotnet10-transport
    /home/Rory/git/spacebar/server-master/extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/Spacebar.Interop.Cdn.Abstractions.csproj : error NU1102: 
      Unable to find package ArcaneLibs with version (>= 1.0.1-preview.20260125-175232)
        - Found 101 version(s) in nuget [ Nearest version: 1.0.0-preview9938860405.f09a666 ]
        - Found 0 version(s) in /nix/store/q8dadmxlzghlh64rgmvpkxka32yg44n9-dotnet-sdk-10.0.102/share/dotnet/library-packs
        - Found 0 version(s) in /nix/store/vknqgc4mvkjmgvxb5vk8y6b83lr85mjc-ArcaneLibs-1.0.1-preview.20260125-175232-nuget-artifacts
        - Found 0 version(s) in Infragistics
        - Found 0 version(s) in dotnet10-transport

Restore failed with 2 error(s) in 2.6s

sh-5.3$ dotnet package search --prerelease 'ArcaneLibs'
****************************************
Source: /nix/store/vknqgc4mvkjmgvxb5vk8y6b83lr85mjc-ArcaneLibs-1.0.1-preview.20260125-175232-nuget-artifacts (file:///nix/store/vknqgc4mvkjmgvxb5vk8y6b83lr85mjc-ArcaneLibs-1.0.1-preview.20260125-175232-nuget-artifacts)
| Package ID                     | Latest Version                | Owners | Total Downloads |
| ------------------------------ | ----------------------------- | ------ | --------------- |
| ArcaneLibs.Logging             | 1.0.1-preview.20260125-175232 |        | N/A             |
| ------------------------------ | ----------------------------- | ------ | --------------- |
| ArcaneLibs.Blazor.Components   | 1.0.1-preview.20260125-175232 |        | N/A             |
| ------------------------------ | ----------------------------- | ------ | --------------- |
| ArcaneLibs.Legacy              | 1.0.1-preview.20260125-175232 |        | N/A             |
| ------------------------------ | ----------------------------- | ------ | --------------- |
| ArcaneLibs.StringNormalisation | 1.0.1-preview.20260125-175232 |        | N/A             |
| ------------------------------ | ----------------------------- | ------ | --------------- |
| ArcaneLibs.Timings             | 1.0.1-preview.20260125-175232 |        | N/A             |
| ------------------------------ | ----------------------------- | ------ | --------------- |
| ArcaneLibs                     | 1.0.1-preview.20260125-175232 |        | N/A             |
| ------------------------------ | ----------------------------- | ------ | --------------- |
18:05:41
@emma:rory.gayEmma [it/its](this is outside of makeDotnetMdoule)18:08:47
@corngood:corngood.comCorngoodWhere are the nupkgs coming from? It'll need to be in nuget.config18:16:18
@emma:rory.gayEmma [it/its]output of buildDotnetModule with pack=true, that im then zipping up18:16:51
@emma:rory.gayEmma [it/its](as i already had the zipping stuff, as i was already using the output to publish directly to nuget.org, but currently trying to work around the 15-30min delay in dev cycles by shoving them in a directory and adding that as a global NuGet source)18:17:50
@emma:rory.gayEmma [it/its]so current state of things is that i have a derivation that contains my entire repository's projects as .nupkg files in a directory, and im adding the nix store path to my nuget.cofig directly18:21:01
@emma:rory.gayEmma [it/its] the part i dont understand, is why its able to find them with dotnet package search, but then fails to restore in that same environment if you actually try to use it? 18:54:52
@emma:rory.gayEmma [it/its]
export DOTNET_CLI_HOME=/tmp
for path in ${pkgs.lib.concatStringsSep " " outPaths}; do
  ${pkgs.dotnet-sdk_10}/bin/dotnet nuget push "$path" --source "$out"
done

unsure why, but using this as an intermediary derivation does the trick

20:06:40
@corngood:corngood.comCorngoodStrange. Maybe if you compare that intermediary source to the nix store one?20:53:49
26 Jan 2026
@samuel:mnzn.devSamuel FYI nuget likes to cache things, even if you select a local directory as the package source. So if you don't change the version it might not pick up new changes. 18:52:05
@samuel:mnzn.devSamuel * FYI nuget likes to cache things, even if you select a local directory as the package source. So if you don't change the version number of a package it might not pick up new changes. I ran I to that before. 18:52:38
@samuel:mnzn.devSamuel * 18:52:52
1 Feb 2026
@sigmasquadron:matrix.orgFernando Rodrigues changed their display name from SigmaSquadron to Fernando Rodrigues.10:42:22
4 Feb 2026
@emma:rory.gayEmma [it/its]im awell are, i was clearing locals before testing00:31:29
@emma:rory.gayEmma [it/its]in another question: if i have ProjectReferences in a buildDotnetModule, it doesnt inherit dependencies, doe sit?00:31:45
@emma:rory.gayEmma [it/its]* in another question: if i have ProjectReferences in a buildDotnetModule, it doesnt inherit dependencies, does it?00:31:48

Show newer messages


Back to Room ListRoom Version: 9