ravibpatel / ILRepack.Lib.MSBuild.Task

MSBuild task for ILRepack which is an open-source alternative to ILMerge.
Other
107 stars 30 forks source link

dotnet build not working #29

Closed theKBro closed 8 months ago

theKBro commented 3 years ago

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.

nils-a commented 3 years ago

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 commented 3 years ago

probably related to #17

rob-ack commented 3 years ago

related to #28

jairbubbles commented 2 years ago

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/.

KirillOsenkov commented 8 months ago

The recent version should support this properly.