gpt4 book ai didi

c# - 在哪里可以找到 VS2017 Azure Function Project 中的项目引用

转载 作者:行者123 更新时间:2023-12-03 03:04:56 25 4
gpt4 key购买 nike

我已经使用 VS2017 Preview 3.0 创建了一个 Azure Function 项目。奇怪的是,当我添加对 System.Net.Http 的引用时,该项目编译并运行良好。但我在项目定义中找不到对 System.Net.Http 的程序集引用。 enter image description here

下面是完整的 csproj 文件。我在这里找不到任何引用。现在是在不同的地方定义的吗?

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs" Version="2.1.0-beta1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="2.1.0-beta1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="1.0.0-beta1" />
<PackageReference Include="Microsoft.Azure.WebJobs.ServiceBus" Version="2.1.0-beta1" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.0-alpha3" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="local.settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

我发现这个是为了解决 another problem

编辑:更新了屏幕截图以扩展 nuget 引用

enter image description here

最佳答案

我发现System.Net.Http.Formatting.dll位于 NuGet 包下,System.Net.Http.Formatting.dll 使用 System.Net.Http.dll 作为其依赖项之一。这意味着一旦我们想要使用System.Net.Http.Formatting.dll,System.Net.Http.dll也将被安装在我们的项目中。

enter image description here

关于c# - 在哪里可以找到 VS2017 Azure Function Project 中的项目引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45261312/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com