-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
26 lines (25 loc) · 938 Bytes
/
Directory.Build.targets
File metadata and controls
26 lines (25 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<Project>
<Target
Name="TurboSamplePluginFastCheck"
Condition="'$(MSBuildProjectName)' == 'TurboSamplePlugin'"
>
<Exec
Command="dotnet build TurboSamplePlugin/TurboSamplePlugin.csproj --no-restore -p:BuildProjectReferences=true -p:RunAnalyzers=false"
WorkingDirectory="$(MSBuildThisFileDirectory)"
/>
</Target>
<Target
Name="TurboSamplePluginQualityGate"
Condition="'$(MSBuildProjectName)' == 'TurboSamplePlugin'"
DependsOnTargets="TurboSamplePluginFastCheck"
>
<Exec
Command="dotnet format TurboSamplePlugin/TurboSamplePlugin.csproj style --verify-no-changes --no-restore --severity error"
WorkingDirectory="$(MSBuildThisFileDirectory)"
/>
<Exec
Command="dotnet format TurboSamplePlugin/TurboSamplePlugin.csproj analyzers --verify-no-changes --no-restore --severity error"
WorkingDirectory="$(MSBuildThisFileDirectory)"
/>
</Target>
</Project>