Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Convert codeformatter to SDK projects and update to latest dependencies #275

Merged
merged 6 commits into from
Aug 3, 2018

Conversation

ericstj
Copy link
Member

@ericstj ericstj commented Aug 3, 2018

I was trying to use codeformatter on the latest corefx projects when porting some source over and encountered a few issues.

  1. It couldn't handle SDK projects
  2. It couldn't handle C# 7 syntax

Those were both due to using old versions of MSBuild and Roslyn respectively. I fixed those and in the process updated the repo to use SDK projects, fixed the tests to pass, and centralized the dependency information to the root of the repository.

This fixes a number of issues. I tried to go through the issue list and mark the ones that seemed fixed and added some regression tests to prove it.

Fixes #272
Fixes #271
Fixes #268
Fixes #262
Fixes #261
Fixes #258
Fixes #256
Fixes #255
Fixes #241

ericstj added 5 commits August 2, 2018 11:46
This updates all projects to use the Microsoft.NET.Sdk and PackageReference.

This requires MSBuild 15 (VS 2017) so the build script has been updated to locate this.
VS requires TargetFramework to be in the project file rather than in a props file,
otherwise it triggers a project upgrade.
A couple tests were broken due to being out of sync with source changes.

The Xunit update split the Xunit API into two different assemblies (Core and Assert): make sure both are referenced.
build.cmd Outdated
goto :error
)

for /f "usebackq tokens=*" %%i in (`%VSWHERELOCATION% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (

This comment was marked as spam.

This comment was marked as spam.

</dependencies>
</metadata>
<files>
<file src="CodeFormatter.exe" target="lib\net45" />

This comment was marked as spam.

This comment was marked as spam.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ericstj ericstj merged commit 38ef57a into dotnet:master Aug 3, 2018
@terrajobst
Copy link
Contributor

What a monster PR! Thanks for doing this @ericstj.

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