如何通过Nuget将propertyGroup-S或ItemGroup-S添加到CSPROJ中
为了使我的Nuget软件包正确工作,必须在csproj
文件中存在某些部分。如果我手动添加这些部分,可以通过操纵目标项目或添加.targets
文件,它可以正常工作。
我想做同样的事情,但会自动这样做,因此仅通过引用我的nuget软件包,我的自定义propertygroup
s就会注入C#项目。
我该怎么做?
For my nuget package to work correctly, there must be certain sections present in the csproj
file. If I add these sections manually, either through manipulating the target project or adding a .targets
file, it works correctly.
I want to do the same, but automatically, so that just by referencing my nuget package,my custom PropertyGroup
s get injected into the C# project.
How can I accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论