|
@@ -148,6 +148,8 @@
|
|
|
|
|
|
|
|
<!-- Identify if any references were present in the last release of this package, but have been removed. -->
|
|
<!-- Identify if any references were present in the last release of this package, but have been removed. -->
|
|
|
<UnusedBaselinePackageReference Include="@(BaselinePackageReference)" Exclude="@(Reference);@(_ProjectReferenceByAssemblyName);@(PackageReference)" />
|
|
<UnusedBaselinePackageReference Include="@(BaselinePackageReference)" Exclude="@(Reference);@(_ProjectReferenceByAssemblyName);@(PackageReference)" />
|
|
|
|
|
+ <!-- Only allow suppressing baseline changes in non-servicing builds. -->
|
|
|
|
|
+ <UnusedBaselinePackageReference Remove="@(SuppressBaselineReference)" Condition="'$(IsServicingBuild)' != 'true'"/>
|
|
|
|
|
|
|
|
<!--
|
|
<!--
|
|
|
MSBuild does not provide a way to join on matching identities in a Condition,
|
|
MSBuild does not provide a way to join on matching identities in a Condition,
|
|
@@ -201,8 +203,13 @@
|
|
|
<_ExplicitPackageReference Remove="@(_ExplicitPackageReference)" />
|
|
<_ExplicitPackageReference Remove="@(_ExplicitPackageReference)" />
|
|
|
</ItemGroup>
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
- <Warning Condition="@(UnusedBaselinePackageReference->Count()) != 0"
|
|
|
|
|
- Text="Package references changed since the last release. This could be a breaking change. References removed:%0A - @(UnusedBaselinePackageReference, '%0A -')" />
|
|
|
|
|
|
|
+ <Warning Condition="'$(IsReferenceAssemblyProject)' != 'true' AND '$(IsServicingBuild)' != 'true' AND '%(UnusedBaselinePackageReference.Identity)' != ''"
|
|
|
|
|
+ Code="BUILD001"
|
|
|
|
|
+ Text="Reference to '%(UnusedBaselinePackageReference.Identity)' was removed since the last stable release of this package. This could be a breaking change. See docs/ReferenceResolution.md for instructions on how to update changes to references or suppress this warning if the error was intentional." />
|
|
|
|
|
+
|
|
|
|
|
+ <Error Condition="'$(IsReferenceAssemblyProject)' != 'true' AND '$(IsServicingBuild)' == 'true' AND @(UnusedBaselinePackageReference->Count()) != 0"
|
|
|
|
|
+ Code="BUILD002"
|
|
|
|
|
+ Text="Package references changed since the last release. This could be a breaking change and is not allowed in a servicing update. References removed:%0A - @(UnusedBaselinePackageReference, '%0A -')" />
|
|
|
|
|
|
|
|
<Error Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework' AND '%(Reference.Identity)' != '' AND ! Exists('%(Reference.Identity)') AND '$(DisablePackageReferenceRestrictions)' != 'true'"
|
|
<Error Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework' AND '%(Reference.Identity)' != '' AND ! Exists('%(Reference.Identity)') AND '$(DisablePackageReferenceRestrictions)' != 'true'"
|
|
|
Code="MSB3245"
|
|
Code="MSB3245"
|