Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implicit restore when running analysis. Adds --no-restore option. #1015

Merged
merged 5 commits into from Mar 12, 2021

Conversation

@JoeRobich
Copy link
Member

@JoeRobich JoeRobich commented Feb 26, 2021

Resolves #848

Example output:

  The dotnet format version is '5.1.0-dev'.
  The dotnet runtime version is '6.0.0-alpha.1.21064.11'.
  The dotnet CLI version is '6.0.100-alpha.1.21065.7'.
  Using MSBuild.exe located in '/usr/local/share/dotnet/sdk/6.0.100-alpha.1.21065.7/'.
  Formatting code files in workspace '/Users/joeyrobichaud/Source/format/format.sln'.
  Loading workspace.
    Determining projects to restore...
  Restored /Users/joeyrobichaud/Source/format/perf/dotnet-format.Performance.csproj (in 2.38 sec).
  Restored /Users/joeyrobichaud/Source/format/tests/dotnet-format.UnitTests.csproj (in 3.24 sec).
  1 of 3 projects are up-to-date for restore.
  Project dotnet-format is using configuration from '/Users/joeyrobichaud/Source/format/.editorconfig'.
  Project dotnet-format.UnitTests is using configuration from '/Users/joeyrobichaud/Source/format/artifacts/obj/dotnet-format.UnitTests/Debug/netcoreapp2.1/dotnet-format.UnitTests.GeneratedMSBuildEditorConfig.editorconfig'.
  Project dotnet-format.UnitTests is using configuration from '/Users/joeyrobichaud/Source/format/.editorconfig'.
  Project dotnet-format.Performance is using configuration from '/Users/joeyrobichaud/Source/format/.editorconfig'.
  Complete in 12984ms.
  Determining formattable files.
  Complete in 1885ms.
  Running formatters.
  src/Utilities/DotNetHelper.cs(1,1): Fix file encoding.
  Running Code Style analysis.
  Determining diagnostics...
  Running 22 analyzers on dotnet-format.
  Running 22 analyzers on dotnet-format.UnitTests.
  Running 22 analyzers on dotnet-format.Performance.
  Complete in 27582ms.
  Analysis complete in 27583ms.
  Complete in 29067ms.
  Formatted code file '/Users/joeyrobichaud/Source/format/src/Utilities/DotNetHelper.cs'.
  Formatted 1 of 98 files.
  Format complete in 43937ms.
@JoeRobich JoeRobich changed the title Restore option Add implicit restore when running analysis. Adds --no-restore option. Feb 26, 2021
Base automatically changed from master to main Mar 5, 2021
@JoeRobich JoeRobich merged commit 19b9461 into dotnet:main Mar 12, 2021
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants