Change resm into avares.
MODIFY
WalletWasabi.Gui/App.xaml
WalletWasabi.Gui/App.xaml
xmlns:Views="clr-namespace:AvaloniaDemo.ViewModels.Views;assembly=AvalonStudio.Shell"
x:Class="WalletWasabi.Gui.App">
<Application.Styles>
- <StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/>
+ <StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://AvalonStudio.Shell/Themes/BaseDark.xaml"/>
<StyleInclude Source="avares://AvalonStudio.Shell/Themes/Theme.xaml"/>
<StyleInclude Source="avares://AvalonStudio.Shell/Themes/Accents/DarkAccent.xaml"/>
<StyleInclude Source="avares://AvalonStudio.Shell/Styles/GlobalStyles.xaml" />
<StyleInclude Source="avares://Dock.Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Dock.Avalonia.Themes.Metro/DefaultTheme.xaml"/>
-
- <StyleInclude Source="resm:WalletWasabi.Gui.Controls.GroupBox.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Styles.Styles.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Icons.Icons.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Controls.TogglePasswordBox.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Controls.MultiTextBox.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Controls.BusyIndicator.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Controls.EditableTextBlock.xaml?assembly=WalletWasabi.Gui" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Controls/GroupBox.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Controls/TogglePasswordBox.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Controls/MultiTextBox.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Controls/BusyIndicator.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Controls/EditableTextBlock.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Styles/Styles.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Icons/Icons.xaml" />
</Application.Styles>
<Application.DataTemplates>
<DataTemplate DataType="Views:MainView">

MODIFY
WalletWasabi.Gui/MainWindow.xaml
WalletWasabi.Gui/MainWindow.xaml
xmlns:idc="clr-namespace:Dock.Avalonia.Controls;assembly=Dock.Avalonia"
xmlns:beh="clr-namespace:AvalonStudio.Utils.Behaviors;assembly=AvalonStudio.Utils"
x:Class="WalletWasabi.Gui.MainWindow"
- Icon="resm:WalletWasabi.Gui.Assets.WasabiLogo256.png?assembly=WalletWasabi.Gui"
+ Icon="avares://WalletWasabi.Gui/Assets/WasabiLogo256.png"
Title="{Binding Title}"
MinWidth="1100" MinHeight="530"
FontFamily="{DynamicResource UiFont}" FontSize="14"

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml
xmlns:internal="clr-namespace:WalletWasabi.Gui.ManagedDialogs"
xmlns:cont="clr-namespace:AvalonStudio.Shell.Controls;assembly=AvalonStudio.Shell"
x:Class="WalletWasabi.Gui.ManagedDialogs.ManagedFileDialog"
- Icon="resm:WalletWasabi.Gui.Assets.WasabiLogo256.png?assembly=WalletWasabi.Gui"
+ Icon="avares://WalletWasabi.Gui/Assets/WasabiLogo256.png"
Title="{Binding Title}" Width="1100" Height="500" MinWidth="1100" MinHeight="500"
FontFamily="{DynamicResource UiFont}" FontSize="14"
Foreground="{DynamicResource ThemeForegroundBrush}">

MODIFY
WalletWasabi.Gui/Tabs/LegalIssuesViewModel.cs
WalletWasabi.Gui/Tabs/LegalIssuesViewModel.cs
@@ -8,7 +8,7 @@ namespace WalletWasabi.Gui.Tabs
{
public class LegalIssuesViewModel : TextResourceViewModelBase
{
- public LegalIssuesViewModel(Global global) : base(global, "Legal Issues", new Uri("resm:WalletWasabi.Gui.Assets.LegalIssues.txt"))
+ public LegalIssuesViewModel(Global global) : base(global, "Legal Issues", new Uri("avares://WalletWasabi.Gui/Assets/LegalIssues.txt"))
{
}
}

MODIFY
WalletWasabi.Gui/Tabs/PrivacyPolicyViewModel.cs
WalletWasabi.Gui/Tabs/PrivacyPolicyViewModel.cs
@@ -8,7 +8,7 @@ namespace WalletWasabi.Gui.Tabs
{
public class PrivacyPolicyViewModel : TextResourceViewModelBase
{
- public PrivacyPolicyViewModel(Global global) : base(global, "Privacy Policy", new Uri("resm:WalletWasabi.Gui.Assets.PrivacyPolicy.txt"))
+ public PrivacyPolicyViewModel(Global global) : base(global, "Privacy Policy", new Uri("avares://WalletWasabi.Gui/Assets/PrivacyPolicy.txt"))
{
}
}

MODIFY
WalletWasabi.Gui/Tabs/TermsAndConditionsViewModel.cs
WalletWasabi.Gui/Tabs/TermsAndConditionsViewModel.cs
@@ -14,7 +14,7 @@ namespace WalletWasabi.Gui.Tabs
{
public class TermsAndConditionsViewModel : TextResourceViewModelBase
{
- public TermsAndConditionsViewModel(Global global) : base(global, "Terms and Conditions", new Uri("resm:WalletWasabi.Gui.Assets.TermsAndConditions.txt"))
+ public TermsAndConditionsViewModel(Global global) : base(global, "Terms and Conditions", new Uri("avares://WalletWasabi.Gui/Assets/TermsAndConditions.txt"))
{
}
}

MODIFY
WalletWasabi.Gui/WalletWasabi.Gui.csproj
WalletWasabi.Gui/WalletWasabi.Gui.csproj
<Compile Update="**\*.xaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
- <EmbeddedResource Include="**\*.xaml;Assets\*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
- <AvaloniaResource Include="Assets\*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
+ <AvaloniaResource Include="**\*.xaml;Assets\*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

Change resm into avares.