-
Notifications
You must be signed in to change notification settings - Fork 67
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
Unable to Compile it for Windows Store/Windows Phone. #12
Comments
This is going to take some time to address. Most if not all regular reflection stuff is not available in WP. I have to find every single reflection call made at runtime and make them operate on TypeInfo instead of Type and wrap the thing with conditionally compiled if statement. |
If you're familiar with reflection and would like to help fix the issue, we basically need to find all the calls causing the errors and replace them with the appropriate calls from fsPortableReflection.cs - We'd have to fix all the reflection extension methods files (TypeExtensions, PropertyInfoExtensions etc) - I'd be more useful if I had a WP to build and test. A sample replacement:
would become:
|
I can give it a try later this day maybe. I am just not sure if its worth it to be fixed since .NET Core is on the way and i guess a lot of things will be replaced in Unity soon. Will report as soon as I can. |
I wouldn't hold my breath for .Net Core. Unity are notoriously slow for rolling out useful changes. I could lend a hand if you have a project I could test on. |
Hello, I happen to have a Windows Phone. Let me know how I can Help. I've tried to build a project to windows store (8.1) and get these errors, (mostly from FastReflection)
|
Assets\Plugins\Vexe\Runtime\Library\Extensions\Flags.cs(387,19): error CS1061: 'System.Collections.Generic.List' does not contain a definition for 'ForEach' and no extension method 'ForEach' accepting a first argument of type 'System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?)
Assets\Plugins\Vexe\Runtime\Library\Extensions\GenericEnumerableExtensions.cs(52,25): error CS1928: 'System.Type' does not contain a definition for 'IsAssignableFrom' and the best extension method overload 'Vexe.Runtime.Extensions.TypeExtensions.IsAssignableFrom(System.Type[], System.Type[])' has some invalid arguments
Assets\Plugins\Vexe\Runtime\Library\Extensions\TypeExtensions.cs(144,53): error CS1061: 'System.Type' does not contain a definition for 'GetInterfaces' and no extension method 'GetInterfaces' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)
And another 130 errors. Not sure if the problem is with me. Tried the .NET 2.0 subset and the other profile but it is the same.
Build settings are: Windows Store Phone 8.1, and Universal 8.1
The text was updated successfully, but these errors were encountered: