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?










share|improve this question
























  • 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















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?










share|improve this question
























  • 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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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
















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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Guess what letter conforming each word

Port of Spain

Run scheduled task as local user group (not BUILTIN)