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
This commit is contained in:
John Luo 2020-11-14 17:05:55 -08:00 committed by GitHub
parent b34c5ddd5f
commit 807e8ccd47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 5 deletions

View File

@ -4,6 +4,8 @@
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
<DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>
<!-- No need to track public APIs of this tool. -->
<AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
</PropertyGroup>
<ItemGroup>

View File

@ -1,4 +0,0 @@
#nullable enable
Program
Program.Program() -> void
static Program.Main() -> void

View File

@ -1 +0,0 @@
#nullable enable

View File

@ -42,6 +42,7 @@
<ItemGroup>
<_TemplateFiles Include="$(MSBuildThisFileDirectory)\HostingStartup\*.cs*" />
<_TemplateFiles Include="$(MSBuildThisFileDirectory)\HostingStartup\PublicAPI.*.txt*" />
<!--
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.
i.e. 3.0.0 dotnet will search for 3.0.0 and below and wouldn't find a 3.0.1 folder path