问题描述
我需要最新的 ilasm.exe.我认为它是来自 https://www.nuget.org/packages/Microsoft.NETCore.ILAsm/
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 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!