AvaloniaRider
AvaloniaRider copied to clipboard
Add xaml file as AvaloniaResource when renaming extension from axaml to xaml
Hello!
Add xaml file as AvaloniaResource when renaming extension from axaml to xaml
$ dotnet new --install Avalonia.Templates::0.10.0
$ dotnet new avalonia.app -o test
Open project in Rider → Rename MainWindow.axaml
to MainWindow.xaml
→ In csproj
<ItemGroup>
<Compile Update="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
</Compile>
<AvaloniaResource Include="MainWindow.xaml">
<SubType>Designer</SubType>
</AvaloniaResource >
</ItemGroup>
Now only Compile Update
is added. Rider 2020.3