Skip to content

Commit 5bce0b9

Browse files
[release/7.0.1xx-xcode14-rc2] [msbuild] Hot Restart fixes (#16005)
Adds missing css files needed on Maui Blazor apps and avoids copying unnecessary files into the bundle (overdue task since the .NET migration). Backport of #15979 Co-authored-by: Emanuel Fernandez Dell'Oca <ema@xamarin.com>
1 parent 4e1b472 commit 5bce0b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.HotRestart.targets

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<CollectBundleResources
3939
OptimizePropertyLists="$(OptimizePropertyLists)"
4040
OptimizePNGs="$(OptimizePNGs)"
41-
BundleResources="@(Content);@(BundleResource)"
41+
BundleResources="@(Content);@(BundleResource);@(MauiAsset)"
4242
ProjectDir="$(MSBuildProjectDirectory)"
4343
ResourcePrefix="$(IPhoneResourcePrefix)">
4444

@@ -163,9 +163,8 @@
163163
<_FilesToHotRestartContent Include="@(_FilesToHotRestartContent -> '%(RootDir)%(Directory)%(Filename).pdb')"
164164
Condition="Exists('%(RootDir)%(Directory)%(Filename).pdb')" />
165165

166-
<!-- TODO: We stopped filtering assemblies until we fix the net6 build -->
167-
<!-- <_FilesToHotRestartContent Include="@(ReferenceCopyLocalPaths -> Distinct())" Condition="Exists('$(HotRestartAppBundlePath)\%(Filename)%(Extension)') == 'false'"/> -->
168-
<_FilesToHotRestartContent Include="@(ReferenceCopyLocalPaths -> Distinct())"/>
166+
<_FilesToHotRestartContent Include="@(ReferenceCopyLocalPaths -> Distinct())"
167+
Condition="Exists('$(HotRestartAppBundlePath)\%(Filename)%(Extension)') == 'false' And '%(Extension)' != '.a' And '%(Extension)' != '.dylib' And '%(Extension)' != '.dat'"/>
169168
</ItemGroup>
170169
</Target>
171170

0 commit comments

Comments
 (0)