Skip to content

Commit 3e59ddc

Browse files
committed
refactor: Update PublicApiCheck to net10
1 parent 1f47ef2 commit 3e59ddc

3 files changed

Lines changed: 18 additions & 43 deletions

File tree

sources/tools/Stride.PublicApiCheck/ApiCheck.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ namespace Stride.PublicApiCheck
1313
{
1414
/// <summary>
1515
/// Helper class to check public API consistency between assemblies.
16+
/// This tool attempts to detect breaking changes.
17+
/// <para>
18+
/// Command-line usage:
19+
/// <code>
20+
/// ApiCheck.exe &lt;from&gt; &lt;to&gt;
21+
/// Example:
22+
/// ApiCheck.exe OldVersion.dll NewVersion.dll
23+
/// </code>
24+
/// This will compare the public API of <c>OldVersion.dll</c> against
25+
/// <c>NewVersion.dll</c> and print missing API items, if any.
26+
/// </para>
1627
/// </summary>
1728
public static class ApiCheck
1829
{
@@ -92,7 +103,7 @@ public static string DiffAssemblyToString(string from, string to)
92103
if (diff.Count > 0)
93104
{
94105
var output = new StringBuilder();
95-
output.AppendFormat("{0} public missing in {1}", diff.Count, Path.GetFileName(to));
106+
output.AppendFormat("== {0} public missing in {1} ==", diff.Count, Path.GetFileName(to));
96107
output.AppendLine();
97108
foreach (var diffItem in diff)
98109
{

sources/tools/Stride.PublicApiCheck/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<OutputType>Exe</OutputType>
4-
<TargetFramework>net40</TargetFramework>
5-
<StrideCommonDependenciesDir>..\..\..\deps\</StrideCommonDependenciesDir>
6-
<StrideBuildTags>WindowsTools</StrideBuildTags>
7-
</PropertyGroup>
8-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
9-
<PlatformTarget>AnyCPU</PlatformTarget>
10-
<OutputPath>bin\Debug\</OutputPath>
11-
</PropertyGroup>
12-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
13-
<PlatformTarget>AnyCPU</PlatformTarget>
14-
<DebugType>pdbonly</DebugType>
15-
<Optimize>true</Optimize>
16-
<OutputPath>bin\Release\</OutputPath>
17-
<DefineConstants>TRACE</DefineConstants>
5+
<TargetFramework>net10.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
188
</PropertyGroup>
9+
1910
<ItemGroup>
2011
<PackageReference Include="Mono.Cecil" />
2112
</ItemGroup>
13+
2214
</Project>

0 commit comments

Comments
 (0)