error MSB4062: The “Xamarin.Forms.Build.Tasks.GetTasksAbi” task could not be loaded from the assembly
After updating the packages "Xamarin.Forms" and "Xamarin.Forms.Maps" to latest version i.e "3.0.0.446417", the project will no longer build and I get this error:
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.targets(35,3):
error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.Build.Tasks.dll.
Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
The error refers to this place of the file Xamarin.Forms.Targets:
<XamlGTask
XamlFiles="@(EmbeddedResource)" Condition="'%(Extension)' == '.xaml' AND '$(DefaultLanguageSourceExtension)' == '.cs'"
Language = "$(Language)"
AssemblyName = "$(AssemblyName)"
OutputPath = "$(IntermediateOutputPath)">
<Output ItemName="FilesWrite" TaskParameter="GeneratedCodeFiles" />
<Output ItemName="Compile" TaskParameter="GeneratedCodeFiles" />
</XamlGTask>
And the XamlGTask is underlined with a warning which says:
Task 'XamlGTask' is not defined
What I've done so far is cleaning the whole solution, deleting the obj/bin folders and also clearing All Nuget Caches from Package Manager Settings but none of them helped.
visual-studio xamarin xamarin.forms nuget
add a comment |
After updating the packages "Xamarin.Forms" and "Xamarin.Forms.Maps" to latest version i.e "3.0.0.446417", the project will no longer build and I get this error:
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.targets(35,3):
error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.Build.Tasks.dll.
Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
The error refers to this place of the file Xamarin.Forms.Targets:
<XamlGTask
XamlFiles="@(EmbeddedResource)" Condition="'%(Extension)' == '.xaml' AND '$(DefaultLanguageSourceExtension)' == '.cs'"
Language = "$(Language)"
AssemblyName = "$(AssemblyName)"
OutputPath = "$(IntermediateOutputPath)">
<Output ItemName="FilesWrite" TaskParameter="GeneratedCodeFiles" />
<Output ItemName="Compile" TaskParameter="GeneratedCodeFiles" />
</XamlGTask>
And the XamlGTask is underlined with a warning which says:
Task 'XamlGTask' is not defined
What I've done so far is cleaning the whole solution, deleting the obj/bin folders and also clearing All Nuget Caches from Package Manager Settings but none of them helped.
visual-studio xamarin xamarin.forms nuget
Also try after deleting Prefetch, temp and %temp% folders.
– Kalp
May 9 '18 at 9:29
Unluckily that didn't work.
– Vahid
May 10 '18 at 8:33
I won't make this an official answer as I have no idea why this worked. I just upgraded Xamarin.Forms via NUGET, and then it worked.
– arame3333
Jun 21 '18 at 10:00
add a comment |
After updating the packages "Xamarin.Forms" and "Xamarin.Forms.Maps" to latest version i.e "3.0.0.446417", the project will no longer build and I get this error:
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.targets(35,3):
error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.Build.Tasks.dll.
Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
The error refers to this place of the file Xamarin.Forms.Targets:
<XamlGTask
XamlFiles="@(EmbeddedResource)" Condition="'%(Extension)' == '.xaml' AND '$(DefaultLanguageSourceExtension)' == '.cs'"
Language = "$(Language)"
AssemblyName = "$(AssemblyName)"
OutputPath = "$(IntermediateOutputPath)">
<Output ItemName="FilesWrite" TaskParameter="GeneratedCodeFiles" />
<Output ItemName="Compile" TaskParameter="GeneratedCodeFiles" />
</XamlGTask>
And the XamlGTask is underlined with a warning which says:
Task 'XamlGTask' is not defined
What I've done so far is cleaning the whole solution, deleting the obj/bin folders and also clearing All Nuget Caches from Package Manager Settings but none of them helped.
visual-studio xamarin xamarin.forms nuget
After updating the packages "Xamarin.Forms" and "Xamarin.Forms.Maps" to latest version i.e "3.0.0.446417", the project will no longer build and I get this error:
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.targets(35,3):
error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly
C:Users[MyUser].nugetpackagesxamarin.forms3.0.0.446417buildnetstandard2.0Xamarin.Forms.Build.Tasks.dll.
Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
The error refers to this place of the file Xamarin.Forms.Targets:
<XamlGTask
XamlFiles="@(EmbeddedResource)" Condition="'%(Extension)' == '.xaml' AND '$(DefaultLanguageSourceExtension)' == '.cs'"
Language = "$(Language)"
AssemblyName = "$(AssemblyName)"
OutputPath = "$(IntermediateOutputPath)">
<Output ItemName="FilesWrite" TaskParameter="GeneratedCodeFiles" />
<Output ItemName="Compile" TaskParameter="GeneratedCodeFiles" />
</XamlGTask>
And the XamlGTask is underlined with a warning which says:
Task 'XamlGTask' is not defined
What I've done so far is cleaning the whole solution, deleting the obj/bin folders and also clearing All Nuget Caches from Package Manager Settings but none of them helped.
visual-studio xamarin xamarin.forms nuget
visual-studio xamarin xamarin.forms nuget
edited May 9 '18 at 9:04
Vahid
asked May 9 '18 at 8:58
VahidVahid
673515
673515
Also try after deleting Prefetch, temp and %temp% folders.
– Kalp
May 9 '18 at 9:29
Unluckily that didn't work.
– Vahid
May 10 '18 at 8:33
I won't make this an official answer as I have no idea why this worked. I just upgraded Xamarin.Forms via NUGET, and then it worked.
– arame3333
Jun 21 '18 at 10:00
add a comment |
Also try after deleting Prefetch, temp and %temp% folders.
– Kalp
May 9 '18 at 9:29
Unluckily that didn't work.
– Vahid
May 10 '18 at 8:33
I won't make this an official answer as I have no idea why this worked. I just upgraded Xamarin.Forms via NUGET, and then it worked.
– arame3333
Jun 21 '18 at 10:00
Also try after deleting Prefetch, temp and %temp% folders.
– Kalp
May 9 '18 at 9:29
Also try after deleting Prefetch, temp and %temp% folders.
– Kalp
May 9 '18 at 9:29
Unluckily that didn't work.
– Vahid
May 10 '18 at 8:33
Unluckily that didn't work.
– Vahid
May 10 '18 at 8:33
I won't make this an official answer as I have no idea why this worked. I just upgraded Xamarin.Forms via NUGET, and then it worked.
– arame3333
Jun 21 '18 at 10:00
I won't make this an official answer as I have no idea why this worked. I just upgraded Xamarin.Forms via NUGET, and then it worked.
– arame3333
Jun 21 '18 at 10:00
add a comment |
7 Answers
7
active
oldest
votes
error MSB4062: The “Xamarin.Forms.Build.Tasks.GetTasksAbi” task could not be loaded from the assembly
To resolve this issue, you should definitely make sure all projects reference the same version of the package Xamarin.Forms.
In your Solution Explorer
right click on your solution node and select Manage NuGet Packages for solution...
. Select the Consolidate
tab and click on the Xamarin.Forms
NuGet package, confirm all projects used the same version. If not, update all to the same version.
Besides, some one said that install .NET Framework 4.7.1 would help solve this issue, you can check if it helps.
Certified: https://forums.xamarin.com/discussion/comment/324869#Comment_324869
Note: If you could not install the .net framework 4.7.1 successfully, please try to update your Windows 10 to latest release. Thanks @Vahid.
Hope this helps.
2
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
1
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
add a comment |
Tried all the above and failed. I mention that I use VS2017 v15.7.5.
If nothing works try this:
Close VS - all instances
Reopen VS without loading your solution
Go to Tools -> Options -> NuGet Package Manager -> Package Manager Settings -> NuGet Package Manager -> General -> Clear All NuGet Cache(s)
Load you solution and Build.
It worked for me!
add a comment |
I'm using VS 2017 with Xamarin Forms. These are the steps I took to resolve this error:
- Make sure you're running same version of Xamarin.Forms for both Android and iOS
- Close Solution
- Open VS -> Tools -> Options -> Nuget Package Manager -> Clear NuGet Caches
- Open Solution in Windows Explorer
- Shift Delete vs folder
- Shift Delete bin & obj folders in Android and iOS
- Restart Computer
- Once restarted, open VS and let it restore NuGet packages automatically (this may take time)
- Clean solution
- Rebuild solution
add a comment |
I had this issue and the solution was a pending restart for the windows update that had to be performed. very annoying.
add a comment |
Solution 1:
Sometimes it helps to kill MsBuild process with taskmanager. (Press ctrl+shift+Esc)
Solution 2:
Clean Solution
Close Visual Studio
Delete all obj/bin folders
(Sometimes a delete of packages folder is required)
Restart visual studio and rebuild
add a comment |
I have faced the same issue recently, the simplest solution is to install .net framework 4.7.1, that's it. It's because 4.7.1 is required for netstandard2!
Reference: https://github.com/xamarin/Xamarin.Forms/issues/2667
add a comment |
Here is what worked for me:
Step 1: Close Visual Studio with the solution you are working on.
Step 2: Delete the .vs folder in your solution folder (The .vs folder is generally hidden)
Step 3: Re-open your solution with visual studio
Thats it.
add a comment |
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
});
}
});
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%2f50249343%2ferror-msb4062-the-xamarin-forms-build-tasks-gettasksabi-task-could-not-be-loa%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
error MSB4062: The “Xamarin.Forms.Build.Tasks.GetTasksAbi” task could not be loaded from the assembly
To resolve this issue, you should definitely make sure all projects reference the same version of the package Xamarin.Forms.
In your Solution Explorer
right click on your solution node and select Manage NuGet Packages for solution...
. Select the Consolidate
tab and click on the Xamarin.Forms
NuGet package, confirm all projects used the same version. If not, update all to the same version.
Besides, some one said that install .NET Framework 4.7.1 would help solve this issue, you can check if it helps.
Certified: https://forums.xamarin.com/discussion/comment/324869#Comment_324869
Note: If you could not install the .net framework 4.7.1 successfully, please try to update your Windows 10 to latest release. Thanks @Vahid.
Hope this helps.
2
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
1
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
add a comment |
error MSB4062: The “Xamarin.Forms.Build.Tasks.GetTasksAbi” task could not be loaded from the assembly
To resolve this issue, you should definitely make sure all projects reference the same version of the package Xamarin.Forms.
In your Solution Explorer
right click on your solution node and select Manage NuGet Packages for solution...
. Select the Consolidate
tab and click on the Xamarin.Forms
NuGet package, confirm all projects used the same version. If not, update all to the same version.
Besides, some one said that install .NET Framework 4.7.1 would help solve this issue, you can check if it helps.
Certified: https://forums.xamarin.com/discussion/comment/324869#Comment_324869
Note: If you could not install the .net framework 4.7.1 successfully, please try to update your Windows 10 to latest release. Thanks @Vahid.
Hope this helps.
2
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
1
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
add a comment |
error MSB4062: The “Xamarin.Forms.Build.Tasks.GetTasksAbi” task could not be loaded from the assembly
To resolve this issue, you should definitely make sure all projects reference the same version of the package Xamarin.Forms.
In your Solution Explorer
right click on your solution node and select Manage NuGet Packages for solution...
. Select the Consolidate
tab and click on the Xamarin.Forms
NuGet package, confirm all projects used the same version. If not, update all to the same version.
Besides, some one said that install .NET Framework 4.7.1 would help solve this issue, you can check if it helps.
Certified: https://forums.xamarin.com/discussion/comment/324869#Comment_324869
Note: If you could not install the .net framework 4.7.1 successfully, please try to update your Windows 10 to latest release. Thanks @Vahid.
Hope this helps.
error MSB4062: The “Xamarin.Forms.Build.Tasks.GetTasksAbi” task could not be loaded from the assembly
To resolve this issue, you should definitely make sure all projects reference the same version of the package Xamarin.Forms.
In your Solution Explorer
right click on your solution node and select Manage NuGet Packages for solution...
. Select the Consolidate
tab and click on the Xamarin.Forms
NuGet package, confirm all projects used the same version. If not, update all to the same version.
Besides, some one said that install .NET Framework 4.7.1 would help solve this issue, you can check if it helps.
Certified: https://forums.xamarin.com/discussion/comment/324869#Comment_324869
Note: If you could not install the .net framework 4.7.1 successfully, please try to update your Windows 10 to latest release. Thanks @Vahid.
Hope this helps.
edited May 10 '18 at 8:52
answered May 10 '18 at 8:35
Leo Liu-MSFTLeo Liu-MSFT
18.8k22333
18.8k22333
2
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
1
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
add a comment |
2
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
1
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
2
2
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
All my projects had the same versions of packages i.e there aren't any packages listed in consolidate section. All my packages I took the advice of @DanSiegel from here and downloaded .NETFramework 4.7.1 but as installation failed, after a further searching I had to update my Windows 10 to latest release and now I no longer get that error and my project builds successfully.
– Vahid
May 10 '18 at 8:46
1
1
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
@Vahid, Thanks for your reply. I will add your comment to my answer, this can be beneficial to other community members who have the same issue(could not install .net framework 4.7.1). Thanks :).
– Leo Liu-MSFT
May 10 '18 at 8:49
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
my computer was already as up to date as it would let me. for me it was install .net framework 4.7.1 and a restart. it builds now.
– user875234
May 10 '18 at 15:54
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
I also had to ensure I was building against the right SDK. This is in the project under Application > Compile using Android Version, NOT Android Manifest. I made sure to set to build against the highest SDK. I also ensured all Xamarin.Forms NuGets were the same version - that's important, too!
– Auri Rahimzadeh
Jun 21 '18 at 0:42
add a comment |
Tried all the above and failed. I mention that I use VS2017 v15.7.5.
If nothing works try this:
Close VS - all instances
Reopen VS without loading your solution
Go to Tools -> Options -> NuGet Package Manager -> Package Manager Settings -> NuGet Package Manager -> General -> Clear All NuGet Cache(s)
Load you solution and Build.
It worked for me!
add a comment |
Tried all the above and failed. I mention that I use VS2017 v15.7.5.
If nothing works try this:
Close VS - all instances
Reopen VS without loading your solution
Go to Tools -> Options -> NuGet Package Manager -> Package Manager Settings -> NuGet Package Manager -> General -> Clear All NuGet Cache(s)
Load you solution and Build.
It worked for me!
add a comment |
Tried all the above and failed. I mention that I use VS2017 v15.7.5.
If nothing works try this:
Close VS - all instances
Reopen VS without loading your solution
Go to Tools -> Options -> NuGet Package Manager -> Package Manager Settings -> NuGet Package Manager -> General -> Clear All NuGet Cache(s)
Load you solution and Build.
It worked for me!
Tried all the above and failed. I mention that I use VS2017 v15.7.5.
If nothing works try this:
Close VS - all instances
Reopen VS without loading your solution
Go to Tools -> Options -> NuGet Package Manager -> Package Manager Settings -> NuGet Package Manager -> General -> Clear All NuGet Cache(s)
Load you solution and Build.
It worked for me!
edited Aug 7 '18 at 21:54
answered Aug 7 '18 at 19:59
adSadadSad
517312
517312
add a comment |
add a comment |
I'm using VS 2017 with Xamarin Forms. These are the steps I took to resolve this error:
- Make sure you're running same version of Xamarin.Forms for both Android and iOS
- Close Solution
- Open VS -> Tools -> Options -> Nuget Package Manager -> Clear NuGet Caches
- Open Solution in Windows Explorer
- Shift Delete vs folder
- Shift Delete bin & obj folders in Android and iOS
- Restart Computer
- Once restarted, open VS and let it restore NuGet packages automatically (this may take time)
- Clean solution
- Rebuild solution
add a comment |
I'm using VS 2017 with Xamarin Forms. These are the steps I took to resolve this error:
- Make sure you're running same version of Xamarin.Forms for both Android and iOS
- Close Solution
- Open VS -> Tools -> Options -> Nuget Package Manager -> Clear NuGet Caches
- Open Solution in Windows Explorer
- Shift Delete vs folder
- Shift Delete bin & obj folders in Android and iOS
- Restart Computer
- Once restarted, open VS and let it restore NuGet packages automatically (this may take time)
- Clean solution
- Rebuild solution
add a comment |
I'm using VS 2017 with Xamarin Forms. These are the steps I took to resolve this error:
- Make sure you're running same version of Xamarin.Forms for both Android and iOS
- Close Solution
- Open VS -> Tools -> Options -> Nuget Package Manager -> Clear NuGet Caches
- Open Solution in Windows Explorer
- Shift Delete vs folder
- Shift Delete bin & obj folders in Android and iOS
- Restart Computer
- Once restarted, open VS and let it restore NuGet packages automatically (this may take time)
- Clean solution
- Rebuild solution
I'm using VS 2017 with Xamarin Forms. These are the steps I took to resolve this error:
- Make sure you're running same version of Xamarin.Forms for both Android and iOS
- Close Solution
- Open VS -> Tools -> Options -> Nuget Package Manager -> Clear NuGet Caches
- Open Solution in Windows Explorer
- Shift Delete vs folder
- Shift Delete bin & obj folders in Android and iOS
- Restart Computer
- Once restarted, open VS and let it restore NuGet packages automatically (this may take time)
- Clean solution
- Rebuild solution
answered Aug 14 '18 at 8:48
JontyJonty
58957
58957
add a comment |
add a comment |
I had this issue and the solution was a pending restart for the windows update that had to be performed. very annoying.
add a comment |
I had this issue and the solution was a pending restart for the windows update that had to be performed. very annoying.
add a comment |
I had this issue and the solution was a pending restart for the windows update that had to be performed. very annoying.
I had this issue and the solution was a pending restart for the windows update that had to be performed. very annoying.
answered Sep 25 '18 at 8:47
Fire in the HoleFire in the Hole
6361024
6361024
add a comment |
add a comment |
Solution 1:
Sometimes it helps to kill MsBuild process with taskmanager. (Press ctrl+shift+Esc)
Solution 2:
Clean Solution
Close Visual Studio
Delete all obj/bin folders
(Sometimes a delete of packages folder is required)
Restart visual studio and rebuild
add a comment |
Solution 1:
Sometimes it helps to kill MsBuild process with taskmanager. (Press ctrl+shift+Esc)
Solution 2:
Clean Solution
Close Visual Studio
Delete all obj/bin folders
(Sometimes a delete of packages folder is required)
Restart visual studio and rebuild
add a comment |
Solution 1:
Sometimes it helps to kill MsBuild process with taskmanager. (Press ctrl+shift+Esc)
Solution 2:
Clean Solution
Close Visual Studio
Delete all obj/bin folders
(Sometimes a delete of packages folder is required)
Restart visual studio and rebuild
Solution 1:
Sometimes it helps to kill MsBuild process with taskmanager. (Press ctrl+shift+Esc)
Solution 2:
Clean Solution
Close Visual Studio
Delete all obj/bin folders
(Sometimes a delete of packages folder is required)
Restart visual studio and rebuild
answered Sep 25 '18 at 12:50
FredrikFredrik
211
211
add a comment |
add a comment |
I have faced the same issue recently, the simplest solution is to install .net framework 4.7.1, that's it. It's because 4.7.1 is required for netstandard2!
Reference: https://github.com/xamarin/Xamarin.Forms/issues/2667
add a comment |
I have faced the same issue recently, the simplest solution is to install .net framework 4.7.1, that's it. It's because 4.7.1 is required for netstandard2!
Reference: https://github.com/xamarin/Xamarin.Forms/issues/2667
add a comment |
I have faced the same issue recently, the simplest solution is to install .net framework 4.7.1, that's it. It's because 4.7.1 is required for netstandard2!
Reference: https://github.com/xamarin/Xamarin.Forms/issues/2667
I have faced the same issue recently, the simplest solution is to install .net framework 4.7.1, that's it. It's because 4.7.1 is required for netstandard2!
Reference: https://github.com/xamarin/Xamarin.Forms/issues/2667
answered Nov 25 '18 at 16:34
Divyesh_008Divyesh_008
169
169
add a comment |
add a comment |
Here is what worked for me:
Step 1: Close Visual Studio with the solution you are working on.
Step 2: Delete the .vs folder in your solution folder (The .vs folder is generally hidden)
Step 3: Re-open your solution with visual studio
Thats it.
add a comment |
Here is what worked for me:
Step 1: Close Visual Studio with the solution you are working on.
Step 2: Delete the .vs folder in your solution folder (The .vs folder is generally hidden)
Step 3: Re-open your solution with visual studio
Thats it.
add a comment |
Here is what worked for me:
Step 1: Close Visual Studio with the solution you are working on.
Step 2: Delete the .vs folder in your solution folder (The .vs folder is generally hidden)
Step 3: Re-open your solution with visual studio
Thats it.
Here is what worked for me:
Step 1: Close Visual Studio with the solution you are working on.
Step 2: Delete the .vs folder in your solution folder (The .vs folder is generally hidden)
Step 3: Re-open your solution with visual studio
Thats it.
answered Nov 28 '18 at 4:42
OzeshOzesh
2,6871815
2,6871815
add a comment |
add a comment |
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.
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%2f50249343%2ferror-msb4062-the-xamarin-forms-build-tasks-gettasksabi-task-could-not-be-loa%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
Also try after deleting Prefetch, temp and %temp% folders.
– Kalp
May 9 '18 at 9:29
Unluckily that didn't work.
– Vahid
May 10 '18 at 8:33
I won't make this an official answer as I have no idea why this worked. I just upgraded Xamarin.Forms via NUGET, and then it worked.
– arame3333
Jun 21 '18 at 10:00