File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 <PrivateAssets >All</PrivateAssets >
1111 </PackageReference >
1212 </ItemGroup >
13+
1314 <ItemGroup Condition =" '$(MinVerTagPrefix)' == 'core-' AND '$(CheckAPICompatibility)' == 'true'" >
1415 <PackageReference Include =" Microsoft.DotNet.ApiCompat" Version =" 6.0.0-beta.21308.1" PrivateAssets =" All" />
1516 <ResolvedMatchingContract Include =" ..\LastMajorVersionBinaries\$(AssemblyName)\$(OTelPreviousStableVer)\lib\$(TargetFramework)\$(AssemblyName).dll" />
1617 </ItemGroup >
18+
1719 <Target Name =" PreBuild" BeforeTargets =" PreBuildEvent" Condition =" '$(MinVerTagPrefix)' == 'core-' AND '$(CheckAPICompatibility)' == 'true'" >
1820 <Exec Command =" powershell -ExecutionPolicy Unrestricted -File " $(RepoRoot)\build\PreBuild.ps1" -package $(AssemblyName) -version " $(OTelPreviousStableVer)" " />
1921 </Target >
2022
23+ <Target Name =" FindContractDependencyPaths" BeforeTargets =" ValidateApiCompatForSrc" AfterTargets =" ResolveAssemblyReferences" Condition =" '$(MinVerTagPrefix)' == 'core-' AND '$(CheckAPICompatibility)' == 'true'" >
24+ <ItemGroup >
25+ <_ReferencePathDirectories Include =" @(ReferencePath -> '%(RootDir)%(Directory)')" />
26+ </ItemGroup >
27+ <PropertyGroup >
28+ <ContractDependencyPaths >@(_ReferencePathDirectories->Distinct())</ContractDependencyPaths >
29+ </PropertyGroup >
30+ </Target >
31+
2132 <PropertyGroup >
2233 <CodeAnalysisRuleSet >$(MSBuildThisFileDirectory)/OpenTelemetry.prod.ruleset</CodeAnalysisRuleSet >
2334 <NoWarn >$(NoWarn),1573,1712</NoWarn >
You can’t perform that action at this time.
0 commit comments