msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

NuGet package no longer aligned with the 'Getting Started' guide.

Open NeoXtreem opened this issue 8 years ago • 5 comments

Version 1.5 of the NuGet package no longer has the PowerShell script that adds the .build folder; yet the 'Getting Started' guide still says to reference this folder if using NuGet to get MSBuildTasks. Is there an alternative method to use MSBuildTasks via NuGet? If so, the documentation should be updated. Otherwise, reinstate the PowerShell script.

NeoXtreem avatar Mar 29 '17 17:03 NeoXtreem

Facing the same issue. Any updates on this?

adaneam avatar Jul 03 '17 06:07 adaneam

Looks like something like this will get you going

<PropertyGroup> <MSBuildCommunityTasksPath>$(USERPROFILE)\.nuget\packages\msbuildtasks\1.5.0.235\tools</MSBuildCommunityTasksPath> </PropertyGroup>

obviously change this to your current version, as it implies above I found my tasks target file here: C:\Users\{username}\.nuget\packages\msbuildtasks\1.5.0.235\tools

lcornejo avatar Aug 29 '17 21:08 lcornejo

The problem is using NuGet as Package reference. I this case there is no installation folder relative to solution, only a local folder mentioned by lcornejo. I solved this by copying task files to path in solution dir (in example .build) and modified paths is .csproj pointing to this dir.

karelkral avatar Sep 12 '18 14:09 karelkral

my csproj ended up with this...

<PropertyGroup>
    <MSBuildCommunityTasksPath>$(SolutionDir)\packages\MSBuildTasks.1.5.0.235\tools</MSBuildCommunityTasksPath>
  </PropertyGroup>  
  <Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" />

CADbloke avatar Aug 29 '19 00:08 CADbloke