1) Create a new Cross-Platform Shared project
2) Add a new Xaml item to the Shared project
Expected: The code behind c# file should be nested under the Xaml file in the solution explorer
Actual: It is not nested
In the Shared project's .projitem file, the <Compile Include="$(MSBuildThisFileDirectory)Page1.xaml.cs"> entry was missing the <DependentUpon> tag. Also, the <EmbeddedResource> entry was missing <SubType>Designer</SubType>.
env info: https://gist.github.com/BenBeckley/4de4b22d9fdef9b977956df7ddea9e4d
*** Bug 56645 has been marked as a duplicate of this bug. ***
I cannot repro. And the user says that same thing happens in Windows (I assume, Windows projects?). I think this is upstream.
My steps installing VS and Xamarin:
- First install Visual Studio
- Then update with Xamarin
I do not know if Ben followed the same steps above, but I reproduce this problem.
Thanks for filing this report @Ben/Kayo!
I am now unable to reproduce this issue (nesting + EmbeddedResource definition) using the latest 15.3 builds:
Environment Info: https://gist.github.com/pierceboggan/f1ffd9e92b04565eb494d4138e1a034a
This is still broken with XVS 184.108.40.2067 (ddd8750)
env info: https://gist.github.com/BenBeckley/f6b637040f35d4fe12a40a2cedd5f5e1
This bug is also present in the just-released Visual Studio for Mac version 7.2 (xamarin studio works tho!).
mono seems to be also affected, getting an "object reference not set to an instance of an object" on these pages...
This issue is now resolved in Visual Studio 2017 version 15.5 when using the latest Xamarin.Forms templates (220.127.116.112).