dotnet / dotnet/msbuild

FileMatcher Hides FileNotFound Errors On Assemblies

Open
#7,462 1 comment 0 reactions 0 assignees View on GitHub
Area: Debuggability triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description
FileMatcher will catch IO related exceptions **but** continue the build down a different code path. This led to an incredibly confusing experience when Microsoft.IO.Redist couldn't be found while trying to expand a glob for $(Project).*.props early in the build.

![image](https://user-images.githubusercontent.com/4691428/157936399-17ac4fd4-5db6-4edf-a8ac-3611c8db2ce4.png)

We should probably check for special cases like FileNotFound errors on assemblies.

### Steps to Reproduce
Remove Microsoft.IO.Redist from MSBuild.exe's directory, attempt to build any project.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.