Dotnet Store产生的输出是什么?

发布于 2025-01-24 11:45:13 字数 752 浏览 1 评论 0原文

我有一个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:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

子栖 2025-01-31 11:45:13

dotnet restore命令还原文件%userProfile%\。nuget \ packages在Windows上作为默认设置。

我们可以使用- 软件包 args设置另一个路径。

如果您想查看.dll,我们可能需要观看bin文件夹而不是obj文件夹作为默认设置。

然后使用dotnet build.dll文件构建到bin

dotnet restore command restore files in %userprofile%\.nuget\packages on Windows as default setting.

we can use --packages args to set another path.

If you want to see the .dll, we might need to watch bin folder instead of obj folder as the default setting.

Then use dotnet build which will build the .dll files into bin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文