VS 2019 cannot deploy Sharepoint App - Missing AddSharePointResolver task

%3CLINGO-SUB%20id%3D%22lingo-sub-1067445%22%20slang%3D%22en-US%22%3EVS%202019%20cannot%20deploy%20Sharepoint%20App%20-%20Missing%20AddSharePointResolver%20task%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1067445%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22js-vote-count%20grid--cell%20fc-black-500%20fs-title%20grid%20fd-column%20ai-center%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22post-text%22%3E%3CP%3EWe%20have%20a%20Sharepoint%20App%20that%20we%20have%20been%20maintaining%20%26amp%3B%20improving%20for%20a%20few%20years%20now.%20The%20app%20is%20javascript%2Fhtml%20code.%20I%20recently%20(about%203%20weeks%20ago)%20moved%20the%20solution%20to%20a%20new%20computer%20and%20upgraded%20the%20solution%20in%20VS%202019%20and%20at%20that%20time%20I%20was%20able%20to%20deploy%20the%20App%20without%20issue.%3C%2FP%3E%3CP%3ESince%20then%20I%20have%20installed%20a%20some%20Microsoft%20Version%20Updates%20for%20VS%202019%20that%20I%20was%20prompted%20to%20install.%20The%20current%20version%20of%20VS%202019%20is%2016.3.10.%20I%20have%20also%20set%20up%20the%20project%20with%20version%20control%20with%20a%20local%20Git%20repository%20and%20Teams%20Services.%3C%2FP%3E%3CP%3ENow%20I%20am%20not%20able%20to%20deploy%20the%20solution%20due%20to%20the%20following%20error%20that%20occurs%20when%20I%20deploy%20either%20the%20Solution%20or%20the%20App.%3C%2FP%3E%3CP%3EThe%20error%20is%20as%20follows%3A%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EThe%20%22AddSharePointResolver%22%20task%20was%20not%20found.%20Check%20the%20following%3A%0A1)%20The%20name%20of%20the%20task%20in%20the%20project%20file%20is%20the%20same%20as%20the%20name%20of%20the%20task%20class.%0A2)%20The%20task%20class%20is%20%22public%22%20and%20implements%20the%20Microsoft.Build.Framework.ITask%20interface.%0A3)%20The%20task%20is%20correctly%20declared%20with%20in%20the%20project%20file%2C%20or%20in%20the%20*.tasks%20files%20located%20in%20the%20%22C%3A%5CProgram%20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2019%5CCommunity%5CMSBuild%5CCurrent%5CBin%22%20directory.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20this%20point%2C%20to%20my%20knowledge%2C%20there%20have%20not%20been%20any%20%22tasks%22%20in%20the%20project%20nor%20do%20I%20know%20what%20these%20actually%20are.%20I%20cannot%20find%20any%20reference%20on%20the%20internet%20to%20%22AddSharePointResolver%22%2C%20within%20the%20solution%2C%20or%20on%20the%20internet.%3C%2FP%3E%3CP%3EAfter%20some%20investigating%3A%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20Microsoft.Build.Framework.ITask%20interface%20isnt%20on%20my%20computer%3C%2FLI%3E%3CLI%3EThere%20are%20no%20*.tasks%20files%20in%20C%3A%5CProgram%20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2019%5CCommunity%5CMSBuild%5CCurrent%5CBin%3C%2FLI%3E%3CLI%3EI%20searched%20for%20the%20term%20%22UsingTask%22%20in%20the%20solution%20and%20it%20was%20not%20found%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI'm%20a%20bit%20baffled%20as%20to%20what%20has%20changed%20to%20prompt%20for%20this%20and%20what%20it%20is%20actually%20referring%20to.%3C%2FP%3E%3CP%3EAny%20advice%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EGreg%20J%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Visitor
 

We have a Sharepoint App that we have been maintaining & improving for a few years now. The app is javascript/html code. I recently (about 3 weeks ago) moved the solution to a new computer and upgraded the solution in VS 2019 and at that time I was able to deploy the App without issue.

Since then I have installed a some Microsoft Version Updates for VS 2019 that I was prompted to install. The current version of VS 2019 is 16.3.10. I have also set up the project with version control with a local Git repository and Teams Services.

Now I am not able to deploy the solution due to the following error that occurs when I deploy either the Solution or the App.

The error is as follows:

 

The "AddSharePointResolver" 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\Community\MSBuild\Current\Bin" directory.

 

To this point, to my knowledge, there have not been any "tasks" in the project nor do I know what these actually are. I cannot find any reference on the internet to "AddSharePointResolver", within the solution, or on the internet.

After some investigating:

  • The Microsoft.Build.Framework.ITask interface isnt on my computer
  • There are no *.tasks files in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
  • I searched for the term "UsingTask" in the solution and it was not found

I'm a bit baffled as to what has changed to prompt for this and what it is actually referring to.

Any advice would be greatly appreciated.

Cheers

Greg J

0 Replies