ILRepack.Lib.MSBuild.Task icon indicating copy to clipboard operation
ILRepack.Lib.MSBuild.Task copied to clipboard

dotnet build not working

Open theKBro opened this issue 4 years ago • 4 comments

if using dotnet build instead of msbuild there is an error that Microsoft.Build.Utilities.v4.0 cannot be found!

The "ILRepack" task could not be loaded from the assembly ....nuget\packages\ilrepack.lib.msbuild.task\2.0.18\build\ILRepack.Lib.MSBuild.Task.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. 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.

theKBro avatar Apr 15 '21 07:04 theKBro

I'm guessing it's the same problem that was discussed in https://github.com/dotnet/msbuild/issues/2111 so maybe the solution is in there, too.

nils-a avatar May 22 '21 19:05 nils-a

probably related to #17

nils-a avatar May 22 '21 19:05 nils-a

related to #28

rob-ack avatar Jun 02 '21 14:06 rob-ack

Switching to this fork (https://github.com/Alexx999/ILRepack.Lib.MSBuild.Task) does fix the issue but it's missing some commits from there.

The NuGet package is https://www.nuget.org/packages/ILRepack.Lib.MSBuild/.

jairbubbles avatar Jan 21 '22 15:01 jairbubbles

The recent version should support this properly.

KirillOsenkov avatar Jan 08 '24 04:01 KirillOsenkov