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

Development netstandard2.0 #265

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Conversation

pranav-firake
Copy link

Related issue

Description

Currently codelyzer is in .net core and for better compatibility with wider range of projects, this PR has changes to convert it into .NET standard 2.0.

Supplemental testing

Tested manually for sample test projects
Added unit tests for the change


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Pranav Firake and others added 19 commits May 19, 2023 13:08
Co-authored-by: Chris Long [email protected]

* convert common, c#, model, and vb to .net standard
* create .net standard project to consume vsworkspace
* refactor shared classes from build project to common
* add workspace helper class to create ProjectBuildResult from solution
* move file build handler to common project for use in language analyzers
* refactor analyzer code into new net standard project

SIM: https://i.amazon.com/P87028632
cr: https://code.amazon.com/reviews/CR-91702675
Move workspace tests to separate test project because of possible
incompatibilities with the Microsoft.Build nuget package version used in
other test project
Refactor shared pre port compilation logic into ProjectBuildHelper and
update tests. Also add some extra test lines for more code coverage.
Also do some refactoring to allow test code to be reused
Other projects owned by ME depend on this class and changes will mess up
downstream consumers
* remove commented out project reference
* undo removal of cast
* remove debug assertion
* replace '\' with Path.DirectorySeparatorChar
Refactor the msbuild path location function to the MSBuildDetector
class. After consuming this change you will need to first find the path
and then pass into the AnalyzerConfiguration constructor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants