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

Investigate whether Xamarin.Forms can be converted to .NET Standard (2.0) #1122

Closed
GeertvanHorrik opened this Issue Sep 5, 2017 · 8 comments

Comments

Projects
None yet
2 participants
@GeertvanHorrik
Member

GeertvanHorrik commented Sep 5, 2017

@alexfdezsauco , please investigate whether we can already convert it.

@alexfdezsauco

This comment has been minimized.

Show comment
Hide comment
@alexfdezsauco

alexfdezsauco Sep 6, 2017

Member
Member

alexfdezsauco commented Sep 6, 2017

@GeertvanHorrik GeertvanHorrik modified the milestones: 5.2.0, 5.3.0 Sep 20, 2017

@GeertvanHorrik

This comment has been minimized.

Show comment
Hide comment
@GeertvanHorrik

GeertvanHorrik Sep 20, 2017

Member

As discussed, moving to 5.3

Member

GeertvanHorrik commented Sep 20, 2017

As discussed, moving to 5.3

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 12, 2017

To get Catel.MVVM.Xamarin.Forms to compile, I had to add 0x801318F3 to the project's VerifyIgnoreCodes in Weavers.xml. (as it has already been done in the Catel.MVVM.UWP project)

ghost commented Oct 12, 2017

To get Catel.MVVM.Xamarin.Forms to compile, I had to add 0x801318F3 to the project's VerifyIgnoreCodes in Weavers.xml. (as it has already been done in the Catel.MVVM.UWP project)

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 12, 2017

I get a starup exception (UWP not Android):
InnerException {System.TypeInitializationException: The type initializer for '' threw an exception.

---> System.PlatformNotSupportedException: Retrieving information about local processes is not supported on this platform.
at System.Diagnostics.ProcessManager.GetProcessInfos(String machineName)
at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName)
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_ProcessName()
at Catel.EnvironmentHelper.IsHostedByProcess(String processName, Boolean supportParentProcesses)
at Catel.EnvironmentHelper.IsProcessCurrentlyHostedByVisualStudio(Boolean checkParentProcesses)
at Catel.EnvironmentHelper.IsProcessCurrentlyHostedByTool(Boolean checkParentProcesses)
at Catel.IoC.ServiceLocatorAutoRegistrationManager..ctor(IServiceLocator serviceLocator)
at Catel.IoC.ServiceLocator..ctor()
at Catel.IoC.IoCFactory.<>c.<.cctor>b__6_0()
at Catel.IoC.IoCFactory.CreateServiceLocator(Boolean initializeServiceLocator)
at Catel.IoC.IoCConfiguration.UpdateDefaultComponents()
at Catel.IoC.IoCConfiguration.get_DefaultServiceLocator()
at Catel.IoC.ServiceLocator.get_Default()
at Catel.Core.ModuleInitializer.Initialize()
at .cctor()
--- End of inner exception stack trace ---
at Catel.MVVM.ModuleInitializer.Initialize()
at .cctor()} System.Exception {System.TypeInitializationException}

As workaround I had to ‘return false;’ in IsProcessCurrentlyHostedByVisualStudio, IsProcessCurrentlyHostedByExpressionBlend, and IsProcessCurrentlyHostedBySharpDevelop

ghost commented Oct 12, 2017

I get a starup exception (UWP not Android):
InnerException {System.TypeInitializationException: The type initializer for '' threw an exception.

---> System.PlatformNotSupportedException: Retrieving information about local processes is not supported on this platform.
at System.Diagnostics.ProcessManager.GetProcessInfos(String machineName)
at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName)
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_ProcessName()
at Catel.EnvironmentHelper.IsHostedByProcess(String processName, Boolean supportParentProcesses)
at Catel.EnvironmentHelper.IsProcessCurrentlyHostedByVisualStudio(Boolean checkParentProcesses)
at Catel.EnvironmentHelper.IsProcessCurrentlyHostedByTool(Boolean checkParentProcesses)
at Catel.IoC.ServiceLocatorAutoRegistrationManager..ctor(IServiceLocator serviceLocator)
at Catel.IoC.ServiceLocator..ctor()
at Catel.IoC.IoCFactory.<>c.<.cctor>b__6_0()
at Catel.IoC.IoCFactory.CreateServiceLocator(Boolean initializeServiceLocator)
at Catel.IoC.IoCConfiguration.UpdateDefaultComponents()
at Catel.IoC.IoCConfiguration.get_DefaultServiceLocator()
at Catel.IoC.ServiceLocator.get_Default()
at Catel.Core.ModuleInitializer.Initialize()
at .cctor()
--- End of inner exception stack trace ---
at Catel.MVVM.ModuleInitializer.Initialize()
at .cctor()} System.Exception {System.TypeInitializationException}

As workaround I had to ‘return false;’ in IsProcessCurrentlyHostedByVisualStudio, IsProcessCurrentlyHostedByExpressionBlend, and IsProcessCurrentlyHostedBySharpDevelop

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 12, 2017

As I understand is that for UWP projects with Xamarin.Forms the project Catel.MVVM.Xamarin.Forms is required, without Catel.MVVM.UWP. How can the right NuGet package for the UWP project be selected by the user, depending on the use case? (NuGet allows you normally just to select the installation version)

ghost commented Oct 12, 2017

As I understand is that for UWP projects with Xamarin.Forms the project Catel.MVVM.Xamarin.Forms is required, without Catel.MVVM.UWP. How can the right NuGet package for the UWP project be selected by the user, depending on the use case? (NuGet allows you normally just to select the installation version)

@alexfdezsauco

This comment has been minimized.

Show comment
Hide comment
@alexfdezsauco

alexfdezsauco Oct 13, 2017

Member

We started a new approach to support XF via NS20. You can compile by your self the feature branch https://github.com/Catel/Catel/tree/feature/1122. The NuGet is not available yet. We are working in a demo app in order to find the missing features. I will push it soon in the XF demo app repository https://github.com/Catel/Catel.Examples.Xamarin.Forms or better at https://github.com/Catel/Catel.GettingStarted.Xamarin.Forms

Member

alexfdezsauco commented Oct 13, 2017

We started a new approach to support XF via NS20. You can compile by your self the feature branch https://github.com/Catel/Catel/tree/feature/1122. The NuGet is not available yet. We are working in a demo app in order to find the missing features. I will push it soon in the XF demo app repository https://github.com/Catel/Catel.Examples.Xamarin.Forms or better at https://github.com/Catel/Catel.GettingStarted.Xamarin.Forms

@alexfdezsauco

This comment has been minimized.

Show comment
Hide comment
@alexfdezsauco

alexfdezsauco Oct 13, 2017

Member

There is an available implementation for NS for the methods IsProcessCurrentlyHostedByVisualStudio, IsProcessCurrentlyHostedByExpressionBlend, and IsProcessCurrentlyHostedBySharpDevelop

Member

alexfdezsauco commented Oct 13, 2017

There is an available implementation for NS for the methods IsProcessCurrentlyHostedByVisualStudio, IsProcessCurrentlyHostedByExpressionBlend, and IsProcessCurrentlyHostedBySharpDevelop

@alexfdezsauco

This comment has been minimized.

Show comment
Hide comment
@alexfdezsauco

alexfdezsauco Oct 20, 2017

Member

Pushed Master-Detail example app, but at this point requires the Catel sources from feature/1122 branch. No package available yet.

Member

alexfdezsauco commented Oct 20, 2017

Pushed Master-Detail example app, but at this point requires the Catel sources from feature/1122 branch. No package available yet.

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