-
Notifications
You must be signed in to change notification settings - Fork 128
Add analyzer bootstrap phase #2540
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -restore -build %*" | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\Build.ps1""" -restore -build %*" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,16 @@ | |
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="$(MicrosoftCodeAnalysisCSharpCodeStyleVersion)" PrivateAssets="all" /> | ||
<!-- <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.205" PrivateAssets="all" /> --> | ||
</ItemGroup> | ||
|
||
<Import Project="$(BootstrapBuildPath)/Microsoft.NET.ILLink.Analyzers.props" Condition="'$(BootstrapBuildPath)' != ''" /> | ||
|
||
<!-- Don't enable for Cecil, as they can't be suppressed --> | ||
<PropertyGroup Condition="'$(BootstrapBuildPath)' != '' and '$(MSBuildProjectName)' != 'Mono.Cecil.Pdb'"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mono.Cecil.PDB has a warning (COM) that I need to file a bug for. We also can't disable it because it sets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could push a change to the project to correctly pick up |
||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(BootstrapBuildPath)' != ''"> | ||
<Analyzer Include="$(BootstrapBuildPath)/ILLink.RoslynAnalyzer.dll" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.DotNet.Arcade.Sdk"> | ||
|
||
<Target Name="Build"> | ||
<MSBuild Projects="../src/ILLink.RoslynAnalyzer/ILLink.RoslynAnalyzer.csproj" | ||
Targets="Restore" /> | ||
<MSBuild Projects="../src/ILLink.RoslynAnalyzer/ILLink.RoslynAnalyzer.csproj" | ||
Properties="OutDir=$(ArtifactsDir)/bootstrap" | ||
Targets="Build" /> | ||
</Target> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
[switch] $integrationTest, | ||
[Parameter(ValueFromRemainingArguments=$true)][String[]]$remaining | ||
) | ||
|
||
. (Join-Path $PSScriptRoot "common/tools.ps1") | ||
|
||
echo $ArtifactsDir | ||
|
||
$args = $remaining.Clone() | ||
|
||
if ($integrationTest) { | ||
dotnet build (Join-Path $PSScriptRoot bootstrap.proj) | ||
$args += "-integrationTest" | ||
$args += "/p:BootstrapBuildPath=$ArtifactsDir/bootstrap" | ||
} | ||
|
||
powershell -ExecutionPolicy ByPass -NoProfile (Join-Path $PSScriptRoot "common/build.ps1") @args |
Uh oh!
There was an error while loading. Please reload this page.