gluck / il-repack

Open-source alternative to ILMerge
Apache License 2.0
1.19k stars 217 forks source link

Specified method is not supported. #900 #322

Closed phani123hh closed 11 months ago

phani123hh commented 1 year ago

I'm using ILRepack.MSBuild.Task 2.0.13 on .NET 7.0.202 with target netstandard2.0. I don't get the error when I build inside Visual Studio. I'm getting the following error when I run dotnet build on the command line:

image

Quick solution will be appreciated.

phani123hh commented 1 year ago

@hazzik @zippy1981 @vbfox @jonpryor Can anyone please help me on this

chejunkie commented 1 year ago

This is the same issue as #273 . See comments. You may have better luck with a different version, e.g., https://github.com/ravibpatel/ILRepack.Lib.MSBuild.Task

KirillOsenkov commented 11 months ago

This should work fine with the latest ILRepack version: https://www.nuget.org/packages/ILRepack/2.0.23