Skip to content

Commit b0cc9a2

Browse files
authored
Merge pull request #4 from rnelson/feature/modernize
Run the upgrade assistant, moving to .NET 6
2 parents 4df193d + 1653d82 commit b0cc9a2

File tree

4 files changed

+23
-150
lines changed

4 files changed

+23
-150
lines changed

KeysExportViewer.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2012
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeysExportViewer", "KeysExportViewer\KeysExportViewer.csproj", "{229BD385-DFB9-4FBD-B8C9-E56D96767583}"
4+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KeysExportViewer", "KeysExportViewer\KeysExportViewer.csproj", "{229BD385-DFB9-4FBD-B8C9-E56D96767583}"
55
EndProject
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{B2EC4E33-1EFC-4F0F-8583-4D69326D6D5D}"
77
ProjectSection(SolutionItems) = preProject
Lines changed: 21 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
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="..\packages\Microsoft.CodeAnalysis.FxCopAnalyzers.3.3.0\build\Microsoft.CodeAnalysis.FxCopAnalyzers.props" Condition="Exists('..\packages\Microsoft.CodeAnalysis.FxCopAnalyzers.3.3.0\build\Microsoft.CodeAnalysis.FxCopAnalyzers.props')" />
4-
<Import Project="..\packages\Microsoft.NetFramework.Analyzers.3.3.0\build\Microsoft.NetFramework.Analyzers.props" Condition="Exists('..\packages\Microsoft.NetFramework.Analyzers.3.3.0\build\Microsoft.NetFramework.Analyzers.props')" />
5-
<Import Project="..\packages\Microsoft.NetCore.Analyzers.3.3.0\build\Microsoft.NetCore.Analyzers.props" Condition="Exists('..\packages\Microsoft.NetCore.Analyzers.3.3.0\build\Microsoft.NetCore.Analyzers.props')" />
6-
<Import Project="..\packages\Microsoft.CodeQuality.Analyzers.3.3.0\build\Microsoft.CodeQuality.Analyzers.props" Condition="Exists('..\packages\Microsoft.CodeQuality.Analyzers.3.3.0\build\Microsoft.CodeQuality.Analyzers.props')" />
7-
<Import Project="..\packages\Microsoft.CodeAnalysis.VersionCheckAnalyzer.3.3.0\build\Microsoft.CodeAnalysis.VersionCheckAnalyzer.props" Condition="Exists('..\packages\Microsoft.CodeAnalysis.VersionCheckAnalyzer.3.3.0\build\Microsoft.CodeAnalysis.VersionCheckAnalyzer.props')" />
8-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
92
<PropertyGroup>
10-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
11-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
12-
<ProjectGuid>{229BD385-DFB9-4FBD-B8C9-E56D96767583}</ProjectGuid>
3+
<TargetFramework>net6.0-windows</TargetFramework>
134
<OutputType>WinExe</OutputType>
14-
<AppDesignerFolder>Properties</AppDesignerFolder>
15-
<RootNamespace>KeysExportViewer</RootNamespace>
16-
<AssemblyName>KeysExportViewer</AssemblyName>
17-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
18-
<FileAlignment>512</FileAlignment>
195
<PublishUrl>publish\</PublishUrl>
206
<Install>true</Install>
217
<InstallFrom>Disk</InstallFrom>
@@ -31,89 +17,22 @@
3117
<IsWebBootstrapper>false</IsWebBootstrapper>
3218
<UseApplicationTrust>false</UseApplicationTrust>
3319
<BootstrapperEnabled>true</BootstrapperEnabled>
34-
<NuGetPackageImportStamp>
35-
</NuGetPackageImportStamp>
36-
<TargetFrameworkProfile />
37-
</PropertyGroup>
38-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
39-
<PlatformTarget>AnyCPU</PlatformTarget>
40-
<DebugSymbols>true</DebugSymbols>
41-
<DebugType>full</DebugType>
42-
<Optimize>false</Optimize>
43-
<OutputPath>bin\Debug\</OutputPath>
44-
<DefineConstants>TRACE;DEBUG</DefineConstants>
45-
<ErrorReport>prompt</ErrorReport>
46-
<WarningLevel>4</WarningLevel>
47-
<RunCodeAnalysis>false</RunCodeAnalysis>
48-
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
49-
</PropertyGroup>
50-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
51-
<PlatformTarget>AnyCPU</PlatformTarget>
52-
<DebugType>pdbonly</DebugType>
53-
<Optimize>true</Optimize>
54-
<OutputPath>bin\Release\</OutputPath>
55-
<DefineConstants>TRACE</DefineConstants>
56-
<ErrorReport>prompt</ErrorReport>
57-
<WarningLevel>4</WarningLevel>
20+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
21+
<UseWindowsForms>true</UseWindowsForms>
22+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
5823
<RunCodeAnalysis>false</RunCodeAnalysis>
59-
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
6024
</PropertyGroup>
6125
<PropertyGroup>
6226
<ApplicationIcon>Resources\XMLFile_828.ico</ApplicationIcon>
27+
<AssemblyTitle>KeysExport Viewer</AssemblyTitle>
28+
<Description>Viewer for MSDN%27s KeysExport.xml file</Description>
29+
<Company>Ross Nelson</Company>
30+
<Product>KeysExport Viewer</Product>
31+
<Copyright>Copyright © 2013-2020 Ross Nelson</Copyright>
32+
<AssemblyVersion>1.1.0.0</AssemblyVersion>
33+
<FileVersion>1.1.0.0</FileVersion>
34+
<NeutralLanguage>en</NeutralLanguage>
6335
</PropertyGroup>
64-
<ItemGroup>
65-
<Reference Include="System" />
66-
<Reference Include="System.Core" />
67-
<Reference Include="System.Xml.Linq" />
68-
<Reference Include="System.Data.DataSetExtensions" />
69-
<Reference Include="System.Data" />
70-
<Reference Include="System.Deployment" />
71-
<Reference Include="System.Drawing" />
72-
<Reference Include="System.Windows.Forms" />
73-
<Reference Include="System.Xml" />
74-
</ItemGroup>
75-
<ItemGroup>
76-
<Compile Include="GlobalSuppressions.cs" />
77-
<Compile Include="KeysCollection.cs" />
78-
<Compile Include="MainWindow.cs">
79-
<SubType>Form</SubType>
80-
</Compile>
81-
<Compile Include="MainWindow.Designer.cs">
82-
<DependentUpon>MainWindow.cs</DependentUpon>
83-
</Compile>
84-
<Compile Include="MsdnKey.cs" />
85-
<Compile Include="Program.cs" />
86-
<Compile Include="Properties\AssemblyInfo.cs" />
87-
<EmbeddedResource Include="MainWindow.resx">
88-
<DependentUpon>MainWindow.cs</DependentUpon>
89-
</EmbeddedResource>
90-
<EmbeddedResource Include="Properties\Resources.resx">
91-
<Generator>ResXFileCodeGenerator</Generator>
92-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
93-
<SubType>Designer</SubType>
94-
</EmbeddedResource>
95-
<Compile Include="Properties\Resources.Designer.cs">
96-
<AutoGen>True</AutoGen>
97-
<DependentUpon>Resources.resx</DependentUpon>
98-
<DesignTime>True</DesignTime>
99-
</Compile>
100-
<None Include="packages.config" />
101-
<None Include="Properties\Settings.settings">
102-
<Generator>SettingsSingleFileGenerator</Generator>
103-
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
104-
</None>
105-
<Compile Include="Properties\Settings.Designer.cs">
106-
<AutoGen>True</AutoGen>
107-
<DependentUpon>Settings.settings</DependentUpon>
108-
<DesignTimeSharedInput>True</DesignTimeSharedInput>
109-
</Compile>
110-
<None Include="Resources\NavigateBackwards_6270.png" />
111-
<None Include="Resources\NavigateForward_6271.png" />
112-
<None Include="Resources\Open_6529.png" />
113-
</ItemGroup>
114-
<ItemGroup>
115-
<None Include="App.config" />
116-
</ItemGroup>
11736
<ItemGroup>
11837
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
11938
<Visible>False</Visible>
@@ -131,9 +50,6 @@
13150
<Install>false</Install>
13251
</BootstrapperPackage>
13352
</ItemGroup>
134-
<ItemGroup>
135-
<None Include="Resources\XMLFile_828.ico" />
136-
</ItemGroup>
13753
<ItemGroup>
13854
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.VersionCheckAnalyzer.3.3.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.VersionCheckAnalyzer.resources.dll" />
13955
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.VersionCheckAnalyzer.3.3.0\analyzers\dotnet\Microsoft.CodeAnalysis.VersionCheckAnalyzer.dll" />
@@ -145,22 +61,12 @@
14561
<Analyzer Include="..\packages\Microsoft.NetFramework.Analyzers.3.3.0\analyzers\dotnet\cs\Microsoft.NetFramework.Analyzers.dll" />
14662
<Analyzer Include="..\packages\Microsoft.NetFramework.Analyzers.3.3.0\analyzers\dotnet\cs\Microsoft.NetFramework.CSharp.Analyzers.dll" />
14763
</ItemGroup>
148-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
149-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
150-
<PropertyGroup>
151-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
152-
</PropertyGroup>
153-
<Error Condition="!Exists('..\packages\Microsoft.CodeAnalysis.VersionCheckAnalyzer.3.3.0\build\Microsoft.CodeAnalysis.VersionCheckAnalyzer.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeAnalysis.VersionCheckAnalyzer.3.3.0\build\Microsoft.CodeAnalysis.VersionCheckAnalyzer.props'))" />
154-
<Error Condition="!Exists('..\packages\Microsoft.CodeQuality.Analyzers.3.3.0\build\Microsoft.CodeQuality.Analyzers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeQuality.Analyzers.3.3.0\build\Microsoft.CodeQuality.Analyzers.props'))" />
155-
<Error Condition="!Exists('..\packages\Microsoft.NetCore.Analyzers.3.3.0\build\Microsoft.NetCore.Analyzers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.NetCore.Analyzers.3.3.0\build\Microsoft.NetCore.Analyzers.props'))" />
156-
<Error Condition="!Exists('..\packages\Microsoft.NetFramework.Analyzers.3.3.0\build\Microsoft.NetFramework.Analyzers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.NetFramework.Analyzers.3.3.0\build\Microsoft.NetFramework.Analyzers.props'))" />
157-
<Error Condition="!Exists('..\packages\Microsoft.CodeAnalysis.FxCopAnalyzers.3.3.0\build\Microsoft.CodeAnalysis.FxCopAnalyzers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeAnalysis.FxCopAnalyzers.3.3.0\build\Microsoft.CodeAnalysis.FxCopAnalyzers.props'))" />
158-
</Target>
159-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
160-
Other similar extension points exist, see Microsoft.Common.targets.
161-
<Target Name="BeforeBuild">
162-
</Target>
163-
<Target Name="AfterBuild">
164-
</Target>
165-
-->
64+
<ItemGroup>
65+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0" />
66+
<PackageReference Include="Microsoft.CodeAnalysis.VersionCheckAnalyzer" Version="3.3.0" />
67+
<PackageReference Include="Microsoft.CodeQuality.Analyzers" Version="3.3.0" />
68+
<PackageReference Include="Microsoft.NetCore.Analyzers" Version="3.3.0" />
69+
<PackageReference Include="Microsoft.NetFramework.Analyzers" Version="3.3.0" />
70+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
71+
</ItemGroup>
16672
</Project>

