Xamarin project opens up with error: Could not load file or assembly 'System.Collections.Immutable'












0














I'm working in a github cloned Xamarin project. When I open up the project it displays the following error:



Severity    Code    Description Project File    Line    Suppression State
Error Could not load file or assembly 'System.Collections.Immutable,
Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040) ProjectName
C:UsersUSER.nugetpackagesrefit4.6.30buildnetstandard1.4refit.targets
29


I've tried cleaning the project, deleting the bin/obj folders and I've cleared my nuget packages and restored. All of these solutions didn't work and when trying to rebuild the project it displays another error:



Severity    Code    Description Project File    Line    Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'ProjectName,
Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist
in the Mono for Android profile?
File name: 'ProjectName.dll'
at

Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.
<ExecuteInstantiatedTask>d__26.MoveNext() ProjectName.Android


I'm using Visual Studio Community 2017 version 15.8.8 and Xamarin.Forms
2.5.0.280555



The project that I'm working on works on other pc's from co-workers so I think it has to do with my VS installation. I tried to reinstall VS but this resulted in the same errors.










share|improve this question






















  • Update the version of xamarin.forms to 3.x.
    – Lucas Zhang - MSFT
    Nov 13 at 1:00










  • This is not possible since it's a project that other people use and the company doesn't want to upgrade Xamarin to a newer version.
    – Shadow
    Nov 13 at 9:48










  • Set the version of netstandard as 2.0or 2.1.And can you provide the link of the project?
    – Lucas Zhang - MSFT
    Nov 14 at 7:04










  • I'm not allowed to do this since it's a project from the company that I'm working as an intern at
    – Shadow
    Nov 15 at 8:11










  • The .NET standard is already at 2.0 and I don't have the option to switch to 2.1
    – Shadow
    Nov 15 at 8:38
















0














I'm working in a github cloned Xamarin project. When I open up the project it displays the following error:



Severity    Code    Description Project File    Line    Suppression State
Error Could not load file or assembly 'System.Collections.Immutable,
Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040) ProjectName
C:UsersUSER.nugetpackagesrefit4.6.30buildnetstandard1.4refit.targets
29


I've tried cleaning the project, deleting the bin/obj folders and I've cleared my nuget packages and restored. All of these solutions didn't work and when trying to rebuild the project it displays another error:



Severity    Code    Description Project File    Line    Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'ProjectName,
Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist
in the Mono for Android profile?
File name: 'ProjectName.dll'
at

Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.
<ExecuteInstantiatedTask>d__26.MoveNext() ProjectName.Android


I'm using Visual Studio Community 2017 version 15.8.8 and Xamarin.Forms
2.5.0.280555



The project that I'm working on works on other pc's from co-workers so I think it has to do with my VS installation. I tried to reinstall VS but this resulted in the same errors.










share|improve this question






















  • Update the version of xamarin.forms to 3.x.
    – Lucas Zhang - MSFT
    Nov 13 at 1:00










  • This is not possible since it's a project that other people use and the company doesn't want to upgrade Xamarin to a newer version.
    – Shadow
    Nov 13 at 9:48










  • Set the version of netstandard as 2.0or 2.1.And can you provide the link of the project?
    – Lucas Zhang - MSFT
    Nov 14 at 7:04










  • I'm not allowed to do this since it's a project from the company that I'm working as an intern at
    – Shadow
    Nov 15 at 8:11










  • The .NET standard is already at 2.0 and I don't have the option to switch to 2.1
    – Shadow
    Nov 15 at 8:38














0












0








0







I'm working in a github cloned Xamarin project. When I open up the project it displays the following error:



Severity    Code    Description Project File    Line    Suppression State
Error Could not load file or assembly 'System.Collections.Immutable,
Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040) ProjectName
C:UsersUSER.nugetpackagesrefit4.6.30buildnetstandard1.4refit.targets
29


I've tried cleaning the project, deleting the bin/obj folders and I've cleared my nuget packages and restored. All of these solutions didn't work and when trying to rebuild the project it displays another error:



Severity    Code    Description Project File    Line    Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'ProjectName,
Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist
in the Mono for Android profile?
File name: 'ProjectName.dll'
at

Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.
<ExecuteInstantiatedTask>d__26.MoveNext() ProjectName.Android


