更新时间:2022-05-03 04:31:22
contentFiles
应该作为链接添加. contentFiles
部分控制为这些文件生成的msbuild项目,这些项目将生成 obj \ projectname.csproj.nuget.g.props
文件.
contentFiles
are supposed to be added as a link. The contentFiles
section controls the msbuild items that are generated for these files into the obj\projectname.csproj.nuget.g.props
file.
copyToOutput ="true"
将导致将项目复制到输出和发布目录.但是,这在开发过程中运行应用程序时无济于事,因为它将从项目目录而不是输出目录运行.
The copyToOutput="true"
will cause the items to be copied to the output and publish directory. However that does not help you when running the application during development, since it will be run from the project directory, not the output directory.
考虑通过 npm
使用客户端库(因为不赞成使用Bower).
Consider consuming client libraries via npm
(since bower is deprecated).