Skip to content

Commit

Permalink
Version beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Sep 20, 2024
1 parent ee5189e commit 038a4d4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 11 additions & 3 deletions ricaun.ILRepack.Sample.Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 0 additions & 2 deletions ricaun.ILRepack.Sample/JsonExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ public static T FromJson<T>(this string value)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(value);
}

public static string Name => typeof(Newtonsoft.Json.JsonConvert).Assembly.GetName().Name;
}
}
8 changes: 8 additions & 0 deletions ricaun.ILRepack.Sample/References.cs
Original file line number Diff line number Diff line change
@@ -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;
}
}
9 changes: 4 additions & 5 deletions ricaun.ILRepack.Sample/ricaun.ILRepack.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,18 @@

<ItemGroup>
<PackageReference Include="ricaun.ILRepack" Version="*-*" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Text.Json" Version="*" />
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>

<!--
<ItemGroup>
<ILRepackIgnoreReferences Include="Newtonsoft.Json.dll" />
<ILRepackIgnoreReferences Include="System.Text.Json.dll" />
</ItemGroup>
-->


<PropertyGroup>
<ILRepackImportance>High</ILRepackImportance>
<ILRepackCommandImportance>low</ILRepackCommandImportance>
Expand Down
2 changes: 1 addition & 1 deletion ricaun.ILRepack/ricaun.ILRepack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<PropertyGroup>
<PackageId>ricaun.ILRepack</PackageId>
<Version>1.0.0-alpha.4</Version>
<Version>1.0.0-beta</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 038a4d4

Please sign in to comment.