The above solution hides the error of loading the project file, but Tomas seems to be trying to use Task from the MSBuild.Community.Tasks extension.
This must be installed using NuGet. Here is a link to the source site showing that we can install it through the command line of the NuGet package:
PM> Install-Package MSBuildTasks
Their documentation is small. You also need to determine the path using:
<Import Project="..\Packages\MSBuildTasks.1.4.0.88\tools\MSBuild.Community.Tasks.Targets"/> <UsingTask AssemblyFile="..\Packages\MSBuildTasks.1.4.0.88\tools\MSBuild.Community.Tasks.Targets.dll" TaskName="MSBuild.Community.Tasks.Zip" />
... where you need to replace the version with the version that you are using from NuGet. This is not perfect, but I managed to get it to work.
NuGet will install it in the Packages folder under the root of your Solution / Project trunk.
I ran into problems when Visual Studio could still struggle to find files in a specific place. If this happens, copy the files from '. \ Packages \ MSBuildTasks.1.4.0.88 \ tools *' to 'C: \ Program Files (x86) \ MSBuild \ MSBuildCommunityTasks \' .
This is not the most elegant, but I was able to successfully use the new tags. If I find a way to fix this last part, I will update the message.
justdan23
source share