KeysExportViewer/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
using System.Reflection;
33
using System.Runtime.InteropServices;
44
using System.Resources;
5-
6-
// General Information about an assembly is controlled through the following
7-
// set of attributes. Change these attribute values to modify the information
8-
// associated with an assembly.
9-
[assembly: AssemblyTitle("KeysExport Viewer")]
10-
[assembly: AssemblyDescription("Viewer for MSDN's KeysExport.xml file")]
11-
[assembly: AssemblyConfiguration("")]
12-
[assembly: AssemblyCompany("Ross Nelson")]
13-
[assembly: AssemblyProduct("KeysExport Viewer")]
14-
[assembly: AssemblyCopyright("Copyright © 2013-2020 Ross Nelson")]
155
[assembly: AssemblyTrademark("")]
166
[assembly: AssemblyCulture("")]
177

@@ -22,19 +12,4 @@
2212

2313
// The following GUID is for the ID of the typelib if this project is exposed to COM
2414
[assembly: Guid("74eed76c-36da-487e-83f6-9e49c832421b")]
25-
26-
// Version information for an assembly consists of the following four values:
27-
//
28-
// Major Version
29-
// Minor Version
30-
// Build Number
31-
// Revision
32-
//
33-
// You can specify all the values or you can default the Build and Revision Numbers
34-
// by using the '*' as shown below:
35-
// [assembly: AssemblyVersion("1.0.*")]
36-
[assembly: AssemblyVersion("1.1.0.0")]
37-
[assembly: AssemblyFileVersion("1.1.0.0")]
38-
39-
[assembly: NeutralResourcesLanguage("en")]
4015
[assembly: CLSCompliant(true)]

KeysExportViewer/packages.config

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

0 commit comments

Comments
 (0)