Skip to content

Commit

Permalink
Reintroduce AssemblyInfos target (#6297)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon authored Apr 14, 2022
1 parent 3e73bf3 commit 06ddfd3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,23 @@
<CopyLocalLockFileAssemblies Condition="'$(TargetFramework)'=='netstandard2.0'">true</CopyLocalLockFileAssemblies>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<Target Name="AssemblyInfos"
BeforeTargets="CoreGenerateAssemblyInfo"
Inputs="@InternalsVisibleTo" Outputs="%(InternalsVisibleTo.Identity)"
Condition="$(IsPackable) == True">
<PropertyGroup>
<ExposedAssembly>%(InternalsVisibleTo.Identity)</ExposedAssembly>
<VersionNamespaced>$(ExposedAssembly.Replace("Nest", "Nest$(MajorVersion)").Replace("Elasticsearch.Net","Elasticsearch.Net$(MajorVersion)"))</VersionNamespaced>
</PropertyGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>%(InternalsVisibleTo.Identity), PublicKey=$(ExposedPublicKey)</_Parameter1>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>$(VersionNamespaced), PublicKey=$(ExposedPublicKey)</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Target>

</Project>

0 comments on commit 06ddfd3

Please sign in to comment.