Skip to content

Commit a1adb53

Browse files
committed
Add repro for dotnet/runtime#52735
1 parent 0ebe8ad commit a1adb53

File tree

8 files changed

+209
-0
lines changed

8 files changed

+209
-0
lines changed
48.3 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk.Web">
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<NoWarn>NU1701</NoWarn>
7+
<WasmShellEnableEmscriptenWindows>false</WasmShellEnableEmscriptenWindows>
8+
9+
<!-- Controls linker operations -->
10+
<WasmShellILLinkerEnabled>false</WasmShellILLinkerEnabled>
11+
12+
<!-- Prevents re-downloading and overwriting the SDK files -->
13+
<WasmShellDisableSDKCheckSumValidation>true</WasmShellDisableSDKCheckSumValidation>
14+
<NetCoreWasmSDKUri>https://unowasmbootstrap.blob.core.windows.net/runtime/dotnet-runtime-wasm-linux-7be3fcf-d77854a16ea-839807436-Release.zip</NetCoreWasmSDKUri>
15+
</PropertyGroup>
16+
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
17+
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled>
18+
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants>
19+
<DebugType>portable</DebugType>
20+
<DebugSymbols>true</DebugSymbols>
21+
</PropertyGroup>
22+
<ItemGroup>
23+
<Content Include="Assets\SplashScreen.png" />
24+
</ItemGroup>
25+
<ItemGroup>
26+
<UpToDateCheckInput Include="..\Issue52735.Shared\**\*.xaml" />
27+
</ItemGroup>
28+
<ItemGroup>
29+
<EmbeddedResource Include="WasmCSS\Fonts.css" />
30+
<EmbeddedResource Include="WasmScripts\AppManifest.js" />
31+
</ItemGroup>
32+
<ItemGroup>
33+
<LinkerDescriptor Include="LinkerConfig.xml" />
34+
</ItemGroup>
35+
<ItemGroup>
36+
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
37+
<PackageReference Include="Uno.Extensions.Logging.WebAssembly.Console" Version="1.0.1" />
38+
<PackageReference Include="Uno.UI.WebAssembly" Version="3.7.4" />
39+
<PackageReference Include="Uno.Wasm.Bootstrap" Version="2.1.0" />
40+
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" Version="2.1.0" />
41+
</ItemGroup>
42+
<Import Project="..\Issue52735.Shared\Issue52735.Shared.projitems" Label="Shared" Condition="Exists('..\Issue52735.Shared\Issue52735.Shared.projitems')" />
43+
</Project>
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<linker>
2+
<assembly fullname="Issue52735.Wasm" />
3+
<assembly fullname="Uno.UI" />
4+
<assembly fullname="Microsoft.Extensions.Options" />
5+
6+
<assembly fullname="System.Core">
7+
<!-- This is required by JSon.NET and any expression.Compile caller -->
8+
<type fullname="System.Linq.Expressions*" />
9+
</assembly>
10+
</linker>

