!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

123 Members
23 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@6pak:matrix.org6pakwith former you can specify a different target to build and do crazy stuff22:20:58
@gggkiller:matrix.orgGGGYeah, .NET really wasn't made to work like this, were really trying to shove a square cube into a circle22:21:00
@gggkiller:matrix.orgGGG* Yeah, .NET really wasn't made to work like this, were really trying to shove a square cube into a circle hole22:21:08
@6pak:matrix.org6pak * 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 annoyingly22:21:25
@gggkiller:matrix.orgGGG* Yeah, .NET really wasn't made to work like this, we're really trying to shove a square cube into a circle hole22:21:26
@whovian9369:matrix.orgWhovian9369 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
@whovian9369:matrix.orgWhovian9369 *

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]

Edit: Sorry for interrupting!

22:23:10
@corngood:corngood.comCorngoodSo this is something meant to build with an older SDK? You may just have to fix things like that unfortunately.22:24:51
@corngood:corngood.comCorngoodOr maybe you just need to set an explicit language version?22:25:52
@corngood:corngood.comCorngood

CS9194: Argument may not be passed with the ref keyword. To pass ref arguments to in parameters, upgrade to language version 12 or greater.

22:26:38
@whovian9369:matrix.orgWhovian9369 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
@whovian9369:matrix.orgWhovian9369 * 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
@corngood:corngood.comCorngood do the project files have LangVersion? 22:27:28
@6pak:matrix.org6pakit does https://github.com/aaru-dps/Aaru/blob/v5.3.2/Aaru.Images/Aaru.Images.csproj#L2022:27:58
@6pak:matrix.org6pakno clue how it compiled in the first place22:28:02
@corngood:corngood.comCorngoodmaybe the have build scripts that override it or something?22:28:32
@corngood:corngood.comCorngood* maybe they have build scripts that override it or something?22:28:36
@samuel:mnzn.devSamuel
In reply to @6pak:matrix.org
it does https://github.com/aaru-dps/Aaru/blob/v5.3.2/Aaru.Images/Aaru.Images.csproj#L20
Huh that's cursed
22:28:50
@corngood:corngood.comCorngood maybe try with -p:LangVersion=12.0 or latest 22:29:12
@whovian9369:matrix.orgWhovian9369Trying with that, thank you!22:30:09
@whovian9369:matrix.orgWhovian9369Also thank you all so much for the thoughts here!22:30:18
@corngood:corngood.comCorngood So the v5.3.2 tag is what you're building? Looks like the main branch has newer LangVersion set. 22:31:08
@6pak:matrix.org6pakI assume you don't want a prerelease version for "Data Preservation Suite"22:31:49
@corngood:corngood.comCorngoodI also don't really understand why it would have built before, but maybe the previous SDK was less strict about checking features or something? 22:32:25
@6pak:matrix.org6paklikely22:32:38
@6pak:matrix.org6pakref safety got a lot of changes recently22:32:48
@6pak:matrix.org6pakbut generally you get new warnings/errors when you switch to a newer langversion, not just the compiler22:33:11
@corngood:corngood.comCorngood So I guess you could either set LangVersion globally or patch the specific csproj 22:33:30
@corngood:corngood.comCorngoodMay end up being a can of worms though22:33:44
@gggkiller:matrix.orgGGG
In reply to @corngood:corngood.com
I also don't really understand why it would have built before, but maybe the previous SDK was less strict about checking features or something?
Could be some changes to overload resolution
22:34:00

Show newer messages


Back to Room ListRoom Version: 9