File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 19
19
<ItemGroup Label =" Library.Template" >
20
20
<GlobalPackageReference Include =" CSharpIsNullAnalyzer" Version =" 0.1.593" />
21
21
<GlobalPackageReference Include =" DotNetAnalyzers.DocumentationAnalyzers" Version =" 1.0.0-beta.59" />
22
- <GlobalPackageReference Include =" Nerdbank.GitVersioning" Version =" 3.7.115" />
22
+ <!-- The condition works around https://github.com/dotnet/sdk/issues/44951 -->
23
+ <GlobalPackageReference Include =" Nerdbank.GitVersioning" Version =" 3.7.115" Condition =" !('$(TF_BUILD)'=='true' and '$(dotnetformat)'=='true')" />
23
24
<GlobalPackageReference Include =" PolySharp" Version =" 1.15.0" />
24
25
<GlobalPackageReference Include =" StyleCop.Analyzers.Unstable" Version =" 1.2.0.556" />
25
26
</ItemGroup >
Original file line number Diff line number Diff line change 37
37
- template : dotnet.yml
38
38
parameters :
39
39
RunTests : ${{ parameters.RunTests }}
40
- - script : dotnet format --verify-no-changes --no-restore
40
+ - script : dotnet format --verify-no-changes
41
41
displayName : 💅 Verify formatted code
42
+ env :
43
+ dotnetformat : true # part of a workaround for https://github.com/dotnet/sdk/issues/44951
42
44
- template : expand-template.yml
43
45
44
46
- job : macOS
You can’t perform that action at this time.
0 commit comments