FreshMvvm icon indicating copy to clipboard operation
FreshMvvm copied to clipboard

Update csproj to latest format and target netstandard1.0 and PCL (portable-net45+win8+wp8)

Open Mark-RSK opened this issue 8 years ago • 17 comments

I have updated all nuget references and included the latest Xamarin.Forms that has a netstandard target. To allow the project to build correctly for netstandard and use the inbuilt nuget packing in VS2017 I have moved the IOC files into the main project.

I have tested bringing in the compiled nuget into both a netstandard and PCL XF core project and both function correctly.

Your thoughts on the implementation would be much appreciated as I have attempted this as a way of learning the new csproj structure

Mark-RSK avatar Jul 10 '17 18:07 Mark-RSK

#160

Mark-RSK avatar Jul 10 '17 18:07 Mark-RSK

For a working netstandard Xamarin Forms template the following link has a great explanation, and also a repo with the template included.

https://oren.codes/2017/04/23/using-xamarin-forms-with-net-standard-vs-2017-edition/

Mark-RSK avatar Jul 10 '17 23:07 Mark-RSK

I think the line count reduction of ~11,000 lines speaks to Oren's idea that .NET Standard reduces "gunk".

Ebsan avatar Jul 12 '17 15:07 Ebsan

@Mark-RSK I came here because I need FreshMVVM to work with Rx.NET with .NET standards 1.6 support. The project is changed to 1.4 to make it compatible with Xamarin Forms UWP.

JimSEOW avatar Aug 07 '17 11:08 JimSEOW

[FreshMVVm + ReactiveUI ]+ ReactiveExtension

JimSEOW avatar Aug 07 '17 12:08 JimSEOW

@JimSEOW I have updated the project to use the PackageTargetFallback attribute in the csproj so the stable release of Xamarin Forms is used. I have also removed the PCL output of the library as this caused issues in Visual Studio Mac

Mark-RSK avatar Aug 07 '17 12:08 Mark-RSK

@Mark-RSK

The FreshMVVM.Tests complains! Error NU1202 Package Microsoft.TestPlatform.TestHost 15.0.0 is not compatible with netstandard1.4 (.NETStandard,Version=v1.4). Package Microsoft.TestPlatform.TestHost 15.0.0 supports:

  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.5 (.NETStandard,Version=v1.5)

JimSEOW avatar Aug 08 '17 22:08 JimSEOW

@Mark-RSK Why I have to keep the FreshMVVM to .NET standard 1.0 and not 1.4 (causing errors in TinyIoC.cs)

However, now that It compiles, I can NOW start combining ReactiveUI and ReactiveExtension to target UWP .net standard 1.4 (so that when UWP is .NET standard 2.0 compliance, we would have learn many issues before then).

JimSEOW avatar Aug 08 '17 22:08 JimSEOW

@JimSEOW It seems TinyIoC hasn't been updated in a while and the ifdefs were incorrect for net standard 1.4. I have updated the ifdef's to include 1.3 & 1.4 and it now all compiles.

I apologise for the earlier checkin that failed to build. I had changed the csproj type of the test project from netstandard to net461 on my master branch but hadn't made the change in this branch.

Mark-RSK avatar Aug 10 '17 21:08 Mark-RSK

I am waiting for this! Nice work :)

jfversluis avatar Aug 11 '17 07:08 jfversluis

@Mark-RSK thanks.

JimSEOW avatar Aug 11 '17 08:08 JimSEOW

@Mark-RSK These are the failed tests 2017-08-11_19-01-32

JimSEOW avatar Aug 11 '17 17:08 JimSEOW

@JimSEOW I've fixed the failing tests. Not sure the tests would have passed on the original master branch. I am unable to build the original master to check

Mark-RSK avatar Aug 12 '17 08:08 Mark-RSK

Building the original branch in VS2015 and running the tests, the same tests fail

Mark-RSK avatar Aug 12 '17 08:08 Mark-RSK

I'll take a look at integrating this asap. I'm away from computer for the next week but I can take a look at this on return.

Thanks

On Sat, 12 Aug 2017 at 4:59 pm, Mark Pitt [email protected] wrote:

Building the original branch in VS2015 and running the tests, the same tests fail

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rid00z/FreshMvvm/pull/170#issuecomment-321967629, or mute the thread https://github.com/notifications/unsubscribe-auth/ABeXvQwcz8zjWlpud14X70s_7Od9qiSjks5sXWmMgaJpZM4OTQJ4 .

--

[image: XAM-Consulting Pty Ltd] http://www.xam-consulting.com/

[image: Twitter] https://twitter.com/XAMConsulting [image: LinkedIn] https://www.linkedin.com/company-beta/5791295/

Michael Ridland / Director / Xamarin & Microsoft MVP [email protected] / 0404 865 350

XAM Consulting Pty. Limited. Web | Cloud | Apps | Xamarin 210/29 Kiora Rd, Miranda NSW 2228 xam-consulting.com http://www.xam-consulting.com/

rid00z avatar Aug 12 '17 14:08 rid00z

Without wishing to be rude/pushy, is there any progress on merging this PR? Thanks :-)

daveclarke avatar Sep 20 '17 22:09 daveclarke

@daveclarke @Mark-RSK @jfversluis Apologies for the slow reply, we've upgrade to .NET Standard already but there's a few nice commits/ideas in here that I will take a look at.

rid00z avatar Jun 02 '19 04:06 rid00z