Where is ilasm.exe in Microsoft.NETCore.ILAsm?

风格不统一 提交于 2019-12-11 10:32:10

问题


I need the most recent ilasm.exe. I thought it would be the one from https://www.nuget.org/packages/Microsoft.NETCore.ILAsm/

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.


回答1:


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.

For 64 bit windows, this json file contains:

"win-x64": {
  "Microsoft.NETCore.ILAsm": {
    "runtime.win-x64.Microsoft.NETCore.ILAsm": "2.0.0"
  }
},

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.



来源:https://stackoverflow.com/questions/45818560/where-is-ilasm-exe-in-microsoft-netcore-ilasm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!