Herbs And Spices
Herbs And Spices
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
Its working great! json polymorphic doesn't seem to be needed. I can't wait to be able to save effects in my game now
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
thanks to both of you
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
it works now after i added using System.Text.Json.Serialization;!
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
looks like it
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
<Project Sdk="Godot.NET.Sdk/4.2.1"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework> <TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework> <EnableDynamicLoading>true</EnableDynamicLoading> </PropertyGroup> <ItemGroup> <PackageReference Include="System.Text.Json" Version="8.0.0" /> </ItemGroup> </Project>
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
its still giving me the same error
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
wait what do i do with that?
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
yes
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
how can i do that?
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
thanks for your help, ill see if I can find a workaround
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
in the documentation it says it works with .net7 and up, so it looks like im out of luck
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
I'm using c# with the godot engine, so I'm not sure if i cant upgrade to 7 or 8
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
dotnet 6 doesn't support that
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
crap
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
<Project Sdk="Godot.NET.Sdk/4.2.1"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework> <TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework> <EnableDynamicLoading>true</EnableDynamicLoading> </PropertyGroup> </Project>
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
No description
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
how do i see the framework?
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
I already have system.text.json
46 replies
CC#
Created by Herbs And Spices on 1/8/2024 in #help
✅ Trying to use a polymorphic type discriminator to deserialize child classes
I keep getting this errorThe type or namespace name 'JsonDerivedTypeAttribute' could not be found (are you missing a using directive or an assembly reference?)
46 replies