sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Emit warning in CoreHost when file referenced in 'deps' cannot be found

Open analogrelay opened this issue 10 years ago • 4 comments

When a file referenced in the deps file cannot be found, it would be extremely useful if the host could emit a warning. Right now, you just get an assembly load error and you have to scan the deps file to diagnose it

analogrelay avatar Feb 15 '16 20:02 analogrelay

@anurse should this be a fail fast instead? When you say warning, do you mean continue to run the app but emit a visible message or do you mean to see this tracing on?

schellap avatar Apr 28 '16 07:04 schellap

Yeah, I think a fail-fast might be appropriate here. Effectively it's a preemptive assembly load failure. If the app ever tries to load that assembly, it's going to fail. In theory, if the app never loads the assembly it's not a problem, but I think that's a pretty odd case. Thoughts @davidfowl @pakrym ?

analogrelay avatar Apr 28 '16 15:04 analogrelay

If it's in deps it should be resolved, I'm for fail-fast.

pakrym avatar Apr 28 '16 15:04 pakrym

Fixed by https://github.com/dotnet/cli/pull/3020 Files not resolved will fail fast.

schellap avatar May 30 '16 18:05 schellap