xamarin.forms - Xamarin forms: converted PCL to .net standard libraries and now I can't add new XAML pages -


i recenty went through process of converting pcl's in solution .net standard libraries (not sure if related nor not, mentioning in case). now, when try , add page, adds xaml , xaml.cs files project without link or connection, wont compile:

enter image description here

googling suggests can go in , edit .csproj add dependency between two, horrible solution long term. way fix "properly"?

i've tried dragging , dropping existing files in windows explorer vs2017, adding new through add new dialog, adding existing through add existing , exhibits same behaviour.

thanks

ok, answer own question. seems need put in workaround time being:

https://forums.xamarin.com/discussion/comment/288205/#comment_288205

in .csproj:

<itemgroup>     <!-- https://bugzilla.xamarin.com/show_bug.cgi?id=55591 -->     <none remove = "**\*.xaml" />      < compile update="**\*.xaml.cs" dependentupon="%(filename)" />     <embeddedresource include = "**\*.xaml" subtype="designer" generator="msbuild:updatedesigntimexaml" /> </itemgroup> 

and remove existing xaml pages referenced in .csproj file such embeddedresources , compile directives


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -