Alpha implementation of dependency property source generator.

Testing project for source generator
This commit is contained in:
Alexandru Macocian
2021-04-06 10:40:06 +02:00
parent 127cfd749f
commit 7d3c2fbb9b
26 changed files with 1163 additions and 3 deletions
@@ -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>