You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 21, 2026. It is now read-only.
Avoid a first-chance exception in ConflictResolver.ResolveConflict #326
Curious what file you're hitting this on. We'd only be going down this path if you had a native file conflict in your package closure, which shouldn't be the case for most projects if they are up-to-date.
Activity
ericstj commentedon May 15, 2017
/cc @dsplaisted this code lives in the SDK as well.
We do have a better implementation on core MSBuild: https://github.com/dotnet/standard/blob/master/Microsoft.Packaging.Tools/tasks/FileUtilities.netstandard.cs#L23
On desktop though we just call GetAssemblyName. I suppose we could use the core implementation everywhere and it would avoid the exception.
KirillOsenkov commentedon May 15, 2017
Yes, that method doesn't throw on native binaries. Please use it :)
ericstj commentedon May 15, 2017
Ported to the SDK: dotnet/sdk#1215
ericstj commentedon May 17, 2017
Curious what file you're hitting this on. We'd only be going down this path if you had a native file conflict in your package closure, which shouldn't be the case for most projects if they are up-to-date.
KirillOsenkov commentedon May 17, 2017
Unfortunately I have no recollection of what I was doing and under what circumstances I've hit this. Sorry :)
ericstj commentedon May 18, 2017
We've decided that the tradeoffs for avoiding this first chance exception aren't worth it. I've opened https://github.com/dotnet/corefx/issues/19928 to track adding an API that can be used to do this better in the future.