mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Decompiling one method or property previously required decompiling its whole type and searching the output, which is wasteful for scripted and agent-driven use against large assemblies. The new -m|--member option accepts an XML documentation id string (the syntax of compiler-generated documentation files and of the UI's --navigateto option) or a metadata token in 0x06000005 form, resolves it against the main module (with a bounds check for tokens and distinct error messages for malformed ids, unknown members, and members of other modules), and prints just that member through the engine's single-member decompilation path. The tests seed a new ICSharpCode.ILSpyCmd.Tests project (part of the XPlat and Desktop solution filters and of the per-project CI test steps), driving the real Main in-process via InternalsVisibleTo, so future ilspycmd features have a dedicated home for CLI tests. Assisted-by: Claude:claude-fable-5:Claude Code
79 lines
3.1 KiB
XML
79 lines
3.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<ServerGarbageCollection>true</ServerGarbageCollection>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<IsPackable>true</IsPackable>
|
|
<PackAsTool>true</PackAsTool>
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
|
|
<NeutralLanguage>en-US</NeutralLanguage>
|
|
<GenerateAssemblyVersionAttribute>False</GenerateAssemblyVersionAttribute>
|
|
<GenerateAssemblyFileVersionAttribute>False</GenerateAssemblyFileVersionAttribute>
|
|
<GenerateAssemblyInformationalVersionAttribute>False</GenerateAssemblyInformationalVersionAttribute>
|
|
<AssemblyName>ilspycmd</AssemblyName>
|
|
<ToolCommandName>ilspycmd</ToolCommandName>
|
|
<Description>Command-line decompiler using the ILSpy decompilation engine</Description>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
<PackageVersion>8.0.0.0-noversion</PackageVersion>
|
|
<Copyright>Copyright 2011-$([System.DateTime]::Now.Year) AlphaSierraPapa</Copyright>
|
|
<PackageProjectUrl>https://github.com/icsharpcode/ILSpy/</PackageProjectUrl>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageIcon>ILSpyCmdNuGetPackageIcon.png</PackageIcon>
|
|
<RepositoryUrl>https://github.com/icsharpcode/ILSpy/</RepositoryUrl>
|
|
<Company>ic#code</Company>
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
<Authors>ILSpy Team</Authors>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="AsContainer\**" />
|
|
<EmbeddedResource Remove="AsContainer\**" />
|
|
<None Remove="AsContainer\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="README.md" Pack="true" PackagePath="\" />
|
|
</ItemGroup>
|
|
|
|
<!-- https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/ -->
|
|
<PropertyGroup>
|
|
<RestoreLockedMode>true</RestoreLockedMode>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<WarningsAsErrors>NU1605</WarningsAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="ILSpyCmdNuGetPackageIcon.png" Pack="true" PackagePath="\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\ICSharpCode.ILSpyX\ICSharpCode.ILSpyX.csproj" />
|
|
<ProjectReference Include="..\ICSharpCode.Decompiler\ICSharpCode.Decompiler.csproj" />
|
|
<ProjectReference Include="..\ICSharpCode.BamlDecompiler\ICSharpCode.BamlDecompiler.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="McMaster.Extensions.Hosting.CommandLine" />
|
|
<PackageReference Include="Microsoft.Extensions.Hosting" />
|
|
<PackageReference Include="NuGet.Protocol" />
|
|
<PackageReference Include="System.Security.Cryptography.Pkcs" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="ILSpyUpdateAssemblyInfo" AfterTargets="ResolveProjectReferences">
|
|
<ReadLinesFromFile ContinueOnError="true" File="..\VERSION">
|
|
<Output TaskParameter="Lines" PropertyName="PackageVersion" />
|
|
</ReadLinesFromFile>
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="ICSharpCode.ILSpyCmd.Tests" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|