Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
aelij committed Nov 27, 2023
1 parent edf3481 commit dd6046c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
<PublishSingleFile>true</PublishSingleFile>
<TrimMode>partial</TrimMode>
<TrimmerSingleWarn>false</TrimmerSingleWarn>
</PropertyGroup>
Expand Down
18 changes: 18 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,22 @@
<Copy SourceFiles="$(RepoRoot)src\RoslynPad.Runtime\bin\$(Configuration)\$(LtsTargetFramework)\$(_RoslynPadInitialRuntimeIdentifier)\RoslynPad.Runtime.dll" DestinationFolder="$(PublishDir)\runtimes\net" />
<Copy SourceFiles="$(RepoRoot)src\RoslynPad.Runtime\bin\$(Configuration)\netstandard2.0\$(_RoslynPadInitialRuntimeIdentifier)\RoslynPad.Runtime.dll" DestinationFolder="$(PublishDir)\runtimes\netfx" />
</Target>
<!-- hack to make macOS asset packaging (actool) work on non-Catalyst builds -->
<Target Name="Before_CoreCompileImageAssets" BeforeTargets="_CoreCompileImageAssets">
<PropertyGroup>
<Original_SdkPlatform>$(_SdkPlatform)</Original_SdkPlatform>
<_SdkPlatform>MacCatalyst</_SdkPlatform>
<Original_UIDeviceFamily>$(_UIDeviceFamily)</Original_UIDeviceFamily>
<_UIDeviceFamily>IPad</_UIDeviceFamily>
<Original_ComputedTargetFrameworkMoniker>$(_ComputedTargetFrameworkMoniker)</Original_ComputedTargetFrameworkMoniker>
<_ComputedTargetFrameworkMoniker>$(_ComputedTargetFrameworkMoniker.Replace('=macos', '=maccatalyst'))</_ComputedTargetFrameworkMoniker>
</PropertyGroup>
</Target>
<Target Name="After_CoreCompileImageAssets" AfterTargets="_CoreCompileImageAssets">
<PropertyGroup>
<_SdkPlatform>$(Original_SdkPlatform)</_SdkPlatform>
<_UIDeviceFamily>$(Original_UIDeviceFamily)</_UIDeviceFamily>
<_ComputedTargetFrameworkMoniker>$(Original_ComputedTargetFrameworkMoniker)</_ComputedTargetFrameworkMoniker>
</PropertyGroup>
</Target>
</Project>
1 change: 1 addition & 0 deletions src/RoslynPad/RoslynPad.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<Version>$(RoslynPadVersion)</Version>
<CopyRoslynPadRuntimeAssemblies>true</CopyRoslynPadRuntimeAssemblies>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit dd6046c

Please sign in to comment.