-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
目前,通过 NuGet 引用时,生成的引用代码是这样的:
<PackageReference Include="LuYao.ResourcePacker.MSBuild" Version="0.1.4"/>但是,客户希望改成下面的样子。
<PackageReference Include="LuYao.ResourcePacker.MSBuild" Version="0.1.4" OutputItemType="Analyzer" ReferenceOutputAssembly="false">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>经过我的测试,改完之后,需要单独再引用一次 LuYao.ResourcePacker 包,否则会编译失败。我觉得这个可以接受。
同时,对 LuYao.ResourcePacker.MSBuild 的依赖也不会继续传递了,我认为是件好事。
我的需求是:
- 请解释一下修改后的代码做了什么事情,会产生什么后果。
- 想办法让 NuGet 引用时,默认生成修改后的引用代码。
Copilot
Metadata
Metadata
Assignees
Labels
No labels