问题描述
我需要最新的ilasm.exe。我以为会是
I need the most recent ilasm.exe. I thought it would be the one from https://www.nuget.org/packages/Microsoft.NETCore.ILAsm/
但是,下载的microsoft.netcore.ilasm.2.0.0.nupkg存档不包含任何.exe或.dll文件。
However, the downloaded microsoft.netcore.ilasm.2.0.0.nupkg archive doesn't contain any .exe or .dll files.
我不知道如何使用该软件包。
I don't get how to use this package.
推荐答案
此软件包利用NuGet中的新功能在每个运行时拆分软件包。在 Microsoft.NETCore.ILAsm
包的根目录中,您会找到一个 runtime.json
文件,该文件引用了其他文件。每个平台的nuget软件包。这意味着当此程序包用于运行时特定的操作时,将使用另一个引用的程序包。
This package makes use of a new feature in NuGet to split packages per runtime. At the root of the Microsoft.NETCore.ILAsm
package, you'll find a runtime.json
file that references other nuget packages per platform. This means that when this package is used for runtime-specific actions, another referenced one is used.
对于64位窗口,此json文件包含:
For 64 bit windows, this json file contains:
"win-x64": {
"Microsoft.NETCore.ILAsm": {
"runtime.win-x64.Microsoft.NETCore.ILAsm": "2.0.0"
}
},
因此,您必须下载 runtime.win-x64.Microsoft.NETCore.ILAsm
块包,而不是包含 runtimes / win-x64的软件包/native/ilasm.exe
文件来使用。
So you have to download the runtime.win-x64.Microsoft.NETCore.ILAsm
nugget package instead which then contains a runtimes/win-x64/native/ilasm.exe
file to use.
这篇关于Microsoft.NETCore.ILAsm中的ilasm.exe在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!