dansiegel / Mobile.BuildTools

The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
http://mobilebuildtools.com
MIT License
228 stars 29 forks source link

The "LocateBuildToolsConfigTask" task was not found. Check the following: #286

Closed tinonetic closed 3 years ago

tinonetic commented 3 years ago

Hi,

A clear and concise description of what the bug is.

I upgraded to the latest version for a Xamarin.Android app,

I made no additional changes to the app. But just ran it.

It builds without error, but when I try to run it on the device, I get the following error:

The "LocateBuildToolsConfigTask" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin" directory.

Because I did not implement a task class with ITask interface, I looked for as pointed out in item 3

But it is not there in the two versions of Microsoft.Common.tasks in the folder

Expected Behavior

Mobile app must run on phone without issue as before with the old version of BuildTools

Actual Behavior

It fails with error above

Environment

SuperCorks commented 3 years ago

Any update on this, I have the same issue?

dansiegel commented 3 years ago

I am closing this issue as there is no reproduction or anything that is really actionable here. From the sound of what you're describing please check out #282 as there is a hack that may fix your issue. If you have tried that hack and are still experiencing the issue please feel free to update this thread with the additional information and a simple sample project that reproduces the issue.