From 038a4d49516a23fb0191e059bcff73921171faf2 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Fri, 20 Sep 2024 11:08:37 -0300 Subject: [PATCH] Version beta --- CHANGELOG.md | 5 +++-- ricaun.ILRepack.Sample.Tests/Tests.cs | 14 +++++++++++--- ricaun.ILRepack.Sample/JsonExtension.cs | 2 -- ricaun.ILRepack.Sample/References.cs | 8 ++++++++ .../ricaun.ILRepack.Sample.csproj | 9 ++++----- ricaun.ILRepack/ricaun.ILRepack.csproj | 2 +- 6 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 ricaun.ILRepack.Sample/References.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index d87d088..60c4e7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [1.0.0] / 2024-09-03 -- First Release +## [1.0.0] / 2024-09-03 - 2024-09-20 +- Add `ILRepack` options using `PropertyGroups`. - Add `ILRepackIgnoreReferences` to ignore references to be repack. +- Add `Tests` to validate the repack. [vNext]: ../../compare/1.0.0...HEAD [1.0.0]: ../../compare/1.0.0 \ No newline at end of file diff --git a/ricaun.ILRepack.Sample.Tests/Tests.cs b/ricaun.ILRepack.Sample.Tests/Tests.cs index bf7f21f..50ddb92 100644 --- a/ricaun.ILRepack.Sample.Tests/Tests.cs +++ b/ricaun.ILRepack.Sample.Tests/Tests.cs @@ -21,11 +21,19 @@ public void TestJson() } [Test] - public void TestJsonName() + public void TestReferenceName_AreEqual() { var name = typeof(Class).Assembly.GetName().Name; - Console.WriteLine(JsonExtension.Name); - Assert.AreEqual(name, JsonExtension.Name); + Console.WriteLine(References.Newtonsoft_Json); + Assert.AreEqual(name, References.Newtonsoft_Json); + } + + [Test] + public void TestReferenceName_AreNotEqual() + { + var name = typeof(Class).Assembly.GetName().Name; + Console.WriteLine(References.System_Text_Json); + Assert.AreNotEqual(name, References.System_Text_Json); } [Test] diff --git a/ricaun.ILRepack.Sample/JsonExtension.cs b/ricaun.ILRepack.Sample/JsonExtension.cs index d574c3f..53cc88e 100644 --- a/ricaun.ILRepack.Sample/JsonExtension.cs +++ b/ricaun.ILRepack.Sample/JsonExtension.cs @@ -11,7 +11,5 @@ public static T FromJson(this string value) { return Newtonsoft.Json.JsonConvert.DeserializeObject(value); } - - public static string Name => typeof(Newtonsoft.Json.JsonConvert).Assembly.GetName().Name; } } \ No newline at end of file diff --git a/ricaun.ILRepack.Sample/References.cs b/ricaun.ILRepack.Sample/References.cs new file mode 100644 index 0000000..85875c1 --- /dev/null +++ b/ricaun.ILRepack.Sample/References.cs @@ -0,0 +1,8 @@ +namespace ricaun.ILRepack.Sample +{ + public static class References + { + public static string Newtonsoft_Json => typeof(Newtonsoft.Json.JsonConvert).Assembly.GetName().Name; + public static string System_Text_Json => typeof(System.Text.Json.JsonSerializer).Assembly.GetName().Name; + } +} \ No newline at end of file diff --git a/ricaun.ILRepack.Sample/ricaun.ILRepack.Sample.csproj b/ricaun.ILRepack.Sample/ricaun.ILRepack.Sample.csproj index 29ab982..8c160e4 100644 --- a/ricaun.ILRepack.Sample/ricaun.ILRepack.Sample.csproj +++ b/ricaun.ILRepack.Sample/ricaun.ILRepack.Sample.csproj @@ -30,19 +30,18 @@ - + + - - + High low diff --git a/ricaun.ILRepack/ricaun.ILRepack.csproj b/ricaun.ILRepack/ricaun.ILRepack.csproj index 6b16e80..015fca3 100644 --- a/ricaun.ILRepack/ricaun.ILRepack.csproj +++ b/ricaun.ILRepack/ricaun.ILRepack.csproj @@ -31,7 +31,7 @@ ricaun.ILRepack - 1.0.0-alpha.4 + 1.0.0-beta