Skip to content

Commit

Permalink
fix: Remove linked satellite assemblies refs in interp mode
Browse files Browse the repository at this point in the history
(cherry picked from commit 781b152)

# Conflicts:
#	src/Uno.Wasm.Bootstrap.sln
#	src/Uno.Wasm.SampleNet7/Uno.Wasm.SampleNet7.csproj
  • Loading branch information
jeromelaban authored and mergify[bot] committed Sep 1, 2023
1 parent d2506f2 commit 9fa934c
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 7 deletions.
43 changes: 43 additions & 0 deletions src/Uno.Wasm.Bootstrap.sln
Expand Up @@ -131,6 +131,26 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Root", "_Root", "{70AAFC96
..\Readme.md = ..\Readme.md
EndProjectSection
EndProject
<<<<<<< HEAD
=======
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Uno.Wasm.Tests.AbsoluteIntermediate", "Uno.Wasm.Tests.AbsoluteIntermediate\Uno.Wasm.Tests.AbsoluteIntermediate.csproj", "{6584CC1B-2628-4872-851A-E85C0E572D39}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Uno.Wasm.StaticLinking.Embedded", "Uno.Wasm.StaticLinking.Embedded\Uno.Wasm.StaticLinking.Embedded.csproj", "{B7270680-8BCF-4246-834C-0F7CAF48FBB9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{D9443716-A385-4210-80A3-06B8688EDD96}"
ProjectSection(SolutionItems) = preProject
..\build\scripts\run-tests-csp.sh = ..\build\scripts\run-tests-csp.sh
..\build\scripts\run-tests-server.sh = ..\build\scripts\run-tests-server.sh
..\build\scripts\run-tests-swa.sh = ..\build\scripts\run-tests-swa.sh
..\build\scripts\run-tests-windows-server.ps1 = ..\build\scripts\run-tests-windows-server.ps1
..\build\scripts\run-tests-windows.ps1 = ..\build\scripts\run-tests-windows.ps1
..\build\scripts\run-tests.sh = ..\build\scripts\run-tests.sh
..\build\scripts\server.py = ..\build\scripts\server.py
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Uno.Wasm.Sample.Library", "Uno.Wasm.Sample.Library\Uno.Wasm.Sample.Library.csproj", "{42FC5421-72BC-41EA-A1C4-FF88A2DC820A}"
EndProject
>>>>>>> 781b152 (fix: Remove linked satellite assemblies refs in interp mode)
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -313,10 +333,25 @@ Global
{A7F3B4BF-A73D-4769-A78D-5F3CAC362AAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7F3B4BF-A73D-4769-A78D-5F3CAC362AAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7F3B4BF-A73D-4769-A78D-5F3CAC362AAF}.Release|Any CPU.Build.0 = Release|Any CPU
<<<<<<< HEAD
{0527B6ED-6050-4B55-A602-31DD46CF5999}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0527B6ED-6050-4B55-A602-31DD46CF5999}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0527B6ED-6050-4B55-A602-31DD46CF5999}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0527B6ED-6050-4B55-A602-31DD46CF5999}.Release|Any CPU.Build.0 = Release|Any CPU
=======
{6584CC1B-2628-4872-851A-E85C0E572D39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6584CC1B-2628-4872-851A-E85C0E572D39}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6584CC1B-2628-4872-851A-E85C0E572D39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6584CC1B-2628-4872-851A-E85C0E572D39}.Release|Any CPU.Build.0 = Release|Any CPU
{B7270680-8BCF-4246-834C-0F7CAF48FBB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7270680-8BCF-4246-834C-0F7CAF48FBB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7270680-8BCF-4246-834C-0F7CAF48FBB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7270680-8BCF-4246-834C-0F7CAF48FBB9}.Release|Any CPU.Build.0 = Release|Any CPU
{42FC5421-72BC-41EA-A1C4-FF88A2DC820A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42FC5421-72BC-41EA-A1C4-FF88A2DC820A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42FC5421-72BC-41EA-A1C4-FF88A2DC820A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42FC5421-72BC-41EA-A1C4-FF88A2DC820A}.Release|Any CPU.Build.0 = Release|Any CPU
>>>>>>> 781b152 (fix: Remove linked satellite assemblies refs in interp mode)
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -364,6 +399,14 @@ Global
{FC27FD88-F96B-4A00-8B8D-9B20B28A7A9C} = {5F914B7D-AFA2-4145-9548-B1B3A16D77AE}
{2829B1BF-47C7-4284-9EAF-DEB48C4A0209} = {00F3A4D2-5534-44AF-B655-6209355E32A9}
{227B4962-4978-4712-8C52-630E2371A869} = {5F914B7D-AFA2-4145-9548-B1B3A16D77AE}
<<<<<<< HEAD
=======
{A7F3B4BF-A73D-4769-A78D-5F3CAC362AAF} = {84D19B91-8728-4EBD-A6B2-D51F3B0EAB31}
{6584CC1B-2628-4872-851A-E85C0E572D39} = {35E84E5F-1C9B-4168-8333-216B456C12DF}
{B7270680-8BCF-4246-834C-0F7CAF48FBB9} = {5F914B7D-AFA2-4145-9548-B1B3A16D77AE}
{D9443716-A385-4210-80A3-06B8688EDD96} = {70AAFC96-05F5-43A3-959A-95FB32CDE202}
{42FC5421-72BC-41EA-A1C4-FF88A2DC820A} = {00F3A4D2-5534-44AF-B655-6209355E32A9}
>>>>>>> 781b152 (fix: Remove linked satellite assemblies refs in interp mode)
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FA350FE9-9316-4846-8145-356F9A0ACBC7}
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.Wasm.Bootstrap/ShellTask.cs
Expand Up @@ -1011,10 +1011,10 @@ private void RunPackager()
// generated by the packager. Synchronize the list with the actual list.
//
var deletedFiles = Directory
.GetFiles(linkerInput)
.GetFiles(linkerInput, "*.*", SearchOption.AllDirectories)
.Select(Path.GetFileName)
.Except(Directory
.GetFiles(_managedPath)
.GetFiles(_managedPath, "*.*", SearchOption.AllDirectories)
.Select(Path.GetFileName)
);

