Dotnet Store产生的输出是什么?
我有一个ASP.NET核心Web应用程序项目文件,如下所示:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="6.3.0" />
</ItemGroup>
</Project>
当我运行dotnet Restore
时,我在OBJ文件夹中生成了文件为:
我没有看到任何与AutoFac相关的文件,我希望看到一个文件,例如autofac.dll
或这样的sth,那在哪里?不是dotnet还原的目的
是 还原项目的依赖项,这意味着下载AutoFac软件包,以便可以使用应用程序构建它?
I have an asp.net core web application project file as below:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="6.3.0" />
</ItemGroup>
</Project>
When I run dotnet restore
, I got files generated in obj folder as:
I didn't see any file that is related to Autofac, I expected to see a file like autofac.dll
or sth like this, so where is it? isn't the purpose of dotnet restore
is to
restore the dependencies of a project, which means to download the Autofac package so that it can be build with the application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
dotnet restore
命令还原文件%userProfile%\。nuget \ packages
在Windows上作为默认设置。如果您想查看
.dll
,我们可能需要观看bin
文件夹而不是obj
文件夹作为默认设置。然后使用
dotnet build
将.dll
文件构建到bin
dotnet restore
command restore files in%userprofile%\.nuget\packages
on Windows as default setting.If you want to see the
.dll
, we might need to watchbin
folder instead ofobj
folder as the default setting.Then use
dotnet build
which will build the.dll
files intobin