.net core copyToOutput未在.nuspec中设置,即使它是在内容的csproj文件中设置的
我在.csproj文件中有这个集合.net core copyToOutput未在.nuspec中设置,即使它是在内容的csproj文件中设置的,.net-core,nuget,visual-studio-2019,csproj,.net Core,Nuget,Visual Studio 2019,Csproj,我在.csproj文件中有这个集合 <ItemGroup> <Content Include="powershellcert.pfx" > <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> </ItemGroup> 总是 但是,当我看到为项目生成的nuget包中的.nuspec文件时,它没有为上述内容设置
<ItemGroup>
<Content Include="powershellcert.pfx" >
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
总是
但是,当我看到为项目生成的nuget包中的.nuspec文件时,它没有为上述内容设置copyToOutput
<contentFiles>
<files include="any/netcoreapp3.1/Properties/launchSettings.json" buildAction="Content" />
<files include="any/netcoreapp3.1/powershellcert.pfx" buildAction="Content" />
</contentFiles
您需要使用
因此:
总是
真的
真的
PS不确定是否需要
看