Expand Down
12 changes: 12 additions & 0 deletions src/Uno.Wasm.Sample.Library/ClassLibrary01.cs
@@ -0,0 +1,12 @@
using System.Reflection;

[assembly: AssemblyMetadata("IsTrimmable", "True")]

namespace Uno.Wasm.Sample.Library
{
public class ClassLibrary01
{
private static void Unused()
=> typeof(Microsoft.CodeAnalysis.Accessibility).ToString();
}
}
13 changes: 13 additions & 0 deletions src/Uno.Wasm.Sample.Library/Uno.Wasm.Sample.Library.csproj
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.7.0" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/Uno.Wasm.Sample/Program.cs
Expand Up @@ -25,6 +25,7 @@ namespace Uno.Wasm.Sample
public static class Program
{
private static Timer _t;
private static Uno.Wasm.Sample.Library.ClassLibrary01 _unused;

static void Main(string[] args)
{
Expand Down
8 changes: 7 additions & 1 deletion src/Uno.Wasm.Sample/sample.common.props
Expand Up @@ -11,6 +11,7 @@

<ItemGroup>
<PackageReference Include="System.Web.Services.Description" Version="4.10.0" />
<PackageReference Include="System.Collections.Immutable" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -56,7 +57,8 @@
<Error Condition="!exists('$(WasmShellOutputPackagePath)\managed\pt-BR\System.Web.Services.Description.resources.clr')"
Text="managed\pt-BR\System.Web.Services.Description.resources.clr does not exist in $(WasmShellOutputPackagePath)" />

<Error Condition="$(_monoConfigJson.Contains('System.IO.Pipes.dll'))" Text="mono-config.json is incorrectly filtered" />
<Error Condition="$(_monoConfigJson.Contains('System.IO.Pipes.dll'))" Text="mono-config.json is incorrectly filtered (System.IO.Pipes.dll)" />
<Error Condition="$(_monoConfigJson.Contains('Microsoft.CodeAnalysis.resources.dll'))" Text="mono-config.json is incorrectly filtered (Microsoft.CodeAnalysis.resources.dll)" />

<Error Condition="$(_duplicateValidation.Contains(';'))" Text="Duplicate System.Private.CoreLib.clr detected" />

Expand All @@ -76,4 +78,8 @@
</ProjectReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Uno.Wasm.Sample.Library\Uno.Wasm.Sample.Library.csproj" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions src/Uno.Wasm.SampleNet7/Uno.Wasm.SampleNet7.csproj
Expand Up @@ -16,15 +16,15 @@
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<WasmShellAdditionalPInvokeLibrary Include="libc" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Client" Version="4.14.0" />
<<<<<<< HEAD
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="System.Collections.Immutable" Version="1.4.0" />
=======
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
>>>>>>> 781b152 (fix: Remove linked satellite assemblies refs in interp mode)
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.1.1" />
</ItemGroup>

Expand Down

0 comments on commit 9fa934c

Please sign in to comment.