From b8c69e798211dc0101b8397b013f9f6cb56a765e Mon Sep 17 00:00:00 2001 From: akulov Date: Mon, 15 Sep 2025 16:13:57 +0300 Subject: [PATCH 1/2] update build with AOT --- projects/yamldotnet/Program_sydr.cs | 21 ++++++++++++++++++--- projects/yamldotnet/program.csproj | 1 - 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/projects/yamldotnet/Program_sydr.cs b/projects/yamldotnet/Program_sydr.cs index f043ab364..912de18fc 100644 --- a/projects/yamldotnet/Program_sydr.cs +++ b/projects/yamldotnet/Program_sydr.cs @@ -27,23 +27,38 @@ public class Program public static void Main(string[] args) { try { + Console.WriteLine(0); + string yml = File.ReadAllText(args[0]); + var input = new StringReader(yml); var yaml = new YamlStream(); + var deserializer = new DeserializerBuilder() .WithNamingConvention(CamelCaseNamingConvention.Instance) .Build(); + var serializer = new SerializerBuilder() .JsonCompatible() .Build(); var doc = deserializer.Deserialize(input); + var json = serializer.Serialize(doc); - var parser = new Parser(input); + + var input2 = new StringReader(yml); + + var parser = new Parser(input2); + parser.Consume(); - yaml.Load(input); + + var input3 = new StringReader(yml); + yaml.Load(input3); + + } + catch (YamlException ex) { + Console.WriteLine(ex.Message); } - catch (YamlException) { } } } diff --git a/projects/yamldotnet/program.csproj b/projects/yamldotnet/program.csproj index f16a76074..7f610f99b 100644 --- a/projects/yamldotnet/program.csproj +++ b/projects/yamldotnet/program.csproj @@ -24,7 +24,6 @@ enable enable true - true From f076dfe29303442ba2949367bf06beb8d95e54bd Mon Sep 17 00:00:00 2001 From: akulov Date: Wed, 17 Sep 2025 17:28:33 +0300 Subject: [PATCH 2/2] update build with AOT --- projects/cppsharp/parser.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/cppsharp/parser.csproj b/projects/cppsharp/parser.csproj index 2c083c71d..e3579eaa8 100644 --- a/projects/cppsharp/parser.csproj +++ b/projects/cppsharp/parser.csproj @@ -21,9 +21,9 @@ Exe net8.0 + enable enable true - true