Format XAML with XAMLStyler

This commit is contained in:
Alexey Golub 2020-01-10 20:06:13 +02:00
parent 5cb6adf19e
commit 4ebc681327
5 changed files with 23 additions and 3 deletions

12
.config/dotnet-tools.json Normal file
View file

@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"xamlstyler.console": {
"version": "3.2001.0",
"commands": [
"xstyler"
]
}
}
}

View file

@ -1,4 +1,4 @@
<Application <Application
x:Class="DiscordChatExporter.Gui.App" x:Class="DiscordChatExporter.Gui.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

View file

@ -30,4 +30,9 @@
<ProjectReference Include="..\DiscordChatExporter.Core.Services\DiscordChatExporter.Core.Services.csproj" /> <ProjectReference Include="..\DiscordChatExporter.Core.Services\DiscordChatExporter.Core.Services.csproj" />
</ItemGroup> </ItemGroup>
<Target Name="Format XAML" AfterTargets="BeforeBuild">
<Exec Command="dotnet tool restore" />
<Exec Command="dotnet xstyler -r -d &quot;$(MSBuildProjectDirectory)&quot;" />
</Target>
</Project> </Project>

View file

@ -28,8 +28,8 @@
<!-- Auto-updates --> <!-- Auto-updates -->
<DockPanel <DockPanel
LastChildFill="False"
Background="Transparent" Background="Transparent"
LastChildFill="False"
ToolTip="Perform automatic updates on every launch"> ToolTip="Perform automatic updates on every launch">
<TextBlock <TextBlock
Margin="16,8" Margin="16,8"
@ -43,8 +43,8 @@
<!-- Persist token --> <!-- Persist token -->
<DockPanel <DockPanel
LastChildFill="False"
Background="Transparent" Background="Transparent"
LastChildFill="False"
ToolTip="Persist last used token between sessions"> ToolTip="Persist last used token between sessions">
<TextBlock <TextBlock
Margin="16,8" Margin="16,8"

3
Settings.XamlStyler Normal file
View file

@ -0,0 +1,3 @@
{
"indentSize": 4
}