Skip to content

Commit 65e32f5

Browse files
committed
chore: Adjust hot reload workspace
1 parent 9374fc0 commit 65e32f5

6 files changed

+4
-10
lines changed

src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.MetadataUpdate.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ partial class ClientHotReloadProcessor : IRemoteControlProcessor
2323

2424
private string[] GetMetadataUpdateCapabilities()
2525
{
26-
#if NET6_0_OR_GREATER || __WASM__ || __SKIA__
27-
2826
if (Type.GetType("System.Reflection.Metadata.MetadataUpdater") is { } type)
2927
{
3028
if (type.GetMethod("GetCapabilities", BindingFlags.Static | BindingFlags.NonPublic) is { } getCapabilities)
@@ -52,10 +50,6 @@ private string[] GetMetadataUpdateCapabilities()
5250
{
5351
throw new NotSupportedException($"Unable to find System.Reflection.Metadata.MetadataUpdater");
5452
}
55-
56-
#else
57-
return new string[0];
58-
#endif
5953
}
6054

6155
private void AssemblyReload(AssemblyDeltaReload assemblyDeltaReload)

src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,9 @@ private async Task ConfigureServer()
8080

8181
await _rcClient.SendMessage(new HotReload.Messages.ConfigureServer(_projectPath, _xamlPaths, GetMetadataUpdateCapabilities()));
8282
}
83+
84+
#if !(NET6_0_OR_GREATER || __WASM__ || __SKIA__)
85+
private string[] GetMetadataUpdateCapabilities() => Array.Empty<string>();
86+
#endif
8387
}
8488
}

src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Skia.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454

5555
<ItemGroup>
5656
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
57-
<PackageReference Include="Uno.MonoAnalyzers" />
5857
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
5958
</ItemGroup>
6059

src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Wasm.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
<ItemGroup>
4747
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
48-
<PackageReference Include="Uno.MonoAnalyzers" />
4948
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
5049
</ItemGroup>
5150

src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767

6868
<ItemGroup>
6969
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
70-
<PackageReference Include="Uno.MonoAnalyzers" />
7170
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
7271
</ItemGroup>
7372

src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.net6.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454

5555
<ItemGroup>
5656
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
57-
<PackageReference Include="Uno.MonoAnalyzers" />
5857
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
5958
</ItemGroup>
6059

0 commit comments

Comments
 (0)