mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-24 03:56:28 +00:00
Alpha implementation of dependency property source generator.
Testing project for source generator
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Extensions;
|
||||
|
||||
namespace WpfExtended.SourceGeneration.Tests
|
||||
{
|
||||
public partial class Class1 : UserControl
|
||||
{
|
||||
[GenerateDependencyProperty]
|
||||
public int someF;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace WpfExtended.SourceGeneration.Tests
|
||||
{
|
||||
public class Launcher
|
||||
{
|
||||
public static int Main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<OutputType>Exe</OutputType>
|
||||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
|
||||
<CompilerGeneratedFilesOutputPath>obj</CompilerGeneratedFilesOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WpfExtended.SourceGeneration\WpfExtended.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user