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 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.
VS4Mac Version : 22.214.171.1243
Xamarin Live Player Version : 1.0.253
When attempting to run my Xamarin.Forms project I get the following error:
`AppDelegate.cs: The type of namespace name 'App' does not exist in the namespace (are you missing an assembly)`
Things I have tried
- Verified all my references are correct
- Removed references from my PCL (net standard 1.6) and added it back in
- Added fully qualified reference to App() instead of using `using` statement
Let me know what other information you will need to confirm the bug.
I'm facing the same problem in an android project. The Android project references a netstandard 1.4 project instead of a PCL. When I use a PCL library then xamarin live works fine. When I switch over to netstandard the error message appears as you already mentioned (emulator and native deployment works). This issue prevents me from using the live view as I cannot use PCL libraries due to shared code based on netstandard 1.4.
So, it looks like specifically the issue is around using .NET Standard libraries with Xamarin.Forms.
PCL and Shared projects work today, but will validate this.
I can figure out what's going on with a sample project.
There have been a lot of fixes to the player since 1.0.253 so it's possible this has already been resolved.
Can confirm that it is an issue with .NET standard types.
*** Bug 58505 has been marked as a duplicate of this bug. ***
Is there any relation of this error with APP heap size? This is necessary to use the onesignal SDK but makes it impossible to deploy to any virdual device and possibly to use the Live player. Can anyone confirm that?
Many on my classes are not
(1,1): error: Resource identifier 'HomePage.xaml' has already been used in this assembly
(1,1): error: Resource identifier 'PartnerSelectingPage.xaml' has already been used in this assembly
(1,1): error: Resource identifier 'ProfileView.xaml' has already been used in this assembly
(1,1): error: Resource identifier 'HomeView.xaml' has already been used in this assembly
(1,1): error: Resource identifier 'NotificationsView.xaml' has already been used in this assembly
The type or namespace name 'App' could not be found
The name 'App' does not exist in the current context
Latest versions now support .net standard libraries.
I do not think this issue is resolved.
I made a Xamarin.Forms project with a .NET Standard Library and I am getting the same error on all 3 of my projects; Android, iOS, UWP.
This is happening before I have edited any code.
But on an olded project with a PCL library theres no error.
Error CS0246 The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
I also have this issue with current builds of Xamarin Live Player. I can push the project directly to the device - that works fine. But when I try to use the "Player" device, I get a host of build errors, including the one mentioned by Tim Rossiter. Here's the distinct errors I get:
The type or namespace name '<various>' could not be found (are you missing a using directive or an assembly reference?)
Resource identifier '<various>.xaml' has already been used in this assembly
The name '<various>' does not exist in the current context
Dependent project <NETStandard>.csproj failed to build, using old version.
All errors show as being on line 1 - which is also interesting.
I'm wondering if this should be created as a New ticket - since this one is closed... Also wondering if this is because we are now linking to .NET Standard 2.0 - no longer 1.x...