Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

.Net Native release build issue #4

Open
Neno12 opened this issue Sep 18, 2015 · 4 comments
Open

.Net Native release build issue #4

Neno12 opened this issue Sep 18, 2015 · 4 comments

Comments

@Neno12
Copy link

Neno12 commented Sep 18, 2015

Hi,

I am trying to use RTMPClient in a Universal Windows App for Windows 10 and I have problem with building on .Net Native.

The problem is when I try to build an app which used this library in release, it would fail because currently .Net Native have some issues dealing with IKeyValuePair<K,V> type.

I have contacted .Net Native team and asked fro help on this issue and I received the following response from them:

We are having trouble with the Mntone.Data.Amf.AmfPair type. This type implements Windows.Foundation.Collections.IKeyValuePair<IAmfValue, IAmfValue> which is a special Windows Runtime type for us as we always convert instances of this type to the more familiar .NET type of System.Collections.Generic.KeyValuePair.

We expect that IKeyValuePair<K,V> shows up only as a parameter type or return type and don’t handle the case where a Windows Runtime class like AmfPair declares that it implements IKeyValuePair<K,V> and this makes the Key and Value properties inaccessible from C# even without .NET Native when building debug.

We will investigate what we can do here to make the .NET Native toolchain not crash when we encounter types like AmfPair.

Is it possible for you to update the AmfPair type to stop implementing IKeyValuePair to work around this bug?

Do you have any workaround for this ?

Thanks in advanced!

@Neno12 Neno12 changed the title .Net Native release buil issue .Net Native release build issue Sep 18, 2015
@mntone
Copy link
Owner

mntone commented Sep 18, 2015

Please wait a few days. I will inspect and solve the problem.

Thanks for using this library.

@Neno12
Copy link
Author

Neno12 commented Sep 18, 2015

Thanks for your support and your generosity to share such a great library.

@mntone
Copy link
Owner

mntone commented Sep 22, 2015

@Neno12
Copy link
Author

Neno12 commented Sep 22, 2015

Wow! Awesome!

Thanks a lot for such a quick fix.

BTW, Nuget packages fails when trying to reference them in a Windows 10 (Universal app).

For now I just referenced to the Mntone.Rtmp.Windows project from my Universal Windows app and it worked.

Thanks again for your help.

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

No branches or pull requests

2 participants