Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatfromNotSupportedException in UWP Windows 10 app in .NET Native compilation mode #322

Closed
AntonZhmyrov opened this issue Mar 2, 2018 · 4 comments
Assignees
Milestone

Comments

@AntonZhmyrov
Copy link

We have a UWP application for Windows 10, which targets the .NET Framework 4.6.1.
We have referenced your library via the NuGet package -> ZendeskApi_v2 (version 3.7.2).

When compiling the project in the .NET Native mode, we encounter a following issue:
Microsoft.Bcl.Async library can not be resolved, and the compiler spits out warnings saying, for example:

"ILTransform_0017: Assembly 'Microsoft.Threading.Tasks.Extensions' requests the address of the virtual method 'Stream.BeginWrite(byte[], int, int, AsyncCallback, object)' which is not available in the targeted .NET platform. Please ask the author of 'Microsoft.Threading.Tasks.Extensions' to provide an implementation that can be used in the currently targeted .NET platform."

Which leads to PlatfromNotSupportedException when trying to use, for example, the method ITickets.CreateTicketAsync(Ticket ticket).

In order to fix this issue, we cloned the repository, and rebuilt it as a class library for UWP Windows 10, targeting the .NET Framework 4.6.1. It all works fine in .NET Native as well as in not native modes.

As far as we can see, the best possible solution is to add another dll file into nuget package which targets at least .NET Framework 4.5 for UWP app, Windows 10.

Is there any chance that you could implement this solution in the nearest future?
Or maybe you have another view to this problem?

@mozts2005
Copy link
Member

Yes, this can be done and I will make it happen for the next release. Which I am hope to complete in the next week.

@AntonZhmyrov
Copy link
Author

Thanks a lot! We are looking forward to it!

@mozts2005 mozts2005 self-assigned this Mar 5, 2018
@mozts2005 mozts2005 added this to the 3.7.3 milestone Mar 5, 2018
@mozts2005
Copy link
Member

@AntonZhmyrov
Copy link
Author

Thanks a lot! We tested the application and everything worked good. When do you think this version will be released and available via Nuget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants