-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fixing build and debugging for wasm/gtk
- Loading branch information
1 parent
df46af5
commit fa660d4
Showing
14 changed files
with
186 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project ToolsVersion="15.0"> | ||
<Target Name="FixPlaygroundReferences" BeforeTargets="BuildDist"> | ||
<ItemGroup> | ||
<PlaygroundPaths Include="@(ReferenceCopyLocalPaths)" Condition="'%(FileName)%(Extension)'=='Playground.dll'" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<PlaygroundLibs>%(PlaygroundPaths.RootDir)%(PlaygroundPaths.Directory)*.WinUI.dll</PlaygroundLibs> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<FilesToDelete Include="$(PlaygroundLibs)"/> | ||
</ItemGroup> | ||
<Delete Files="@(FilesToDelete)" > | ||
<Output TaskParameter="DeletedFiles" ItemName="DeletedList"/> | ||
</Delete> | ||
<Message Text="Deleted files: '@(DeletedList)'"/> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 63 additions & 58 deletions
121
samples/Playground/Playground.Wasm/Playground.Wasm.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,76 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<NoWarn>$(NoWarn);NU1504;NU1505;NU1701</NoWarn> | ||
<!-- Disabled due to issue with Central Package Management with implicit using --> | ||
<ImplicitUsings>disable</ImplicitUsings> | ||
<WasmPWAManifestFile>manifest.webmanifest</WasmPWAManifestFile> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<!-- | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<NoWarn>$(NoWarn);NU1504;NU1505;NU1701</NoWarn> | ||
<!-- Disabled due to issue with Central Package Management with implicit using --> | ||
<ImplicitUsings>disable</ImplicitUsings> | ||
<WasmPWAManifestFile>manifest.webmanifest</WasmPWAManifestFile> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<!-- | ||
Supports Deep Linking Routes | ||
https://aka.platform.uno/wasm-deeplink | ||
--> | ||
<WasmShellWebAppBasePath>/</WasmShellWebAppBasePath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled> | ||
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants> | ||
<DebugType>portable</DebugType> | ||
<DebugSymbols>true</DebugSymbols> | ||
<!-- | ||
<WasmShellWebAppBasePath>/</WasmShellWebAppBasePath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled> | ||
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants> | ||
<DebugType>portable</DebugType> | ||
<DebugSymbols>true</DebugSymbols> | ||
<!-- | ||
IL Linking is disabled in Debug configuration. | ||
When building in Release, see https://platform.uno/docs/articles/features/using-il-linker-WebAssembly.html | ||
--> | ||
<WasmShellILLinkerEnabled>false</WasmShellILLinkerEnabled> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<!-- XAML Resource trimming https://aka.platform.uno/xaml-trimming --> | ||
<!--<UnoXamlResourcesTrimming>true</UnoXamlResourcesTrimming>--> | ||
<!-- Improve performance with AOT builds https://aka.platform.uno/wasm-aot --> | ||
<!-- <WasmShellMonoRuntimeExecutionMode>InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode> --> | ||
<!-- Temporarily uncomment to generate an AOT profile https://aka.platform.uno/wasm-aot-profile --> | ||
<!-- <WasmShellGenerateAOTProfile>true</WasmShellGenerateAOTProfile> --> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="manifest.webmanifest" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="WasmCSS\Fonts.css" /> | ||
<EmbeddedResource Include="WasmScripts\AppManifest.js" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<LinkerDescriptor Include="LinkerConfig.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- | ||
<WasmShellILLinkerEnabled>false</WasmShellILLinkerEnabled> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<!-- XAML Resource trimming https://aka.platform.uno/xaml-trimming --> | ||
<!--<UnoXamlResourcesTrimming>true</UnoXamlResourcesTrimming>--> | ||
<!-- Improve performance with AOT builds https://aka.platform.uno/wasm-aot --> | ||
<!-- <WasmShellMonoRuntimeExecutionMode>InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode> --> | ||
<!-- Temporarily uncomment to generate an AOT profile https://aka.platform.uno/wasm-aot-profile --> | ||
<!-- <WasmShellGenerateAOTProfile>true</WasmShellGenerateAOTProfile> --> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="manifest.webmanifest" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="WasmCSS\Fonts.css" /> | ||
<EmbeddedResource Include="WasmScripts\AppManifest.js" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<LinkerDescriptor Include="LinkerConfig.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- | ||
This item group is required by the project template because of the | ||
new SDK-Style project, otherwise some files are not added automatically. | ||
You can safely remove this ItemGroup completely. | ||
--> | ||
<None Include="Program.cs" /> | ||
<None Include="LinkerConfig.xml" /> | ||
<None Include="wwwroot\web.config" /> | ||
</ItemGroup> | ||
<None Include="Program.cs" /> | ||
<None Include="LinkerConfig.xml" /> | ||
<None Include="wwwroot\web.config" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Windows.Compatibility" /> | ||
<PackageReference Include="Uno.Wasm.Bootstrap" /> | ||
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" /> | ||
<PackageReference Include="Uno.WinUI.WebAssembly" /> | ||
<PackageReference Include="Uno.WinUI.DevServer" Condition="'$(Configuration)'=='Debug'" /> | ||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" /> | ||
<PackageReference Include="Uno.Extensions.Logging.WebAssembly.Console" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Console" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Playground\Playground.csproj" /> | ||
</ItemGroup> | ||
<Import Project="..\Playground.Base\base.props" /> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Windows.Compatibility" /> | ||
<PackageReference Include="Uno.Wasm.Bootstrap" /> | ||
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" /> | ||
<PackageReference Include="Uno.WinUI.WebAssembly" /> | ||
<PackageReference Include="Uno.WinUI.DevServer" Condition="'$(Configuration)'=='Debug'" /> | ||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" /> | ||
<PackageReference Include="Uno.Extensions.Logging.WebAssembly.Console" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Playground\Playground.csproj" /> | ||
<ProjectReference Include="..\..\..\src\Uno.Extensions.Hosting.UI\Uno.Extensions.Hosting.WinUI.Wasm.csproj" /> | ||
<ProjectReference Include="..\..\..\src\Uno.Extensions.Logging\Uno.Extensions.Logging.WinUI.Wasm.csproj" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\Playground.Base\base.props" /> | ||
|
||
<Import Project="..\FixExtensionLibs.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.