forked from dotnet/maui
/
Controls.Core.Design.csproj
62 lines (61 loc) · 2.9 KB
/
Controls.Core.Design.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472</TargetFrameworks>
<AssemblyName>Microsoft.Maui.Controls.DesignTools</AssemblyName>
<EnableDefaultCompileItems>False</EnableDefaultCompileItems>
<IsPackable>False</IsPackable>
<_MauiDesignDllBuild Condition=" '$(OS)' != 'Unix' ">True</_MauiDesignDllBuild>
</PropertyGroup>
<ItemGroup Condition=" '$(_MauiDesignDllBuild)' == 'True' ">
<Reference Include="System.Xaml" />
<Compile Include="AttributeTableBuilder.cs" />
<Compile Include="ColorDesignTypeConverter.cs" />
<Compile Include="EnumConverter.cs" />
<Compile Include="NonExclusiveEnumConverter.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RegisterMetadata.cs" />
<Compile Include="VisualDesignTypeConverter.cs" />
<Compile Include="ItemsLayoutDesignTypeConverter.cs" />
<Compile Include="KeyboardDesignTypeConverter.cs" />
<Compile Include="EasingDesignTypeConverter.cs" />
<Compile Include="FlowDirectionDesignTypeConverter.cs" />
<Compile Include="GridLengthCollectionDesignTypeConverter.cs" />
<Compile Include="GridLengthDesignTypeConverter.cs" />
<Compile Include="KnownValuesDesignTypeConverter.cs" />
<Compile Include="LayoutOptionsDesignTypeConverter.cs" />
<Compile Include="LinearItemsLayoutDesignTypeConverter.cs" />
<Compile Include="FontSizeDesignTypeConverter.cs" />
<Compile Include="FlexEnumDesignTypeConverters.cs" />
<PackageReference Include="Microsoft.VisualStudio.DesignTools.Extensibility" Version="17.3.32804.24" />
</ItemGroup>
<!-- The IDE will look for a top level assembly resource called 'Microsoft.Maui.toolbox.xml' to -->
<!-- load the toolbox metadata from. -->
<ItemGroup>
<EmbeddedResource Include="toolbox\Microsoft.Maui.toolbox.xml">
<LogicalName>Microsoft.Maui.toolbox.xml</LogicalName>
</EmbeddedResource>
</ItemGroup>
<!-- Ensure that all images in the 'mac' and 'win' subdirectories are included as embedded resources -->
<!-- using a defined format. That format is "{platform}.{imagename}". We will look up images using -->
<!-- exact-match logic so there's no guessework to figure out which image we need to load. -->
<PropertyGroup>
<PrepareResourcesDependsOn>
IncludeToolboxImages
$(PrepareResourcesDependsOn);
</PrepareResourcesDependsOn>
</PropertyGroup>
<Target Name="IncludeToolboxImages">
<!-- Be explicit about the prefix rather than relying on the directory name being exactly what we need -->
<ItemGroup>
<Images Include="toolbox\icons\mac\*.png">
<Prefix>mac</Prefix>
</Images>
<Images Include="toolbox\icons\win\*.png">
<Prefix>win</Prefix>
</Images>
</ItemGroup>
<CreateItem Include="@(Images)" AdditionalMetadata="LogicalName=%(Prefix).%(Filename)%(Extension)">
<Output TaskParameter="Include" ItemName="EmbeddedResource" />
</CreateItem>
</Target>
</Project>