Bug52735/Issue52735.Wasm/Program.cs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using Windows.UI.Xaml;
3+
4+
namespace Issue52735.Wasm
5+
{
6+
public class Program
7+
{
8+
private static App _app;
9+
10+
static int Main(string[] args)
11+
{
12+
Windows.UI.Xaml.Application.Start(_ => _app = new App());
13+
14+
return 0;
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"iisSettings": {
3+
"windowsAuthentication": false,
4+
"anonymousAuthentication": true,
5+
"iisExpress": {
6+
"applicationUrl": "http://localhost:61328/",
7+
"sslPort": 0
8+
}
9+
},
10+
"profiles": {
11+
"IIS Express": {
12+
"commandName": "IISExpress",
13+
"launchBrowser": true,
14+
"environmentVariables": {
15+
"ASPNETCORE_ENVIRONMENT": "Development"
16+
}
17+
},
18+
"Issue52735.Wasm": {
19+
"commandName": "Project",
20+
"launchBrowser": true,
21+
"environmentVariables": {
22+
"ASPNETCORE_ENVIRONMENT": "Development"
23+
},
24+
"applicationUrl": "http://localhost:5000"
25+
}
26+
}
27+
}

Bug52735/Issue52735.Wasm/WasmCSS/Fonts.css

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var UnoAppManifest = {
2+
3+
splashScreenImage: "Assets/SplashScreen.png",
4+
splashScreenColor: "#fff",
5+
displayName: "Issue52735"
6+
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.web>
4+
<customErrors mode="Off"/>
5+
</system.web>
6+
7+
<system.webServer>
8+
9+
<!-- Disable compression as we're doing it through pre-compressed files -->
10+
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
11+
12+
<staticContent>
13+
<remove fileExtension=".dll" />
14+
<remove fileExtension=".wasm" />
15+
<remove fileExtension=".woff" />
16+
<remove fileExtension=".woff2" />
17+
<mimeMap fileExtension=".wasm" mimeType="application/wasm" />
18+
<mimeMap fileExtension=".clr" mimeType="application/octet-stream" />
19+
<mimeMap fileExtension=".pdb" mimeType="application/octet-stream" />
20+
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
21+
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
22+
<mimeMap fileExtension=".dat" mimeType="application/octet-stream" />
23+
<!-- Required for PWAs -->
24+
<mimeMap fileExtension=".json" mimeType="application/octet-stream" />
25+
</staticContent>
26+
27+
<rewrite>
28+
<rules>
29+
<rule name="Lookup for pre-compressed brotli file" stopProcessing="true">
30+
<match url="(.*)$"/>
31+
<conditions>
32+
<!-- Match brotli requests -->
33+
<add input="{HTTP_ACCEPT_ENCODING}" pattern="br" />
34+
35+
<!-- Match all but pre-compressed files -->
36+
<add input="{REQUEST_URI}" pattern="^(?!/_compressed_br/)(.*)$" />
37+
38+
<!-- Check if the pre-compressed file exists on the disk -->
39+
<add input="{DOCUMENT_ROOT}/_compressed_br/{C:0}" matchType="IsFile" negate="false" />
40+
</conditions>
41+
<action type="Rewrite" url="/_compressed_br{C:0}" />
42+
</rule>
43+
44+
<rule name="Lookup for pre-compressed gzip file" stopProcessing="true">
45+
<match url="(.*)$"/>
46+
<conditions>
47+
<!-- Match gzip requests -->
48+
<add input="{HTTP_ACCEPT_ENCODING}" pattern="gzip" />
49+
50+
<!-- Match all but pre-compressed files -->
51+
<add input="{REQUEST_URI}" pattern="^(?!/_compressed_gz/)(.*)$" />
52+
53+
<!-- Check if the pre-compressed file exists on the disk -->
54+
<add input="{DOCUMENT_ROOT}/_compressed_gz/{C:0}" matchType="IsFile" negate="false" />
55+
</conditions>
56+
<action type="Rewrite" url="/_compressed_gz{C:0}" />
57+
</rule>
58+
</rules>
59+
60+
<outboundRules>
61+
<rule name="Adjust content encoding for gzip pre-compressed files" enabled="true" stopProcessing="true">
62+
<match serverVariable="RESPONSE_CONTENT_ENCODING" pattern="" />
63+
<conditions>
64+
<add input="{REQUEST_URI}" pattern="/_compressed_gz/.*$" />
65+
</conditions>
66+
<action type="Rewrite" value="gzip"/>
67+
</rule>
68+
<rule name="Adjust content encoding for brotli pre-compressed files" enabled="true" stopProcessing="true">
69+
<match serverVariable="RESPONSE_CONTENT_ENCODING" pattern="" />
70+
<conditions>
71+
<add input="{REQUEST_URI}" pattern="/_compressed_br/.*$" />
72+
</conditions>
73+
<action type="Rewrite" value="br"/>
74+
</rule>
75+
</outboundRules>
76+
</rewrite>
77+
</system.webServer>
78+
</configuration>

0 commit comments

Comments
 (0)