Skip to content

Commit 807e8cc

Browse files
author
John Luo
authored
Fix API baseline check when building site extensions (#27841)
* Include API files when building site extensions * Test SiteEx build on PR * Revert test code * Disable the check all together * revert test change
1 parent b34c5dd commit 807e8cc

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/SiteExtensions/Sdk/HostingStartup/HostingStartup.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>
7+
<!-- No need to track public APIs of this tool. -->
8+
<AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
79
</PropertyGroup>
810

911
<ItemGroup>

src/SiteExtensions/Sdk/HostingStartup/PublicAPI.Shipped.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/SiteExtensions/Sdk/HostingStartup/PublicAPI.Unshipped.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/SiteExtensions/Sdk/SiteExtension.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
<ItemGroup>
4444
<_TemplateFiles Include="$(MSBuildThisFileDirectory)\HostingStartup\*.cs*" />
45+
<_TemplateFiles Include="$(MSBuildThisFileDirectory)\HostingStartup\PublicAPI.*.txt*" />
4546
<!--
4647
Always use Major.Minor.0 so that if we have to produce a new SiteExtension during a patch build it will still work for non-patch runtimes.
4748
i.e. 3.0.0 dotnet will search for 3.0.0 and below and wouldn't find a 3.0.1 folder path

0 commit comments

Comments
 (0)