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

Remove unnecessary dll when build or publish a plugin #848

Closed
superboyiii opened this issue Nov 24, 2023 · 1 comment · Fixed by #846
Closed

Remove unnecessary dll when build or publish a plugin #848

superboyiii opened this issue Nov 24, 2023 · 1 comment · Fixed by #846

Comments

@superboyiii
Copy link
Member

Summary or problem description
Our plugins have a complex dependency structure, for example, StateService need MPT, need RpcServer, need Neo, and Neo need Neo-VM, so when you build or publish a plugin, you may get many dll from these dependency, but what we what is just these necessary when taken them into Plugins path of neo-cli.

Do you have any solution you want to propose?
Plugins excluding RpcServer itself, don't need build RpcServer in publish, Neo and Neo.ConsoleService as welll.
Where in the software does this update applies to?

  • Plugins
@cschuchardt88
Copy link
Member

cschuchardt88 commented Nov 24, 2023

you can add something like this

  <ItemGroup>
    <ProjectReference Include="..\B\B.csproj">
      <IncludeAssets>Compile;Runtime;Build;Native</IncludeAssets>
      <ExcludeAssets>ContentFiles;Analyzers</ExcludeAssets>
      <PrivateAssets>None</PrivateAssets>
    </ProjectReference>
  </ItemGroup>

just include the things you want. in the *.csproj file

Read more about it here https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#controlling-dependency-assets

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

Successfully merging a pull request may close this issue.

2 participants