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

Xamarin Live Reload Support for half-elmish #104

Closed
slang25 opened this issue Jul 8, 2018 · 6 comments
Closed

Xamarin Live Reload Support for half-elmish #104

slang25 opened this issue Jul 8, 2018 · 6 comments
Labels
t/enhancement New feature or request

Comments

@slang25
Copy link

slang25 commented Jul 8, 2018

For the "half elmish" approach of having static XAML files, but still using an elmish model, it would be very compelling to have Xamarin Live Reload support.

At the moment if I add the live reload package to this project, the ResolveAssembly task in Xamarin.Android.Common.targets fails with:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1590,2): error : Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Live.Reload, Version=0.3.27.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin.Live.Reload.dll'

I think I can work around this, but then I spotted some targets in the live reload package that looks like it will only work in C# & VB projects, it tries to inject some attributes into the assembly, however I don't think F# uses the same targets (yet? see here: dotnet/fsharp#3113).

I might have a dabble with this later this week to see what I can get working.

@dsyme
Copy link
Collaborator

dsyme commented Jul 12, 2018

@slang25 If you can add docs for getting half-elmish to work with Live Reload that would be great

In the meantime we've added a preliminary LiveUpdate experience for Full Elmish, see https://fsprojects.github.io/Elmish.XamarinForms/tools.html

@dsyme dsyme added the t/enhancement New feature or request label Jul 12, 2018
@dsyme dsyme changed the title Xamarin Live Reload Support Xamarin Live Reload Support for half-elmish Jul 12, 2018
@slang25
Copy link
Author

slang25 commented Jul 13, 2018

@dsyme Will do. I've been eagerly watching the commits for the full elmish live update, impressive stuff!

@cartermp
Copy link

Note that Live Reload has been deprecated: xamarin/Xamarin.Forms#4155 (comment)

@slang25
Copy link
Author

slang25 commented Oct 28, 2018

I never got around to looking at this 😞 Given it's dead, I'm closing

@slang25 slang25 closed this as completed Oct 28, 2018
@dsyme
Copy link
Collaborator

dsyme commented Oct 30, 2018

Note that the "Live Update" support in this repo is unrelated to "Live Reload" mentioned above :)

@slang25
Copy link
Author

slang25 commented Oct 30, 2018

Yes :) now I dislike XAML even more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants