!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

120 Members
23 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@gggkiller:matrix.orgGGGJust doing roll forward won't work because it still needs the older SDK to build so you'll still get the insecure warning.21:49:31
@whovian9369:matrix.orgWhovian9369 So my current issue (which I haven't looked into yet, whoops) is That I'm getting errors because of hardcoded RuntimeIdentifiers at https://github.com/aaru-dps/Aaru/blob/f4fef21d0d88b7931b95549782563db4da91a8f8/Aaru/Aaru.csproj#L21 21:52:54
@6pak:matrix.org6pakglobal properties override project ones21:53:41
@6pak:matrix.org6pak so you can do -p:RuntimeIdentifiers= 21:53:48
@whovian9369:matrix.orgWhovian9369My issue with just building using Net 8.0 was that it still wanted Net 7 Runtime, which threw a slight wrench in the works too.21:53:54
@whovian9369:matrix.orgWhovian9369And building with 8 SDK and 8 Runtime gives me the Runtime issue.21:54:13
@whovian9369:matrix.orgWhovian9369* And building with 8 SDK and 8 Runtime gives me the Runtime Identifiers issue.21:54:23
@gggkiller:matrix.orgGGG* You could just do a patch (or substituteInPlace if you're lazy) to replace all TargetFramework labels to net8.0 or net9.0 *if* the app doesn't use any APIs that had breaking changes21:55:12
@whovian9369:matrix.orgWhovian9369 runtimeId = "linux-x64"; should override that then, right? Or should I be doing it using like dotnetFlags = [ "-p:RuntimeIdentifiers=linux-x64" ] 21:55:19
@gggkiller:matrix.orgGGGLatter21:55:31
@6pak:matrix.org6pak I think nixpkgs dotnet stuff sets RuntimeIdentifier 21:55:35
@6pak:matrix.org6pak so if you empty out RuntimeIdentifiers, it will work like you want it to 21:55:44
@whovian9369:matrix.orgWhovian9369I'll have to try it out then, thanks!21:55:53
@gggkiller:matrix.orgGGGYou'll probably want to use `dotnetCorePackages.systemToRuntimeId` to transform the `stdenv.targetSystem` into a RuntimeIdentifier21:56:42
@6pak:matrix.org6pakhostSystem*21:57:06
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
I think nixpkgs dotnet stuff sets RuntimeIdentifier
Does it? Lemme double check
21:57:06
@gggkiller:matrix.orgGGGI already forgot21:57:12
@6pak:matrix.org6pakbut even then, just let builddotnetmodule fill it out21:57:23
@whovian9369:matrix.orgWhovian9369 (Also I have dotnetBuildFlags and dotnetInstallFlags set separately since I remember having issues via dotnetFlags -- Something relating to the restore phase, if memory serves? I'll have to try that again later.) 21:57:50
@6pak:matrix.org6pakimage.png
Download image.png
21:58:11
@6pak:matrix.org6pakbut for the actual build, it only does sometimes...21:58:39
@6pak:matrix.org6pakimage.png
Download image.png
21:58:42
@6pak:matrix.org6pakfor some reason21:58:43
@6pak:matrix.org6pak tbh I hate everything about buildDotnetModule 21:58:58
@6pak:matrix.org6pakit's just so wrong21:59:01
@gggkiller:matrix.orgGGGOh yeah, I wonder if we should fill `RuntimeIdentifiers` based on the supported platforms in meta21:59:27
@6pak:matrix.org6pakno21:59:35
@6pak:matrix.org6pakyou should fill it out based on hostPlatform21:59:43
@6pak:matrix.org6pak * you should fill it out based on hostSystem21:59:46
@gggkiller:matrix.orgGGGThat might solve a few issues21:59:48

Show newer messages


Back to Room ListRoom Version: 9