-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-http-abstractions
Description
From @therealjohn on Wednesday, November 29, 2017 2:08:10 PM
Functional impact
Adding the latest versions of this NuGet, or any NuGet that has it as a valid dependency that would pull in the latest version will cause a build failure for device builds in Xamarin.iOS projects.
Minimal repro steps
- Create a File > New Solution > Single View iOS Application. You can do these steps in VSMac or VS on Windows.
- Install-Package Microsoft.Net.Http.Headers -Version 2.0.1 for the iOS project in VS or use the Add Packages menu in VSMac to add this NuGet.
- Open the AppDelegate.cs file and add this line of code in the
FinishedLaunching
method.
// Arbitrary type used from the package so it's included in the build
new Microsoft.Net.Http.Headers.CacheControlHeaderValue();
- Change the build configuration to Debug | iPhone (Generic Device)
- Build the iOS project
Expected result
Build Success
Actual result
Build fails.
/Users/johnmiller/Projects/TestingSA/TestingSA/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/johnmiller/Projects/TestingSA/TestingSA/obj/iPhone/Debug/mtouch-cache/Build/Microsoft.Net.Http.Headers.dll' (MT3001) (TestingSA)
Further technical details
Attached is the full build output.
fullbuildoutput.txt
Downgrading to version 2.0.0 of the package works around this issue.
If this is not the correct place to file the issue, please let me know!
Copied from original issue: aspnet/HttpAbstractions#974
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-http-abstractions