clairernovotny / samplexamformswithnetstandard Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Nothing more to say.
Apart from THANKS, OREN!
Hello Oren,
Thanks for this sample solution which indeed works on Windows / VS 2015 update 3, I've just verified it.
Alas, it doesn't seem to work anymore with Xamarin Studio 6.1 (just released yesterday).
I get all kind of errors.
Was it working with previous XS 6.0?
It seems that the XamFormsSample portable library fails to build because it is not having the needed references. Trying to add them manually fails too as no package is listed there.
And, the XamFormsSample.iOS fails to reference the XamFormsSample portable library with the error: "Incompatible target framework: .NET Portable, version=v5.0"
Can you confirm?
Should I file a bug to Xamarin?
Is there any temporary workaround?
Thanks
After reviewing the project, I noticed the UWP project doesn't use
<CopyNuGetImplementations>true</CopyNuGetImplementations>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
So it falls back to use the project.json , is this intentional?
Also, it could be great to have this example as a VS2017 project template...
Thanks for this sample and the accompanying blog post; I've gotten much closer to XamForms netstandard after finding it! :)
Just tried to build with VS2017 (Version 15.2 (26430.13) Release) with a fresh clone of the repo and get the error in the issue description (same error with my own project). Just wondering if this is due to recent VS/Xamarin updates, or if it is unique to my install. Here's a snippet of the output log:
...
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values-uz-rUZ\values-uz-rUZ.xml
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values-vi\values-vi.xml
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values-zh-rCN\values-zh-rCN.xml
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values-zh-rHK\values-zh-rHK.xml
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values-zh-rTW\values-zh-rTW.xml
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values-zu\values-zu.xml
2> Processing: C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\res\values\values.xml
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "layoutManager" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "spanCount" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "reverseLayout" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "stackFromEnd" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "mediaRouteAudioTrackDrawable" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "mediaRouteButtonStyle" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "mediaRouteCloseDrawable" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "mediaRouteDefaultIconDrawable" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "mediaRoutePauseDrawable" has already been defined
2>C:\dev\git\SampleXamFormsWithNetStandard\XamFormsSample\XamFormsSample.Droid\obj\Debug\__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\res\values\values.xml(2): error APT0000: Attribute "mediaRoutePlayDrawable" has already been defined
...
Potentially relevant VS version info is:
VisualStudio.15.Release/15.2.0+26430.13
NuGet Package Manager 4.2.0
Visual Studio Tools for Universal Windows Apps 15.0.26430.06
Xamarin 4.5.0.486 (fec6f88)
Xamarin.Android SDK 7.3.1.2 (9dbc4c5)
Xamarin.iOS and Xamarin.Mac SDK 10.10.0.37 (ad35de4)
When trying to compile the sample (I am using VS2017), lots of "No resource found that matches the given name" compiler errors are generated for the .Droid project for the styles.xml file:
...
No resource found that matches the given name: attr "windowActionBar'
No resource found that matches the given name: attr "colorPrimary'
No resource found that matches the given name: attr "colorPrimaryDark'
and so on ....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.