Browse Source
Merge pull request #11136 from AvaloniaUI/fixes/sandbox-generator
Enable source generators in Sandbox.
gh-readonly-queue/master/pr-11141-95256f92b8a5823ccdcfba3f218ea5c2732eb79c
Nikita Tsukanov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
8 deletions
-
samples/Sandbox/MainWindow.axaml.cs
-
samples/Sandbox/Sandbox.csproj
|
|
|
@ -6,17 +6,11 @@ using Avalonia.Win32.WinRT.Composition; |
|
|
|
|
|
|
|
namespace Sandbox |
|
|
|
{ |
|
|
|
public class MainWindow : Window |
|
|
|
public partial class MainWindow : Window |
|
|
|
{ |
|
|
|
public MainWindow() |
|
|
|
{ |
|
|
|
this.InitializeComponent(); |
|
|
|
this.AttachDevTools(); |
|
|
|
} |
|
|
|
|
|
|
|
private void InitializeComponent() |
|
|
|
{ |
|
|
|
AvaloniaXamlLoader.Load(this); |
|
|
|
InitializeComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -4,6 +4,7 @@ |
|
|
|
<OutputType>WinExe</OutputType> |
|
|
|
<TargetFramework>net6.0</TargetFramework> |
|
|
|
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> |
|
|
|
<IncludeAvaloniaGenerators>true</IncludeAvaloniaGenerators> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -17,4 +18,5 @@ |
|
|
|
<Import Project="..\..\build\SampleApp.props" /> |
|
|
|
<Import Project="..\..\build\ReferenceCoreLibraries.props" /> |
|
|
|
<Import Project="..\..\build\BuildTargets.targets" /> |
|
|
|
<Import Project="..\..\build\SourceGenerators.props" /> |
|
|
|
</Project> |
|
|
|
|