Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 13505 [details]
After updating from 1.5.0, the generated .g.cs files for XAML views are generating with a namespace of global::Xamarin.Forms.
**Steps to Reproduce:**
1. Build the attached PCL in XS on a Mac
Build error, similar to:
*.xaml.g.cs(64,64): Error CS0234: The type or namespace name `CustomView' does not exist in the namespace `Xamarin.Forms'. Are you missing an assembly reference? (CS0234)
The generated file should use the projects namespace where the "CustomView" lives, and not generate the .g.cs file with a Xamarin.Forms namespace.
**Build Date & Platform:**
XF 1.5.1 - XF 1.5.2-pre1
Downgrade the project back to Xamarin.Forms 1.5.0, and the issue goes away.
Possibly related to whatever bug was fixed mentioned here: http://forums.xamarin.com/discussion/comment/160024/#Comment_160024
It seems the XAML is wrong in this sample, and needs to be update to this:
<local:GOContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:FormsTesting" x:Class="FormsTesting.CostLevelView">
Note* Added the "local" prefix and xmlns definition.