Nix + dotnet | 127 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Dec 2024 | ||
| Like, if you build both a program and a nuget package, you'd want them in separate packages, because it makes no sense to have a single package with both as a user of either doesn't need the other | 22:18:59 | |
| so you can just decide what you want to build in buildPhase | 22:19:02 | |
| and have a flexible way to gather nuget deps | 22:19:13 | |
In reply to @6pak:matrix.orgThat's not the standard in nixpkgs currently though | 22:19:14 | |
| It'd be very confusing | 22:19:18 | |
projectReferences is just buildInputs now | 22:19:28 | |
| And inconsistent with the rest of nixpkgs | 22:19:29 | |
| I'd rather have buildDotnetModule but also be able to use individual helpers to do the more complicated stuff if people want. | 22:19:59 | |
| yeah I just mean you can't easily replace ProjectReference with PackageReference in msbuild | 22:20:22 | |
| both have their own quirks | 22:20:26 | |
| with former you can specify a different target to build and do crazy stuff | 22:20:58 | |
| Yeah, .NET really wasn't made to work like this, were really trying to shove a square cube into a circle | 22:21:00 | |
| * Yeah, .NET really wasn't made to work like this, were really trying to shove a square cube into a circle hole | 22:21:08 | |
| * with former you can specify a different target to build and do crazy stuff, the latter auto imports stuff like build.props and analyzers which the former doesn't annoyingly | 22:21:25 | |
| * Yeah, .NET really wasn't made to work like this, we're really trying to shove a square cube into a circle hole | 22:21:26 | |
| So it looks like my current issue is that some language details that I'm unfamiliar with (as I'm not a C# dev) For example, /build/source/Aaru.Images/AaruFormat/Write.cs(4356,58): error CS9194: Argument 2 may not be passed with the 'ref' keyword in language version 8.0. To pass 'ref' arguments to 'in' parameters, upgrade to language version 12.0 or greater. [/build/source/Aaru.Images/Aaru.Images.csproj] | 22:22:55 | |
| * So it looks like my current issue is that some language details that I'm unfamiliar with (as I'm not a C# dev) Edit: Sorry for interrupting! | 22:23:10 | |
| So this is something meant to build with an older SDK? You may just have to fix things like that unfortunately. | 22:24:51 | |
| Or maybe you just need to set an explicit language version? | 22:25:52 | |
| 22:26:38 | |
Yeah, I just remembered that it's originally a netcoreapp3.1 app and not a net7.0 one, so I have to manually substituteInPlace to go from one to the other to get it to build with net7.0. | 22:26:43 | |
* Yeah, I just remembered that it's originally a netcoreapp3.1 app and not a net7.0 one, so I have to manually substituteInPlace to go from one to the other to get it to build with net7.0. (Likely to get it to build in the first place, haha.) | 22:27:10 | |
do the project files have LangVersion? | 22:27:28 | |
| it does https://github.com/aaru-dps/Aaru/blob/v5.3.2/Aaru.Images/Aaru.Images.csproj#L20 | 22:27:58 | |
| no clue how it compiled in the first place | 22:28:02 | |
| maybe the have build scripts that override it or something? | 22:28:32 | |
| * maybe they have build scripts that override it or something? | 22:28:36 | |
In reply to @6pak:matrix.orgHuh that's cursed | 22:28:50 | |
maybe try with -p:LangVersion=12.0 or latest | 22:29:12 | |
| Trying with that, thank you! | 22:30:09 | |