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...

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://docs.microsoft.com/en-us/dotnet/core/dependency-loading/default-probing#how-do-i-debug-the-probing-properties-construction

 

https://github.com/dotnet/sdk/issues/6688

https://github.com/dotnet/sdk/issues/9594

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(263)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.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
点击右上角即可分享
微信分享提示