What's the replacement for fuslogvw in .net core 2?
What's the replacement for fuslogvw in .net core 2?
When encountering problems with resolving DLLs and assemblies in general with .Net fuslogvw gave you the ability to log the binding attempts so you could see exactly where it was looking and what was going on.
There is a github issue discussing this, but it's not exactly got very much detail on what COREHOST_TRACE
actually provides, nor the best way to get the output, nor how to interpret the output.
So, is COREHOST_TRACE
the best option?
If so how is it used?
If not, what's the better option?
I'd like to know the answer to this general question, because it's a useful tool to have and so has uses well beyond my current problem. However I am also trying to fix a specific problem, so I've included details of that below.
I'm using...
- VS 15.7.2
- asp.net core 2.0
- The DLL in question is native, and is being accessed via
DllImport
.
Interestingly the DLL is resolved when I publish a release build, but fails running locally for development builds.
Exception: System.DllNotFoundException: Unable to load DLL 'libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The DLL in question is beinging copied to the root of the output directory:
<ItemGroup>
<ContentWithTargetPath Include="Dependencies\wkhtmltox\v0.12.4\32 bit\libwkhtmltox.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<TargetPath>libwkhtmltox.dll</TargetPath>
</ContentWithTargetPath>
</ItemGroup>
https://github.com/dotnet/runtime/issues/7693
下面2个命令都是cmd.exe里面执行
set COREHOST_TRACE=1
set COREHOST_TRACE_VERBOSITY=4
set COREHOST_TRACEFILE=host_trace.txt
dotnet run
https://github.com/dotnet/core-setup/blob/master/Documentation/design-docs/host-tracing.md
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet#environment-variables
https://github.com/dotnet/sdk/issues/6688
https://github.com/dotnet/sdk/issues/9594
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2018-07-26 Can't remove netstandard folder from output path (.net standard)
2018-07-26 website项目的reference问题
2018-07-26 The type exists in both DLLs
2017-07-26 how to backup and restore database of SQL Server