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

Provide the scanner as a .net core global tool #530

Merged
merged 1 commit into from Jun 12, 2018

Conversation

Evangelink
Copy link

@Evangelink Evangelink commented Jun 11, 2018

Fix #417

<Project Sdk="Microsoft.NET.Sdk" InitialTargets="DownloadScannerCli">

<PropertyGroup>
<TargetFrameworks>$(ScannerNetFxVersion);$(ScannerNetCoreAppVersion);$(ScannerNetCoreGlobalToolVersion)</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

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

It is ok to move the constants here or to hardcode if we have only one project

Copy link
Author

Choose a reason for hiding this comment

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

We use them in multiple places (for ScannerNetCoreGlobalToolVersion it is 2 places).

<TargetFiles Include="$(SourcesRoot)\SonarScanner.MSBuild.Tasks\Targets\SonarQube.Integration.ImportBefore.targets" />

<!-- Dlls -->
<ScannerFiles Include="$(SourcesRoot)\SonarScanner.MSBuild\bin\$(Configuration)\$(TargetFramework)\SonarQube.Analysis.xml" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't copy local work as well? E.g. could we collect binaries from this project's output folder, instead of browsing the others?

Copy link
Author

Choose a reason for hiding this comment

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

It would probably but I spent enough time improving that for the current sprint.

@Evangelink Evangelink changed the title [WIP] Provide the scanner as a .net core global tool Provide the scanner as a .net core global tool Jun 12, 2018
Copy link
Contributor

@duncanp-sonar duncanp-sonar left a comment

Choose a reason for hiding this comment

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

LGTM

@duncanp-sonar duncanp-sonar merged commit a51d4b5 into master Jun 12, 2018
@ghost ghost removed the Status: Needs Review label Jun 12, 2018
@duncanp-sonar duncanp-sonar deleted the ammo/netcore2.1 branch June 12, 2018 11:28
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.

None yet

3 participants