Skip to content

Commit

Permalink
Merge pull request #3080 from PrismLibrary/dev/ds/readme
Browse files Browse the repository at this point in the history
Update Package ReadMe
  • Loading branch information
dansiegel authored Feb 21, 2024
2 parents 51f0029 + 89a2e92 commit ba16f1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,16 @@
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<PropertyGroup>
<SupportedOSPlatformVersion>14.2</SupportedOSPlatformVersion>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)'==''">iossimulator-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'macos'">
<PropertyGroup>
<SupportedOSPlatformVersion>10.14</SupportedOSPlatformVersion>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)'==''">osx-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
<PropertyGroup>
<SupportedOSPlatformVersion>14.0</SupportedOSPlatformVersion>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)'==''">maccatalyst-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$(TargetFramework.Contains('windows10'))">
Expand Down
11 changes: 7 additions & 4 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
<Import Project="..\Directory.Build.targets" />

<Target Name="CopyNuGetReadme"
BeforeTargets="_GetPackageFiles"
BeforeTargets="Build;CoreCompile"
Condition=" $(IsPackable) == 'true' ">
<Exec Command="echo # $(PackageId) > $(IntermediateOutputPath)\readme.txt"
<Exec Command="echo # $(PackageId) > $(IntermediateOutputPath)\ReadMe.md"
ConsoleToMsBuild="true" />

<Exec Command="type $(MSBuildThisFileDirectory)ReadMe.md >> $(IntermediateOutputPath)\readme.txt"
<Exec Command="type $(MSBuildThisFileDirectory)ReadMe.md >> $(IntermediateOutputPath)\ReadMe.md"
ConsoleToMsBuild="true" />
</Target>

<Target Name="PackNuGetReadMe"
AfterTargets="CopyNuGetReadme">
<PropertyGroup>
<PackageReadmeFile>ReadMe.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<_PackageFiles Include="$(IntermediateOutputPath)\readme.txt" PackagePath="" />
<None Include="$(IntermediateOutputPath)\ReadMe.md" PackagePath="\" Pack="true" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit ba16f1c

Please sign in to comment.