Skip to content

Commit

Permalink
Add ref assemblies as ref assemblies on output.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Dec 11, 2023
1 parent 73f5499 commit 7eb61bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/IKVM/IKVM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.config</AllowedOutputExtensionsInPackageBuildOutputFolder>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);GetProjectReferenceBuildOutputInPackage</TargetsForTfmSpecificBuildOutput>
<TargetsForTfmSpecificDebugSymbolsInPackage>$(TargetsForTfmSpecificDebugSymbolsInPackage);GetProjectReferenceDebugSymbolsInPackage</TargetsForTfmSpecificDebugSymbolsInPackage>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);GetReferenceAssembliesInPackage</TargetsForTfmSpecificContentInPackage>
<NoWarn>NU5118</NoWarn>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
Expand Down Expand Up @@ -46,6 +47,12 @@
</ItemGroup>
</Target>

<Target Name="GetReferenceAssembliesInPackage">
<ItemGroup Condition="Exists('..\IKVM.Java\ref\$(TargetFramework)\IKVM.Java.dll')">
<TfmSpecificPackageFile Include="..\IKVM.Java\ref\$(TargetFramework)\IKVM.Java.dll" PackagePath="ref/$(TargetFramework)" />
</ItemGroup>
</Target>

<Target Name="MakeGeneratedPropsFile" Outputs="$(IntermediateOutputPath)generated.props" BeforeTargets="_GetPackageFiles">
<ItemGroup>
<_GeneratedPropsFileLine Include="&lt;Project&gt;&lt;PropertyGroup&gt;&lt;IkvmVersion&gt;$(PackageVersion)&lt;/IkvmVersion&gt;&lt;/PropertyGroup&gt;&lt;/Project&gt;" />
Expand Down

0 comments on commit 7eb61bb

Please sign in to comment.