File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
src/CSharpMarkup.WinUI.ScottPlot Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 44
44
45
45
<PropertyGroup >
46
46
<RootNamespace >CSharpMarkup.WinUI.ScottPlot</RootNamespace >
47
- <TargetFrameworks >net8.0-windows10.0.19041;net8.0;net8.0-android34.0;net8.0-ios18.0;net8.0-maccatalyst18.0</TargetFrameworks > <!-- Identical to ScottPlot.WinUI NuGet target frameworks -->
47
+ <TargetFrameworks >net8.0-windows10.0.19041.0 ;net8.0;net8.0-android34.0;net8.0-ios18.0;net8.0-maccatalyst18.0</TargetFrameworks > <!-- Identical to ScottPlot.WinUI NuGet target frameworks -->
48
48
<EnableDefaultPageItems >false</EnableDefaultPageItems >
49
49
</PropertyGroup >
50
50
57
57
<PackageReference Include =" CSharpMarkup.WinUI" />
58
58
<PackageReference Include =" ScottPlot.WinUI" />
59
59
</ItemGroup >
60
+
61
+ <ItemGroup >
62
+ <ProjectReference Include =" ..\..\..\CSharpMarkup.Generators\WinUI\SourceGenerators\SourceGenerators.csproj" Condition =" '$(Configuration)' == 'Generate' " >
63
+ <OutputItemType >Analyzer</OutputItemType >
64
+ <ReferenceOutputAssembly >false</ReferenceOutputAssembly >
65
+ </ProjectReference >
66
+ </ItemGroup >
67
+
68
+ <Import Project =" ..\..\..\CSharpMarkup.Generators\WinUI\Attributes\Attributes.projitems" Label =" Shared" Condition =" '$(Configuration)' == 'Generate' " />
60
69
</Project >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace CSharpMarkup.WinUI.ScottPlot
13
13
{
14
14
public static partial class Helpers
15
15
{
16
-
16
+
17
17
#if GENERATE
18
18
/// <summary>Used by codegen to generate a <see cref="IDefaultBindProperty"/> implementation on markup types. Not used at runtime.</summary>
19
19
/// <remarks>Types must be fully specified for codegen to work</remarks>
@@ -28,7 +28,7 @@ public static partial class Helpers
28
28
/// </summary>
29
29
static Type [ ] UIAssemblies => new Type [ ] // Assemblies in UI NuGets that contain UI types
30
30
{
31
- // TODO: typeof(global::ScottPlot... )
31
+ typeof ( global ::ScottPlot . WinUI . WinUIPlot )
32
32
} ;
33
33
#endif
34
34
}
Original file line number Diff line number Diff line change 16
16
#region NamespaceUsings
17
17
using System ;
18
18
using System . Collections . Generic ;
19
- using System . Numerics ;
20
- using System . Windows . Input ;
21
- using System . Runtime . Versioning ;
22
- using Microsoft ;
23
19
using CSharpMarkup . WinUI . GeneratedCodeUtilities ;
24
- using UI = Microsoft . UI ;
25
- using Collections = System . Collections ;
26
20
using Xaml = Microsoft . UI . Xaml ;
27
- using VirtualKey = Windows . System . VirtualKey ;
28
- using VirtualKeyModifiers = Windows . System . VirtualKeyModifiers ;
29
- using Drawing = System . Drawing ;
30
- // TODO: aliases to shorten namespaces in generated code, e.g. using ScottPlotThingy = ScottPlot...Thingy;
21
+ using Sp = ScottPlot ;
22
+ using SpUI = ScottPlot . WinUI ;
31
23
#endregion
32
24
33
25
// TODO: above aliases are workarounds for compile errors, investigate why and remove if possible
You can’t perform that action at this time.
0 commit comments