Skip to content

Commit 8d6d4e9

Browse files
committed
Convert .csproj files to sdk format
• Make `Any CPU` the only build target, as `SharpShellNativeBridge` is no longer part of the main Solution
1 parent 5f030e2 commit 8d6d4e9

File tree

31 files changed

+337
-3308
lines changed

31 files changed

+337
-3308
lines changed
Lines changed: 8 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,18 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.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">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{35EB7DB4-325E-4E05-BD63-8717314944EE}</ProjectGuid>
3+
<TargetFramework>net48</TargetFramework>
84
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>AdvancedContextMenuExtension</RootNamespace>
11-
<AssemblyName>AdvancedContextMenuExtension</AssemblyName>
12-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<SccProjectName>
15-
</SccProjectName>
16-
<SccLocalPath>
17-
</SccLocalPath>
18-
<SccAuxPath>
19-
</SccAuxPath>
20-
<SccProvider>
21-
</SccProvider>
22-
</PropertyGroup>
23-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24-
<DebugSymbols>true</DebugSymbols>
25-
<DebugType>full</DebugType>
26-
<Optimize>false</Optimize>
27-
<OutputPath>bin\Debug\</OutputPath>
28-
<DefineConstants>DEBUG;TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
31-
</PropertyGroup>
32-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33-
<DebugType>pdbonly</DebugType>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<DefineConstants>TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
</PropertyGroup>
40-
<PropertyGroup>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
418
<SignAssembly>true</SignAssembly>
42-
</PropertyGroup>
43-
<PropertyGroup>
449
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
4510
</PropertyGroup>
4611
<ItemGroup>
47-
<Reference Include="System" />
48-
<Reference Include="System.Core" />
49-
<Reference Include="System.Drawing" />
50-
<Reference Include="System.Windows.Forms" />
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-
</ItemGroup>
57-
<ItemGroup>
58-
<Compile Include="AdvancedContextMenu.cs" />
59-
<Compile Include="Properties\AssemblyInfo.cs" />
60-
<Compile Include="Properties\Resources.Designer.cs">
61-
<AutoGen>True</AutoGen>
62-
<DesignTime>True</DesignTime>
63-
<DependentUpon>Resources.resx</DependentUpon>
64-
</Compile>
12+
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj" />
6513
</ItemGroup>
6614
<ItemGroup>
67-
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj">
68-
<Project>{b5d5f670-bfba-4d09-91c6-74bb12b7edd4}</Project>
69-
<Name>SharpShell</Name>
70-
</ProjectReference>
15+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
16+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
7117
</ItemGroup>
72-
<ItemGroup>
73-
<None Include="Key.snk" />
74-
</ItemGroup>
75-
<ItemGroup>
76-
<EmbeddedResource Include="Properties\Resources.resx">
77-
<Generator>ResXFileCodeGenerator</Generator>
78-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
79-
</EmbeddedResource>
80-
</ItemGroup>
81-
<ItemGroup>
82-
<None Include="Resources\Copy.png" />
83-
</ItemGroup>
84-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
85-
<PropertyGroup>
86-
<PostBuildEvent>
87-
</PostBuildEvent>
88-
</PropertyGroup>
89-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
90-
Other similar extension points exist, see Microsoft.Common.targets.
91-
<Target Name="BeforeBuild">
92-
</Target>
93-
<Target Name="AfterBuild">
94-
</Target>
95-
-->
9618
</Project>
Lines changed: 8 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,19 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.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">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{5C7562AA-9976-4390-A55C-AB9E61A3145C}</ProjectGuid>
3+
<TargetFramework>net48</TargetFramework>
84
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>CopyDirectoryLocationHandler</RootNamespace>
11-
<AssemblyName>CopyDirectoryLocationHandler</AssemblyName>
12-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<SccProjectName>
15-
</SccProjectName>
16-
<SccLocalPath>
17-
</SccLocalPath>
18-
<SccAuxPath>
19-
</SccAuxPath>
20-
<SccProvider>
21-
</SccProvider>
22-
</PropertyGroup>
23-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24-
<DebugSymbols>true</DebugSymbols>
25-
<DebugType>full</DebugType>
26-
<Optimize>false</Optimize>
27-
<OutputPath>bin\Debug\</OutputPath>
28-
<DefineConstants>DEBUG;TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
31-
</PropertyGroup>
32-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33-
<DebugType>pdbonly</DebugType>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<DefineConstants>TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
</PropertyGroup>
40-
<PropertyGroup>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
418
<SignAssembly>true</SignAssembly>
42-
</PropertyGroup>
43-
<PropertyGroup>
449
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
45-
</PropertyGroup>
46-
<PropertyGroup>
4710
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
4811
</PropertyGroup>
4912
<ItemGroup>
50-
<Reference Include="System" />
51-
<Reference Include="System.Core" />
52-
<Reference Include="System.Drawing" />
53-
<Reference Include="System.Windows.Forms" />
54-
<Reference Include="System.Xml.Linq" />
55-
<Reference Include="System.Data.DataSetExtensions" />
56-
<Reference Include="Microsoft.CSharp" />
57-
<Reference Include="System.Data" />
58-
<Reference Include="System.Xml" />
59-
</ItemGroup>
60-
<ItemGroup>
61-
<Compile Include="CopyDirectoryLocationHandler.cs" />
62-
<Compile Include="Properties\AssemblyInfo.cs" />
13+
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj" />
6314
</ItemGroup>
6415
<ItemGroup>
65-
<None Include="Key.snk" />
16+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
17+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
6618
</ItemGroup>
67-
<ItemGroup>
68-
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj">
69-
<Project>{b5d5f670-bfba-4d09-91c6-74bb12b7edd4}</Project>
70-
<Name>SharpShell</Name>
71-
</ProjectReference>
72-
</ItemGroup>
73-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
74-
<PropertyGroup>
75-
<PostBuildEvent>
76-
</PostBuildEvent>
77-
</PropertyGroup>
78-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
79-
Other similar extension points exist, see Microsoft.Common.targets.
80-
<Target Name="BeforeBuild">
81-
</Target>
82-
<Target Name="AfterBuild">
83-
</Target>
84-
-->
8519
</Project>
Lines changed: 9 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,22 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>8.0.30703</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{E48D396E-04AC-40C8-9046-66A896EF3568}</ProjectGuid>
3+
<TargetFramework>net48</TargetFramework>
94
<OutputType>Library</OutputType>
10-
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>CountLinesExtension</RootNamespace>
12-
<AssemblyName>CountLinesExtension</AssemblyName>
13-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
<SccProjectName>
16-
</SccProjectName>
17-
<SccLocalPath>
18-
</SccLocalPath>
19-
<SccAuxPath>
20-
</SccAuxPath>
21-
<SccProvider>
22-
</SccProvider>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25-
<DebugSymbols>true</DebugSymbols>
26-
<DebugType>full</DebugType>
27-
<Optimize>false</Optimize>
28-
<OutputPath>bin\Debug\</OutputPath>
29-
<DefineConstants>DEBUG;TRACE</DefineConstants>
30-
<ErrorReport>prompt</ErrorReport>
31-
<WarningLevel>4</WarningLevel>
32-
<Prefer32Bit>false</Prefer32Bit>
33-
</PropertyGroup>
34-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
35-
<DebugType>pdbonly</DebugType>
36-
<Optimize>true</Optimize>
37-
<OutputPath>bin\Release\</OutputPath>
38-
<DefineConstants>TRACE</DefineConstants>
39-
<ErrorReport>prompt</ErrorReport>
40-
<WarningLevel>4</WarningLevel>
41-
<Prefer32Bit>false</Prefer32Bit>
42-
</PropertyGroup>
43-
<PropertyGroup>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
448
<SignAssembly>true</SignAssembly>
45-
</PropertyGroup>
46-
<PropertyGroup>
479
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
48-
</PropertyGroup>
49-
<PropertyGroup>
5010
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
5111
</PropertyGroup>
5212
<ItemGroup>
53-
<Reference Include="System" />
54-
<Reference Include="System.Core" />
55-
<Reference Include="System.Drawing" />
56-
<Reference Include="System.Windows.Forms" />
57-
<Reference Include="System.Xml.Linq" />
58-
<Reference Include="System.Data.DataSetExtensions" />
59-
<Reference Include="Microsoft.CSharp" />
60-
<Reference Include="System.Data" />
61-
<Reference Include="System.Xml" />
62-
</ItemGroup>
63-
<ItemGroup>
64-
<Compile Include="CountLinesExtension.cs" />
65-
<Compile Include="Properties\AssemblyInfo.cs" />
66-
<Compile Include="Properties\Resources.Designer.cs">
67-
<AutoGen>True</AutoGen>
68-
<DesignTime>True</DesignTime>
69-
<DependentUpon>Resources.resx</DependentUpon>
70-
</Compile>
71-
</ItemGroup>
72-
<ItemGroup>
73-
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj">
74-
<Project>{B5D5F670-BFBA-4D09-91C6-74BB12B7EDD4}</Project>
75-
<Name>SharpShell</Name>
76-
</ProjectReference>
77-
</ItemGroup>
78-
<ItemGroup>
79-
<EmbeddedResource Include="Properties\Resources.resx">
80-
<Generator>ResXFileCodeGenerator</Generator>
81-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
82-
<SubType>Designer</SubType>
83-
</EmbeddedResource>
13+
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj" />
8414
</ItemGroup>
8515
<ItemGroup>
86-
<None Include="Key.snk" />
87-
<None Include="Resources\CountLines.bmp" />
16+
<Content Include="Resources\CountLines.png" />
8817
</ItemGroup>
8918
<ItemGroup>
90-
<Content Include="Resources\CountLines.png" />
19+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
20+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
9121
</ItemGroup>
92-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
93-
<PropertyGroup>
94-
<PostBuildEvent>
95-
</PostBuildEvent>
96-
</PropertyGroup>
97-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
98-
Other similar extension points exist, see Microsoft.Common.targets.
99-
<Target Name="BeforeBuild">
100-
</Target>
101-
<Target Name="AfterBuild">
102-
</Target>
103-
-->
10422
</Project>
Lines changed: 9 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,19 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>8.0.30703</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{6078508E-2780-4836-AC08-4428951CE91D}</ProjectGuid>
3+
<TargetFramework>net48</TargetFramework>
94
<OutputType>Library</OutputType>
10-
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>DllContextMenuExtension</RootNamespace>
12-
<AssemblyName>DllContextMenuExtension</AssemblyName>
13-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
<SccProjectName>SAK</SccProjectName>
16-
<SccLocalPath>SAK</SccLocalPath>
17-
<SccAuxPath>SAK</SccAuxPath>
18-
<SccProvider>SAK</SccProvider>
19-
</PropertyGroup>
20-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21-
<DebugSymbols>true</DebugSymbols>
22-
<DebugType>full</DebugType>
23-
<Optimize>false</Optimize>
24-
<OutputPath>bin\Debug\</OutputPath>
25-
<DefineConstants>DEBUG;TRACE</DefineConstants>
26-
<ErrorReport>prompt</ErrorReport>
27-
<WarningLevel>4</WarningLevel>
28-
<Prefer32Bit>false</Prefer32Bit>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
31-
<DebugType>pdbonly</DebugType>
32-
<Optimize>true</Optimize>
33-
<OutputPath>bin\Release\</OutputPath>
34-
<DefineConstants>TRACE</DefineConstants>
35-
<ErrorReport>prompt</ErrorReport>
36-
<WarningLevel>4</WarningLevel>
37-
<Prefer32Bit>false</Prefer32Bit>
38-
</PropertyGroup>
39-
<PropertyGroup>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
408
<SignAssembly>true</SignAssembly>
41-
</PropertyGroup>
42-
<PropertyGroup>
439
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
10+
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
4411
</PropertyGroup>
4512
<ItemGroup>
46-
<Reference Include="System" />
47-
<Reference Include="System.Core" />
48-
<Reference Include="System.Drawing" />
49-
<Reference Include="System.Windows.Forms" />
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-
</ItemGroup>
56-
<ItemGroup>
57-
<Compile Include="DllContextMenuExtension.cs" />
58-
<Compile Include="Properties\AssemblyInfo.cs" />
59-
</ItemGroup>
60-
<ItemGroup>
61-
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj">
62-
<Project>{B5D5F670-BFBA-4D09-91C6-74BB12B7EDD4}</Project>
63-
<Name>SharpShell</Name>
64-
</ProjectReference>
13+
<ProjectReference Include="..\..\..\SharpShell\SharpShell.csproj" />
6514
</ItemGroup>
6615
<ItemGroup>
67-
<None Include="Key.snk" />
16+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
17+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
6818
</ItemGroup>
69-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
70-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
71-
Other similar extension points exist, see Microsoft.Common.targets.
72-
<Target Name="BeforeBuild">
73-
</Target>
74-
<Target Name="AfterBuild">
75-
</Target>
76-
-->
7719
</Project>

0 commit comments

Comments
 (0)