Skip to content

dotnet format reports warning when project output dlls are not present #51932

Open

Description

@hugener

Describe the bug

We run dotnet format like this: --no-restore --verbosity diagnostic --verify-no-changes to check for formatting style prior to building. (We do a restore prior to dotnet format)
Unfortunately, we get the following error (warning as error): Msbuild failed when processing the file 'XXX.csproj' with message: Unknown build error, 'Could not find a part of the path XXX.dll

To Reproduce

This happens on cleaned/freshly checkout repos.

Exceptions (if any)

If the repo has been build previously no errors are reported, as the output files exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Formatuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions