更新时间:2023-02-12 17:10:03
在应用程序的依赖项$ c $中,我没有看到对您的库的引用c>部分。如果您的库和应用程序在同一个解决方案中,请确保使用
target:project
像这样:
I didn't see a reference to your library in your application's dependencies
section. If your library and your application are in the same solution, make sure you use target: project
like so:
ASP.NET Core项目的 project.json :
project.json of ASP.NET Core project:
"dependencies": {
...
"MyLibrary": {
"version": "1.0.0",
"target": "project"
}
}
否则,NuGet会将您的库作为软件包查找,而不是在解决方案中查找。
Otherwise, NuGet will look for your library as a package instead of looking in the solution.