首页 新闻 赞助 找找看

为什么nuget包content中包含的文件在netcore项目里面不会复制到项目?

0
悬赏园豆:5 [已解决问题] 解决于 2019-04-08 16:03

为什么nuget包里的content里的内容在netcore项目里面不会复制到项目?但是在netframework里面就会复制到项目里面。

问题补充:

已解决:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>TestContent</id>
<version>1.1.2</version>
<authors>TestContent</authors>
<owners>TestContent</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Package Description</description>
<dependencies>
<group targetFramework=".NETFramework4.5" />
<group targetFramework=".NETStandard2.0" />
</dependencies>
<contentFiles>
<files include="any\any\wwwroot\dfc\index.html" buildAction="Content" copyToOutput="true"/>
</contentFiles>
</metadata>
<files>
<file src="content\dfc\index.html" target="content\dfc\index.html" />
<file src="contentFiles\any\any\wwwroot\dfc\index.html" target="contentFiles\any\any\wwwroot\dfc\index.html" />
<file src="lib\net45\TestContent.dll" target="lib\net45\TestContent.dll" />
<file src="lib\netstandard2.0\TestContent.dll" target="lib\netstandard2.0\TestContent.dll" />
<file src="lib\netstandard2.0\TestContent.xml" target="lib\netstandard2.0\TestContent.xml" />
</files>
</package>

sky_net的主页 sky_net | 初学一级 | 园豆:10
提问于:2019-04-08 11:30
< >
分享
最佳答案
0
收获园豆:5
dudu | 高人七级 |园豆:31075 | 2019-04-08 12:56

谢谢,已解决。

sky_net | 园豆:10 (初学一级) | 2019-04-08 16:03

@sky_net: 你好,问一下你的问题解决了吗,我现在也是碰到了这个问题

SpringLeee | 园豆:202 (菜鸟二级) | 2020-02-03 15:36
其他回答(1)
0

你好,问一下你的问题解决了吗,我现在也是碰到了这个问题

SpringLeee | 园豆:202 (菜鸟二级) | 2020-02-03 15:36
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册