Skip to content

Commit 6350c9e

Browse files
committed
Converted Design projects to Sdk-style
- Remove 'AssemblyInfo.cs' as it is generated by the .NET SDK. - Move 'MetadataRegistration.cs' into Common folder so that it can be shared across Design projects along with others. - Update Solution to Use CPS for the Design projects.
1 parent c90c1e3 commit 6350c9e

File tree

16 files changed

+113
-863
lines changed

16 files changed

+113
-863
lines changed
Lines changed: 9 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,14 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
43
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
7-
<ProjectGuid>{7AEFC959-ED7C-4D96-9E92-72609B40FBE0}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>Microsoft.Toolkit.Uwp.UI.Controls.Design</RootNamespace>
11-
<AssemblyName>Microsoft.Toolkit.Uwp.UI.Controls.Core.DesignTools</AssemblyName>
12-
<FileAlignment>512</FileAlignment>
13-
<TargetPlatformVersion>8.1</TargetPlatformVersion>
14-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
15-
<ValidateFrameworkCompatibility>false</ValidateFrameworkCompatibility>
16-
</PropertyGroup>
17-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
18-
<DebugSymbols>true</DebugSymbols>
19-
<OutputPath>..\Microsoft.Toolkit.Uwp.UI.Controls.Core\bin\Debug\uap10.0.17763\Design\</OutputPath>
20-
<DebugType>full</DebugType>
21-
<Optimize>false</Optimize>
22-
<DefineConstants>TRACE;DEBUG</DefineConstants>
23-
<PlatformTarget>x86</PlatformTarget>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
26-
<OutputPath>..\Microsoft.Toolkit.Uwp.UI.Controls.Core\bin\Release\uap10.0.17763\Design\</OutputPath>
27-
<DebugType>pdbonly</DebugType>
28-
<PlatformTarget>x86</PlatformTarget>
29-
<Optimize>true</Optimize>
30-
<DefineConstants>TRACE</DefineConstants>
4+
<TargetFramework>net472</TargetFramework>
315
</PropertyGroup>
6+
327
<PropertyGroup>
33-
<NoWarn>$(NoWarn);0618</NoWarn>
34-
<AssetTargetFallback>$(AssetTargetFallback);uap10.0.17763</AssetTargetFallback>
8+
<AssemblyTitle>Windows Community Toolkit Controls (DesignTools)</AssemblyTitle>
9+
<Description>Design time support for Windows Community Toolkit Controls</Description>
3510
</PropertyGroup>
36-
<ItemGroup>
37-
<Reference Include="System.Runtime" />
38-
<Reference Include="System.ObjectModel" />
39-
<Reference Include="System.Runtime.WindowsRuntime" />
40-
<Reference Include="System.Runtime.InteropServices.WindowsRuntime" />
41-
<Reference Include="Microsoft.VisualStudio.DesignTools.Extensibility">
42-
<SpecificVersion>False</SpecificVersion>
43-
<Private>False</Private>
44-
</Reference>
45-
<Reference Include="Microsoft.VisualStudio.DesignTools.Interaction">
46-
<SpecificVersion>False</SpecificVersion>
47-
<Private>False</Private>
48-
</Reference>
49-
<Reference Include="System" />
50-
<Reference Include="System.Core" />
51-
<Reference Include="System.Xml.Linq" />
52-
<Reference Include="System.Data.DataSetExtensions" />
53-
<Reference Include="Microsoft.CSharp" />
54-
<Reference Include="System.Data" />
55-
<Reference Include="System.Xml" />
56-
<Reference Include="Windows, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL">
57-
<SpecificVersion>False</SpecificVersion>
58-
<HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd</HintPath>
59-
</Reference>
60-
<Reference Include="WindowsBase" />
61-
<Reference Include="PresentationCore" />
62-
<Reference Include="PresentationFramework" />
63-
</ItemGroup>
64-
<ItemGroup Label="WinRT References">
65-
<Reference Include="System.Xaml" />
66-
<Reference Include="System.Runtime.WindowsRuntime.UI.Xaml" />
67-
<Reference Include="Windows.Foundation.FoundationContract">
68-
<HintPath>$(ProgramFiles)\Windows Kits\10\References\10.0.17763.0\Windows.Foundation.FoundationContract\3.0.0.0\Windows.Foundation.FoundationContract.winmd</HintPath>
69-
<Aliases>WindowsRuntime</Aliases>
70-
<Private>False</Private>
71-
</Reference>
72-
<Reference Include="Windows.Foundation.UniversalApiContract">
73-
<HintPath>$(ProgramFiles)\Windows Kits\10\References\10.0.17763.0\Windows.Foundation.UniversalApiContract\7.0.0.0\Windows.Foundation.UniversalApiContract.winmd</HintPath>
74-
<Aliases>WindowsRuntime</Aliases>
75-
<Private>False</Private>
76-
</Reference>
77-
</ItemGroup>
78-
<ItemGroup>
79-
<Compile Include="Common\Constants.cs" />
80-
<Compile Include="Common\MetadataRegistrationBase.cs" />
81-
<Compile Include="Common\PlatformTypes.cs" />
82-
<Compile Include="Controls\DropShadowPanel.Metadata.cs" />
83-
<Compile Include="Controls\DropShadowPanel.Typedata.cs" />
84-
<Compile Include="Controls\ImageEx.Metadata.cs" />
85-
<Compile Include="Controls\ImageEx.Typedata.cs" />
86-
<Compile Include="Controls\InAppNotification.Metadata.cs" />
87-
<Compile Include="Controls\InAppNotification.Typedata.cs" />
88-
<Compile Include="Controls\Loading.Metadata.cs" />
89-
<Compile Include="Controls\Loading.Typedata.cs" />
90-
<Compile Include="Controls\Menu.Metadata.cs" />
91-
<Compile Include="Controls\Menu.Typedata.cs" />
92-
<Compile Include="Controls\MenuItem.Metadata.cs" />
93-
<Compile Include="Controls\MenuItem.Typedata.cs" />
94-
<Compile Include="Controls\RadialProgressBar.Metadata.cs" />
95-
<Compile Include="Controls\RadialProgressBar.Typedata.cs" />
96-
<Compile Include="Controls\RotatorTile.Metadata.cs" />
97-
<Compile Include="Controls\RotatorTile.Typedata.cs" />
98-
<Compile Include="Controls\ScrollHeader.Metadata.cs" />
99-
<Compile Include="Controls\ScrollHeader.Typedata.cs" />
100-
<Compile Include="Controls\TabbedCommandBar.Metadata.cs" />
101-
<Compile Include="Controls\TabbedCommandBar.Typedata.cs" />
102-
<Compile Include="Controls\TabbedCommandBarItem.Metadata.cs" />
103-
<Compile Include="Controls\TabbedCommandBarItem.Typedata.cs" />
104-
<Compile Include="Controls\TextToolbar.Metadata.cs" />
105-
<Compile Include="Controls\TextToolbar.Typedata.cs" />
106-
<Compile Include="Controls\TileControl.Metadata.cs" />
107-
<Compile Include="Controls\TileControl.Typedata.cs" />
108-
<Compile Include="MetadataRegistration.cs" />
109-
<Compile Include="Properties\AssemblyInfo.cs">
110-
<SubType>Code</SubType>
111-
</Compile>
112-
<Compile Include="Properties\Resources.Designer.cs">
113-
<AutoGen>True</AutoGen>
114-
<DesignTime>True</DesignTime>
115-
<DependentUpon>Resources.resx</DependentUpon>
116-
</Compile>
117-
<EmbeddedResource Include="Properties\Resources.resx">
118-
<Generator>ResXFileCodeGenerator</Generator>
119-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
120-
</EmbeddedResource>
121-
<AppDesigner Include="Properties\" />
122-
</ItemGroup>
123-
<ItemGroup>
124-
<EmbeddedResource Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core\bin\$(Configuration)\uap10.0.17763\Microsoft.Toolkit.Uwp.UI.Controls.Core.xml">
125-
<Link>Microsoft.Toolkit.Uwp.UI.Controls.Core.xml</Link>
126-
<Visible>False</Visible>
127-
</EmbeddedResource>
128-
</ItemGroup>
129-
<ItemGroup>
130-
<EmbeddedResource Include="Icons\Microsoft.Toolkit.Uwp.UI.Controls.Menu.icon.png" />
131-
<EmbeddedResource Include="Icons\Microsoft.Toolkit.Uwp.UI.Controls.RotatorTile.icon.png" />
132-
</ItemGroup>
133-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
134-
<!-- No-op to avoid build error when packing solution from commandline -->
135-
<Target Name="Pack" />
11+
12+
<Import Project="$(MSBuildThisFileDirectory)..\build\Windows.Toolkit.VisualStudio.Design.targets" />
13+
13614
</Project>

Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 12 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,19 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
43
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
7-
<ProjectGuid>{6BD0BA4A-DE6D-3E87-8F83-63518C31ECD1}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>Microsoft.Toolkit.Uwp.UI.Controls.Design</RootNamespace>
11-
<AssemblyName>Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.DesignTools</AssemblyName>
12-
<FileAlignment>512</FileAlignment>
13-
<TargetPlatformVersion>8.1</TargetPlatformVersion>
14-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
15-
<ValidateFrameworkCompatibility>false</ValidateFrameworkCompatibility>
16-
</PropertyGroup>
17-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
18-
<DebugSymbols>true</DebugSymbols>
19-
<OutputPath>..\Microsoft.Toolkit.Uwp.UI.Controls.DataGrid\bin\Debug\uap10.0.17763\Design\</OutputPath>
20-
<DebugType>full</DebugType>
21-
<Optimize>false</Optimize>
22-
<DefineConstants>TRACE;DEBUG</DefineConstants>
23-
<PlatformTarget>x86</PlatformTarget>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
26-
<OutputPath>..\Microsoft.Toolkit.Uwp.UI.Controls.DataGrid\bin\Release\uap10.0.17763\Design\</OutputPath>
27-
<DebugType>pdbonly</DebugType>
28-
<PlatformTarget>x86</PlatformTarget>
29-
<Optimize>true</Optimize>
30-
<DefineConstants>TRACE</DefineConstants>
4+
<TargetFramework>net472</TargetFramework>
5+
<RootNamespace>Microsoft.Toolkit.Uwp.UI.Controls</RootNamespace>
316
</PropertyGroup>
7+
328
<PropertyGroup>
33-
<AssetTargetFallback>$(AssetTargetFallback);uap10.0.17763</AssetTargetFallback>
9+
<AssemblyTitle>Windows Community Toolkit DataGrid Control (Design)</AssemblyTitle>
10+
<Description>Design time support for Windows Community Toolkit DataGrid Control</Description>
3411
</PropertyGroup>
12+
3513
<ItemGroup>
36-
<Reference Include="System.Runtime" />
37-
<Reference Include="System.ObjectModel" />
38-
<Reference Include="System.Runtime.WindowsRuntime" />
39-
<Reference Include="System.Runtime.InteropServices.WindowsRuntime" />
40-
<Reference Include="Microsoft.VisualStudio.DesignTools.Extensibility">
41-
<SpecificVersion>False</SpecificVersion>
42-
<Private>False</Private>
43-
</Reference>
44-
<Reference Include="Microsoft.VisualStudio.DesignTools.Interaction">
45-
<SpecificVersion>False</SpecificVersion>
46-
<Private>False</Private>
47-
</Reference>
48-
<Reference Include="System" />
49-
<Reference Include="System.Core" />
50-
<Reference Include="System.Xml.Linq" />
51-
<Reference Include="System.Data.DataSetExtensions" />
52-
<Reference Include="Microsoft.CSharp" />
53-
<Reference Include="System.Data" />
54-
<Reference Include="System.Xml" />
55-
<Reference Include="Windows, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL">
56-
<SpecificVersion>False</SpecificVersion>
57-
<HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd</HintPath>
58-
</Reference>
59-
<Reference Include="WindowsBase" />
60-
<Reference Include="PresentationCore" />
61-
<Reference Include="PresentationFramework" />
62-
</ItemGroup>
63-
<ItemGroup Label="WinRT References">
64-
<Reference Include="System.Xaml" />
65-
<Reference Include="System.Runtime.WindowsRuntime.UI.Xaml" />
66-
<Reference Include="Windows.Foundation.FoundationContract">
67-
<HintPath>$(ProgramFiles)\Windows Kits\10\References\10.0.17763.0\Windows.Foundation.FoundationContract\3.0.0.0\Windows.Foundation.FoundationContract.winmd</HintPath>
68-
<Aliases>WindowsRuntime</Aliases>
69-
<Private>False</Private>
70-
</Reference>
71-
<Reference Include="Windows.Foundation.UniversalApiContract">
72-
<HintPath>$(ProgramFiles)\Windows Kits\10\References\10.0.17763.0\Windows.Foundation.UniversalApiContract\7.0.0.0\Windows.Foundation.UniversalApiContract.winmd</HintPath>
73-
<Aliases>WindowsRuntime</Aliases>
74-
<Private>False</Private>
75-
</Reference>
76-
</ItemGroup>
77-
<ItemGroup>
78-
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\Constants.cs" Link="Common\Constants.cs" />
79-
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\MetadataRegistrationBase.cs" Link="Common\MetadataRegistrationBase.cs" />
80-
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\PlatformTypes.cs" Link="Common\PlatformTypes.cs" />
81-
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\MetadataRegistration.cs" Link="MetadataRegistration.cs" />
82-
<Compile Include="Controls\DataGrid.Metadata.cs" />
83-
<Compile Include="Controls\DataGrid.Typedata.cs" />
84-
<Compile Include="Properties\AssemblyInfo.cs">
85-
<SubType>Code</SubType>
86-
</Compile>
87-
<Compile Include="Properties\Resources.Designer.cs">
88-
<AutoGen>True</AutoGen>
89-
<DesignTime>True</DesignTime>
90-
<DependentUpon>Resources.resx</DependentUpon>
91-
</Compile>
92-
<EmbeddedResource Include="Properties\Resources.resx">
93-
<Generator>ResXFileCodeGenerator</Generator>
94-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
95-
</EmbeddedResource>
96-
<AppDesigner Include="Properties\" />
97-
</ItemGroup>
98-
<ItemGroup>
99-
<EmbeddedResource Include="..\Microsoft.Toolkit.Uwp.UI.Controls.DataGrid\bin\$(Configuration)\uap10.0.17763\Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.xml">
100-
<Link>Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.xml</Link>
101-
<Visible>False</Visible>
102-
</EmbeddedResource>
14+
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\*.cs" LinkBase="Common" />
10315
</ItemGroup>
104-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
105-
<!-- No-op to avoid build error when packing solution from commandline -->
106-
<Target Name="Pack" />
16+
17+
<Import Project="$(MSBuildThisFileDirectory)..\build\Windows.Toolkit.VisualStudio.Design.targets" />
18+
10719
</Project>

Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.Design/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)