!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

114 Members
23 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
14 Aug 2025
@oatmealraisin:matrix.orgoatmealraisinIdk if I can replicate at this point, a lot has changed22:12:52
@corngood:corngood.comCorngoodWell in that case the projectFile would just be `API.csproj`, or you could probably just omit it.22:13:37
@oatmealraisin:matrix.orgoatmealraisinYes, but projectReferences would be missing, I don't have error logs but it would complain about the csproj files for project references being missing22:15:49
@oatmealraisin:matrix.orgoatmealraisinIt's very possible I was doing something else wrong, but now all the nix stuff is in a different directory22:20:04
@corngood:corngood.comCorngood

Yeah, you can't do it with ProjectReference. You need to use PackageReference. There are basically two ways to do what you're trying to do, and you're sort of in-between them:

  1. one nix derivation with an assortment of projects linked together with ProjectReference, one deps.json

  2. one nix derivation per nuget package with packNupkg = true, using PackageReference

22:24:38
@gggkiller:matrix.orgGGGby default it just copies all json files to publish output22:47:48
@gggkiller:matrix.orgGGG(I can't remember if it's ASP.NET Core specific or not)22:47:59
15 Aug 2025
@emma:rory.gayEmma [it/its]huh? i've never had aspnetcore do that12:55:48
@emma:rory.gayEmma [it/its]it sure doesnt copy appsettings.Local.json12:56:14
@emma:rory.gayEmma [it/its]* it sure doesnt copy appsettings.Local.json by default12:56:18

Show newer messages


Back to Room ListRoom Version: 9