I'm using Visual Studio Community 2017 version 15.8.8 and Xamarin.Forms
2.5.0.280555



The project that I'm working on works on other pc's from co-workers so I think it has to do with my VS installation. I tried to reinstall VS but this resulted in the same errors.










share|improve this question













I'm working in a github cloned Xamarin project. When I open up the project it displays the following error:



Severity    Code    Description Project File    Line    Suppression State
Error Could not load file or assembly 'System.Collections.Immutable,
Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040) ProjectName
C:UsersUSER.nugetpackagesrefit4.6.30buildnetstandard1.4refit.targets
29


I've tried cleaning the project, deleting the bin/obj folders and I've cleared my nuget packages and restored. All of these solutions didn't work and when trying to rebuild the project it displays another error:



Severity    Code    Description Project File    Line    Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'ProjectName,
Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist
in the Mono for Android profile?
File name: 'ProjectName.dll'
at

Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.
<ExecuteInstantiatedTask>d__26.MoveNext() ProjectName.Android


I'm using Visual Studio Community 2017 version 15.8.8 and Xamarin.Forms
2.5.0.280555



The project that I'm working on works on other pc's from co-workers so I think it has to do with my VS installation. I tried to reinstall VS but this resulted in the same errors.







c# android xamarin xamarin.forms xamarin.android






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 at 17:43









Shadow

11




11












  • Update the version of xamarin.forms to 3.x.
    – Lucas Zhang - MSFT
    Nov 13 at 1:00










  • This is not possible since it's a project that other people use and the company doesn't want to upgrade Xamarin to a newer version.
    – Shadow
    Nov 13 at 9:48










  • Set the version of netstandard as 2.0or 2.1.And can you provide the link of the project?
    – Lucas Zhang - MSFT
    Nov 14 at 7:04










  • I'm not allowed to do this since it's a project from the company that I'm working as an intern at
    – Shadow
    Nov 15 at 8:11










  • The .NET standard is already at 2.0 and I don't have the option to switch to 2.1
    – Shadow
    Nov 15 at 8:38


















  • Update the version of xamarin.forms to 3.x.
    – Lucas Zhang - MSFT
    Nov 13 at 1:00










  • This is not possible since it's a project that other people use and the company doesn't want to upgrade Xamarin to a newer version.
    – Shadow
    Nov 13 at 9:48










  • Set the version of netstandard as 2.0or 2.1.And can you provide the link of the project?
    – Lucas Zhang - MSFT
    Nov 14 at 7:04










  • I'm not allowed to do this since it's a project from the company that I'm working as an intern at
    – Shadow
    Nov 15 at 8:11










  • The .NET standard is already at 2.0 and I don't have the option to switch to 2.1
    – Shadow
    Nov 15 at 8:38
















Update the version of xamarin.forms to 3.x.
– Lucas Zhang - MSFT
Nov 13 at 1:00




Update the version of xamarin.forms to 3.x.
– Lucas Zhang - MSFT
Nov 13 at 1:00












This is not possible since it's a project that other people use and the company doesn't want to upgrade Xamarin to a newer version.
– Shadow
Nov 13 at 9:48




This is not possible since it's a project that other people use and the company doesn't want to upgrade Xamarin to a newer version.
– Shadow
Nov 13 at 9:48












Set the version of netstandard as 2.0or 2.1.And can you provide the link of the project?
– Lucas Zhang - MSFT
Nov 14 at 7:04




Set the version of netstandard as 2.0or 2.1.And can you provide the link of the project?
– Lucas Zhang - MSFT
Nov 14 at 7:04












I'm not allowed to do this since it's a project from the company that I'm working as an intern at
– Shadow
Nov 15 at 8:11




I'm not allowed to do this since it's a project from the company that I'm working as an intern at
– Shadow
Nov 15 at 8:11












The .NET standard is already at 2.0 and I don't have the option to switch to 2.1
– Shadow
Nov 15 at 8:38




The .NET standard is already at 2.0 and I don't have the option to switch to 2.1
– Shadow
Nov 15 at 8:38

















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',
autoActivateHeartbeat: false,
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%2f53267438%2fxamarin-project-opens-up-with-error-could-not-load-file-or-assembly-system-col%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




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267438%2fxamarin-project-opens-up-with-error-could-not-load-file-or-assembly-system-col%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

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python