Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

MSBuild - one Package Reference interferes with loading a separate Task

$
0
0

Using MSBuild, the following builds and works fine:

<PackageReference Include="Publicise.MSBuild.Task" Version="1.3.0"/><Target Name="Publicise" BeforeTargets="BeforeBuild"><Publicise    AssemblyPath="..."    OutputPath="../"/></Target>

However, when I add another Package Reference (changing nothing else), it encounters errors on build:

<PackageReference Include="Publicise.MSBuild.Task" Version="1.3.0"/><PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13"/>

This results in error MSB4062:

The "Publicise" task could not be loaded from the assembly ...\ILRepack.MSBuild.Task.dll. Confirm that the 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.

Why is something completely separate preventing the task from being properly found, and how can I fix this?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>