我在UWP上为发布模式构建时遇到问题。我们遇到了从未有过的错误。我们最近从Sql-Net迁移到EFC 1.1.3

我们的目标是秋季创作者更新,并将最小值设置为240。

'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' referenced by 'AWSSDK.S3'.

Type 'System.Net.IWebProxy' was not included in compilation, but was referenced in type 'Amazon.Runtime.ClientConfig'. There may have been a missing assembly.

'AmazonS3HttpUtil.GetHttpClient(IClientConfig)' will always throw an exception due to the missing method 'HttpClientHandler.set_Proxy(IWebProxy)'. There may have been a missing assembly.

Method 'AmazonS3HttpUtil.GetHttpClient(IClientConfig)' will always throw an exception due to the missing method 'HttpClientHandler.set_Proxy(IWebProxy)'. There may have been a missing assembly.


编辑:Nuget包:

<ItemGroup>
    <SDKReference Include="Syncfusion Controls for UWP XAML, Version=15.3.0.33">
        <Name>Syncfusion Controls for UWP XAML</Name>
    </SDKReference>
</ItemGroup>
<ItemGroup>
    <PackageReference Include="AWSSDK.CognitoIdentity">
        <Version>3.3.2.15</Version>
    </PackageReference>
    <PackageReference Include="AWSSDK.Core">
        <Version>3.3.18</Version>
    </PackageReference>
    <PackageReference Include="AWSSDK.S3">
        <Version>3.3.11.2</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.ApplicationInsights">
        <Version>2.4.0</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.ApplicationInsights.PersistenceChannel">
        <Version>1.2.3</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.ApplicationInsights.WindowsApps">
        <Version>1.1.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite">
        <Version>1.1.3</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
        <Version>5.4.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.Toolkit.Uwp">
        <Version>1.5.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.Toolkit.Uwp.UI">
        <Version>1.5.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls">
        <Version>1.5.1</Version>
    </PackageReference>
    <PackageReference Include="Newtonsoft.Json">
        <Version>10.0.3</Version>
    </PackageReference>
    <PackageReference Include="Win2D.uwp">
       <Version>1.21.0</Version>
    </PackageReference>
 </ItemGroup>

最佳答案

亚马逊似乎在适用于AWS开发工具包的nuspec文件中存在问题,导致NuGet软件包管理器获取不一致的依赖关系。 Apparently the AWS team is already working on it.

关于c# - 是什么导致在UWP Release模式下此Amazon build错误?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46790807/

10-11 16:24