Developing Xamarin Project on different PCs
up vote
0
down vote
favorite
I have recently begun creating my first xamarin project on my laptop and it builds and runs fine with no errors. When I try and run the same project on my desktop I am getting 6 error messages and errors through parts of my code.
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 15 Active
Error CS0115 'MainActivity.OnCreate(Bundle)': no suitable method found to override MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 17 Active
Error CS0103 The name 'TabLayoutResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 19 Active
Error CS0103 The name 'ToolbarResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 20 Active
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 23 Active
Error CS0103 The name 'LoadApplication' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 32 Active
I'm also getting these warnings as well.
Severity Code Description Project File Line Suppression State
Warning NU1608 Detected package version outside of dependency constraint: Xamarin.Android.Support.CustomTabs 23.3.0 requires Xamarin.Android.Support.v4 (= 23.3.0) but version Xamarin.Android.Support.v4 27.0.2.1 was resolved. MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMealMateApp.Android.csproj 1
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Core.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Platform.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Xaml.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Any suggestions for a fix?
c# android visual-studio xamarin xamarin.forms
add a comment |
up vote
0
down vote
favorite
I have recently begun creating my first xamarin project on my laptop and it builds and runs fine with no errors. When I try and run the same project on my desktop I am getting 6 error messages and errors through parts of my code.
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 15 Active
Error CS0115 'MainActivity.OnCreate(Bundle)': no suitable method found to override MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 17 Active
Error CS0103 The name 'TabLayoutResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 19 Active
Error CS0103 The name 'ToolbarResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 20 Active
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 23 Active
Error CS0103 The name 'LoadApplication' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 32 Active
I'm also getting these warnings as well.
Severity Code Description Project File Line Suppression State
Warning NU1608 Detected package version outside of dependency constraint: Xamarin.Android.Support.CustomTabs 23.3.0 requires Xamarin.Android.Support.v4 (= 23.3.0) but version Xamarin.Android.Support.v4 27.0.2.1 was resolved. MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMealMateApp.Android.csproj 1
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Core.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Platform.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Xaml.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Any suggestions for a fix?
c# android visual-studio xamarin xamarin.forms
One of the reason can be you have a reference to assembly Xamarin.Forms fromC:Program files (x86)
and you have different version of Visual Studio, e.g.Community and Professional. This caused environment cannot find assembly. So you can go to your Dependencies-Assemblies section and see if exclamation mark presents near assembly name. If yes - delete assembly and add it again from the correct path. Unfortunately, I don't know how to solve this problem permanently, so you will need to repeat this process every time when you move your solution between PCs.
– Miamy
Nov 9 at 12:48
1
Try deleting manually all/bin
&/obj
folders and try to rebuild
– TaiT's
Nov 9 at 13:15
Restore NuGet packages
– Cheesebaron
Nov 10 at 10:45
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have recently begun creating my first xamarin project on my laptop and it builds and runs fine with no errors. When I try and run the same project on my desktop I am getting 6 error messages and errors through parts of my code.
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 15 Active
Error CS0115 'MainActivity.OnCreate(Bundle)': no suitable method found to override MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 17 Active
Error CS0103 The name 'TabLayoutResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 19 Active
Error CS0103 The name 'ToolbarResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 20 Active
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 23 Active
Error CS0103 The name 'LoadApplication' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 32 Active
I'm also getting these warnings as well.
Severity Code Description Project File Line Suppression State
Warning NU1608 Detected package version outside of dependency constraint: Xamarin.Android.Support.CustomTabs 23.3.0 requires Xamarin.Android.Support.v4 (= 23.3.0) but version Xamarin.Android.Support.v4 27.0.2.1 was resolved. MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMealMateApp.Android.csproj 1
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Core.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Platform.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Xaml.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Any suggestions for a fix?
c# android visual-studio xamarin xamarin.forms
I have recently begun creating my first xamarin project on my laptop and it builds and runs fine with no errors. When I try and run the same project on my desktop I am getting 6 error messages and errors through parts of my code.
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 15 Active
Error CS0115 'MainActivity.OnCreate(Bundle)': no suitable method found to override MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 17 Active
Error CS0103 The name 'TabLayoutResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 19 Active
Error CS0103 The name 'ToolbarResource' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 20 Active
Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin' (are you missing an assembly reference?) MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 23 Active
Error CS0103 The name 'LoadApplication' does not exist in the current context MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMainActivity.cs 32 Active
I'm also getting these warnings as well.
Severity Code Description Project File Line Suppression State
Warning NU1608 Detected package version outside of dependency constraint: Xamarin.Android.Support.CustomTabs 23.3.0 requires Xamarin.Android.Support.v4 (= 23.3.0) but version Xamarin.Android.Support.v4 27.0.2.1 was resolved. MealMateApp.Android J:MealMateAppMealMateAppMealMateApp.AndroidMealMateApp.Android.csproj 1
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Core.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Platform.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Warning MSB3106 Assembly strong name "C:UsersJay.nugetpackagesxamarin.forms3.1.0.697729libnetstandard2.0Xamarin.Forms.Xaml.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(). MealMateApp C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.Common.CurrentVersion.targets 2110
Any suggestions for a fix?
c# android visual-studio xamarin xamarin.forms
c# android visual-studio xamarin xamarin.forms
edited Nov 9 at 12:34
Suraj Rao
22.1k75468
22.1k75468
asked Nov 9 at 12:33
Jamie
1
1
One of the reason can be you have a reference to assembly Xamarin.Forms fromC:Program files (x86)
and you have different version of Visual Studio, e.g.Community and Professional. This caused environment cannot find assembly. So you can go to your Dependencies-Assemblies section and see if exclamation mark presents near assembly name. If yes - delete assembly and add it again from the correct path. Unfortunately, I don't know how to solve this problem permanently, so you will need to repeat this process every time when you move your solution between PCs.
– Miamy
Nov 9 at 12:48
1
Try deleting manually all/bin
&/obj
folders and try to rebuild
– TaiT's
Nov 9 at 13:15
Restore NuGet packages
– Cheesebaron
Nov 10 at 10:45
add a comment |
One of the reason can be you have a reference to assembly Xamarin.Forms fromC:Program files (x86)
and you have different version of Visual Studio, e.g.Community and Professional. This caused environment cannot find assembly. So you can go to your Dependencies-Assemblies section and see if exclamation mark presents near assembly name. If yes - delete assembly and add it again from the correct path. Unfortunately, I don't know how to solve this problem permanently, so you will need to repeat this process every time when you move your solution between PCs.
– Miamy
Nov 9 at 12:48
1
Try deleting manually all/bin
&/obj
folders and try to rebuild
– TaiT's
Nov 9 at 13:15
Restore NuGet packages
– Cheesebaron
Nov 10 at 10:45
One of the reason can be you have a reference to assembly Xamarin.Forms from
C:Program files (x86)
and you have different version of Visual Studio, e.g.Community and Professional. This caused environment cannot find assembly. So you can go to your Dependencies-Assemblies section and see if exclamation mark presents near assembly name. If yes - delete assembly and add it again from the correct path. Unfortunately, I don't know how to solve this problem permanently, so you will need to repeat this process every time when you move your solution between PCs.– Miamy
Nov 9 at 12:48
One of the reason can be you have a reference to assembly Xamarin.Forms from
C:Program files (x86)
and you have different version of Visual Studio, e.g.Community and Professional. This caused environment cannot find assembly. So you can go to your Dependencies-Assemblies section and see if exclamation mark presents near assembly name. If yes - delete assembly and add it again from the correct path. Unfortunately, I don't know how to solve this problem permanently, so you will need to repeat this process every time when you move your solution between PCs.– Miamy
Nov 9 at 12:48
1
1
Try deleting manually all
/bin
& /obj
folders and try to rebuild– TaiT's
Nov 9 at 13:15
Try deleting manually all
/bin
& /obj
folders and try to rebuild– TaiT's
Nov 9 at 13:15
Restore NuGet packages
– Cheesebaron
Nov 10 at 10:45
Restore NuGet packages
– Cheesebaron
Nov 10 at 10:45
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225791%2fdeveloping-xamarin-project-on-different-pcs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
One of the reason can be you have a reference to assembly Xamarin.Forms from
C:Program files (x86)
and you have different version of Visual Studio, e.g.Community and Professional. This caused environment cannot find assembly. So you can go to your Dependencies-Assemblies section and see if exclamation mark presents near assembly name. If yes - delete assembly and add it again from the correct path. Unfortunately, I don't know how to solve this problem permanently, so you will need to repeat this process every time when you move your solution between PCs.– Miamy
Nov 9 at 12:48
1
Try deleting manually all
/bin
&/obj
folders and try to rebuild– TaiT's
Nov 9 at 13:15
Restore NuGet packages
– Cheesebaron
Nov 10 at 10:45