Skip to content

Commit

Permalink
Fix docs file names and add validation (dotnet#107334)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstj authored and sirntar committed Sep 30, 2024
1 parent 2dec9e3 commit a1a9d88
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eng/intellisense.targets
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
21 changes: 21 additions & 0 deletions src/libraries/sfx.proj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,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>
Expand Down

0 comments on commit a1a9d88

Please sign in to comment.