File tree 2 files changed +17
-6
lines changed
src/Components/Components/src 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 157
157
<UnusedBaselinePackageReference Include =" @(BaselinePackageReference)"
158
158
Exclude =" @(Reference);@(_ProjectReferenceByAssemblyName);@(PackageReference)" />
159
159
160
- <!-- Only allow suppressing baseline changes in non-servicing builds. -->
160
+ <!-- Handle suppressions needed because above Exclude is not aware of references added in .nuspec files. -->
161
+ <UnusedBaselinePackageReference Remove =" @(SuppressBaselineReference->WithMetadataValue('InNuspecFile', 'true'))"
162
+ Condition =" '$(IsServicingBuild)' == 'true' " />
163
+
164
+ <!-- Allow suppressions of any baseline changes in non-servicing builds. -->
161
165
<UnusedBaselinePackageReference Remove =" @(SuppressBaselineReference)"
162
166
Condition =" '$(IsServicingBuild)' != 'true' " />
163
167
Original file line number Diff line number Diff line change 22
22
<Reference Include =" System.Buffers" />
23
23
</ItemGroup >
24
24
25
- <!-- These references were removed in 3.0 -->
25
+ <!--
26
+ These references exist only in the .nuspec files and baseline checks are not aware of them. Keep suppressions
27
+ in sync with the two .nuspec files:
28
+ - Anytime a reference is added to this project file, remove its suppression.
29
+ - Remove InNuspecFile attributes of references removed from the .nuspec files. Make suppression conditional on
30
+ Major.Minor during previews. After RTM (and baseline updates), remove suppressions entirely.
31
+ -->
26
32
<ItemGroup >
27
- <SuppressBaselineReference Include =" Microsoft.AspNetCore.Components.Analyzers" />
28
- <SuppressBaselineReference Include =" Microsoft.AspNetCore.Authorization" />
29
- <SuppressBaselineReference Include =" Microsoft.JSInterop" />
30
- <SuppressBaselineReference Include =" System.ComponentModel.Annotations" />
33
+ <SuppressBaselineReference Include =" Microsoft.AspNetCore.Components.Analyzers" InNuspecFile =" true" />
34
+ <SuppressBaselineReference Include =" Microsoft.AspNetCore.Authorization" InNuspecFile =" true" />
35
+ <SuppressBaselineReference Include =" Microsoft.JSInterop" InNuspecFile =" true" />
36
+ <SuppressBaselineReference Include =" System.ComponentModel.Annotations" InNuspecFile =" true"
37
+ Condition =" '$(TargetFramework)'=='netstandard2.0' " />
31
38
</ItemGroup >
32
39
33
40
<Target Name =" _GetNuspecDependencyPackageVersions" >
You can’t perform that action at this time.
0 commit comments