Bug 40845 - Xamarin Studio - Forms Previewer Does Not Recognize Namespace for Base Class
Summary: Xamarin Studio - Forms Previewer Does Not Recognize Namespace for Base Class
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: Macintosh Mac OS
: Highest blocker
Target Milestone: ---
Assignee: Alan McGovern
URL:
: 40803 ()
Depends on:
Blocks:
 
Reported: 2016-05-03 23:55 UTC by Rich Seviora
Modified: 2016-12-20 16:56 UTC (History)
7 users (show)

Tags: c8
Is this bug a regression?: ---
Last known good build:


Attachments
Screen Shot of Error (319.79 KB, image/png)
2016-05-03 23:55 UTC, Rich Seviora
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Rich Seviora 2016-05-03 23:55:31 UTC
Created attachment 15898 [details]
Screen Shot of Error

Using the following XAML, which results in the attached error message indicating that the type is not found. This error message is incorrect, the type does indeed exist in the namespace specified. Project builds and runs successfully.

<?xml version="1.0" encoding="utf-8"?>

<shared:StandardPage xmlns="http://xamarin.com/schemas/2014/forms"
                     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                     xmlns:shared="clr-namespace:SweatRecordMobile.View.Shared;assembly=SweatRecordMobile"
                     xmlns:localization="clr-namespace:SweatRecordMobile.Service.Localization;assembly=SweatRecordMobile"
                     xmlns:cells="clr-namespace:SweatRecordMobile.View.Shared.Cells;assembly=SweatRecordMobile"
                     xmlns:converters="clr-namespace:SweatRecordMobile.View.Shared.Converters;assembly=SweatRecordMobile"
                     xmlns:workoutNarratives="clr-namespace:SweatRecordMobile.View.WorkoutNarratives;assembly=SweatRecordMobile"
                     xmlns:workoutNarratives1="clr-namespace:SweatRecordMobile.ViewModel.WorkoutNarratives;assembly=SweatRecordMobile"
                     x:Class="SweatRecordMobile.View.WorkoutNarratives.WorkoutNarrativePage" Disappearing="WorkoutNarrativePage_OnDisappearing" x:TypeArguments="workoutNarratives1:IWorkoutNarrativeViewModel">

Remainder of page content omitted for brevity

</shared:StandardPage>

Xamarin Forms V2.3.0.38-pre2

IDE information:

Xamarin Studio Business
Version 6.1 (build 817)
Installation UUID: d4487345-e27d-4e76-b620-6b604116a339
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/fcf7a6d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000148

NuGet
Version: 3.3.0.0

Xamarin.Profiler
Version: 0.32.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 7.3 (10183.3)
Build 7D175

Xamarin.iOS
Version: 9.9.0.719 (Xamarin Business)
Hash: 3afb4af
Branch: master
Build date: 2016-04-24 15:13:41-0400

Xamarin.Android
Version: 6.1.99.224 (Xamarin Business)
Android SDK: /Users/richardseviora/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3  (API level 15)
		4.4    (API level 19)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)
		6.0.99 (API level 24)

SDK Tools Version: 25.1.3
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Xamarin Android Player
Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

Xamarin.Mac
Version: 2.9.0.719 (Xamarin Business)

Xamarin Inspector
Version: 0.8.0.0
Hash: dc081aa
Branch: master
Build date: Tue Apr 26 23:07:44 UTC 2016

Build Information
Release ID: 601000817
Git revision: 2335763551f9db8296b08542035977b899b7f3b7
Build date: 2016-04-25 10:45:36-04
Xamarin addins: 7f8c9ab2a981143a87fbd5adbde3f5890a838fde
Build lane: monodevelop-lion-cycle8-preview

Operating System
Mac OS X 10.11.4
Darwin Richards-iMac.local 15.4.0 Darwin Kernel Version 15.4.0
    Fri Feb 26 22:08:05 PST 2016
    root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

Enabled user installed addins
Xamarin Inspector 0.8.0.0
Comment 1 Alan McGovern 2016-05-09 16:54:51 UTC
*** Bug 40803 has been marked as a duplicate of this bug. ***
Comment 2 Alan McGovern 2016-05-09 17:03:06 UTC
This issue is because we do not interpret and use the `x:Class="SweatRecordMobile.View.WorkoutNarratives.WorkoutNarrativePage"` attribute for the top level item when in design mode. It's a limitation we need to address.
Comment 3 Alan McGovern 2016-06-24 18:02:11 UTC
Jason, we'll need some changes in forms to support this. I've marked it as a C8 blocker so we can track it properly!
Comment 6 Alan McGovern 2016-08-02 08:09:18 UTC
Update: We're still waiting for the second method which will give us the correct `System.Type` associated with the piece of xaml we are working with. For example if the underlying type of our xaml is a `class MyCustomView : Page` then it'll give us a `System.Type` for MyCustomView.