mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
Fix docs file names and add validation (#107359)
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
This commit is contained in:
parent
810c806836
commit
c7de65f0cc
2 changed files with 22 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
<IntellisensePackageXmlFilePath Condition="'$(IntellisensePackageXmlFilePath)' == '' and Exists($(IntellisensePackageXmlFilePathFromNetFolder))">$(IntellisensePackageXmlFilePathFromNetFolder)</IntellisensePackageXmlFilePath>
|
||||
<IntellisensePackageXmlFilePath Condition="'$(IntellisensePackageXmlFilePath)' == '' and Exists($(IntellisensePackageXmlFilePathFromDotNetPlatExtFolder))">$(IntellisensePackageXmlFilePathFromDotNetPlatExtFolder)</IntellisensePackageXmlFilePath>
|
||||
|
||||
<IntermediateDocFileItemFromIntellisensePackage>$(IntermediateOutputPath)$(TargetName).intellisense-package.xml</IntermediateDocFileItemFromIntellisensePackage>
|
||||
<IntermediateDocFileItemFromIntellisensePackage>$([MSBuild]::NormalizePath('$(IntermediateOutputPath)', 'intellisense-package', '$(TargetName).xml'))</IntermediateDocFileItemFromIntellisensePackage>
|
||||
|
||||
<!-- Suppress "CS1591 - Missing XML comment for publicly visible type or member" compiler errors when the intellisense package xml file is used. -->
|
||||
<NoWarn Condition="'$(SkipIntellisenseNoWarnCS1591)' != 'true'">$(NoWarn);CS1591</NoWarn>
|
||||
|
|
|
@ -73,6 +73,27 @@
|
|||
UseHardlinksIfPossible="true" />
|
||||
</Target>
|
||||
|
||||
<Target Name="ValidateSharedFramework"
|
||||
AfterTargets="Build">
|
||||
<ItemGroup>
|
||||
<!-- exclude private assemblies from ref-->
|
||||
<_expectedRef Include="@(NetCoreAppLibrary)" Condition="!$([System.String]::new('%(Identity)').StartsWith('System.Private'))" />
|
||||
<_expectedSharedFrameworkFile Include="@(_expectedRefs->'$(MicrosoftNetCoreAppRefPackRefDir)%(Identity).dll')" />
|
||||
|
||||
<!-- exclude the full facades from expected docs since they have no types -->
|
||||
<_expectedDoc Include="@(_expectedRefs)" Exclude="netstandard;@(NetFxReference)" />
|
||||
<_expectedSharedFrameworkFile Include="@(_expectedDoc->'$(MicrosoftNetCoreAppRefPackRefDir)%(Identity).xml')" />
|
||||
|
||||
<!-- exclude CoreLib from expected libs, since it's placed in native -->
|
||||
<_expectedLib Include="@(NetCoreAppLibrary)" Exclude="System.Private.CoreLib" />
|
||||
<_expectedSharedFrameworkFile Include="@(_expectedLib->'$(MicrosoftNetCoreAppRuntimePackRidLibTfmDir)%(Identity).dll')" />
|
||||
|
||||
<_missingSharedFrameworkFile Include="@(_expectedSharedFrameworkFile)" Exclude="@(_expectedSharedFrameworkFile->Exists())" />
|
||||
</ItemGroup>
|
||||
|
||||
<Error Text="The shared framework files '@(_missingSharedFrameworkFile)' were missing." Condition="'@(_missingSharedFrameworkFile)' != ''" />
|
||||
</Target>
|
||||
|
||||
<Target Name="GetTrimSharedFrameworkAssembliesInputs"
|
||||
DependsOnTargets="ResolveProjectReferences">
|
||||
<PropertyGroup>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue