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:
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
Post a Comment