AvaloniaRider icon indicating copy to clipboard operation
AvaloniaRider copied to clipboard

Add xaml file as AvaloniaResource when renaming extension from axaml to xaml

Open rstm-sf opened this issue 3 years ago • 0 comments

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

rstm-sf avatar Jan 24 '21 08:01 rstm-sf