Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Gu.Roslyn.Extensions.Source Trim unused members #192

Open
workgroupengineering opened this issue Mar 23, 2023 · 2 comments
Open

Comments

@workgroupengineering
Copy link

Hi,
I use Gu.Roslyn.Extensions.Source only a few methods (Is,KnownSymbols,IsExcludedFromAnalysis,IsAssignableTo). Is there a way to trim unused members?

@workgroupengineering workgroupengineering changed the title [Quiestion] Gu.Roslyn.Extensions.Source Trim unused members [Question] Gu.Roslyn.Extensions.Source Trim unused members Mar 23, 2023
@workgroupengineering
Copy link
Author

workaround

  <ItemGroup>
    <PackageReference Include="Gu.Roslyn.Extensions.Source" Version="0.16.6" GeneratePathProperty="true" />
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="$(PkgGu_Roslyn_Extensions_Source)\contentFiles\cs\any\CodeFixExtensions\**" />
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="$(PkgGu_Roslyn_Extensions_Source)\contentFiles\cs\any\AnalyzerExtensions\AccessibilityExt.cs" />
    ...
  </ItemGroup>

@JohanLarsson
Copy link
Member

Not that I know of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants