Skip to content

Commit 0261081

Browse files
committed
Upgrade project to .NET Standard 2.0
1 parent 44a5a48 commit 0261081

File tree

4 files changed

+15
-109
lines changed

4 files changed

+15
-109
lines changed

FuzzyString/FuzzyString.csproj

+7-71
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,10 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.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>{2AAA900B-64FB-4874-9444-64AE33ACA970}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>FuzzyString</RootNamespace>
11-
<AssemblyName>FuzzyString</AssemblyName>
12-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<SccProjectName>SAK</SccProjectName>
15-
<SccLocalPath>SAK</SccLocalPath>
16-
<SccAuxPath>SAK</SccAuxPath>
17-
<SccProvider>SAK</SccProvider>
3+
<TargetFramework>netstandard2.0</TargetFramework>
4+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
5+
<PackageId>FuzzyString</PackageId>
6+
<PackageLicenseUrl>./Resources/License.txt</PackageLicenseUrl>
7+
<PackageProjectUrl>https://github.com/kdjones/fuzzystring</PackageProjectUrl>
8+
<RepositoryUrl>https://github.com/kdjones/fuzzystring</RepositoryUrl>
189
</PropertyGroup>
19-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20-
<DebugSymbols>true</DebugSymbols>
21-
<DebugType>full</DebugType>
22-
<Optimize>false</Optimize>
23-
<OutputPath>bin\Debug\</OutputPath>
24-
<DefineConstants>DEBUG;TRACE</DefineConstants>
25-
<ErrorReport>prompt</ErrorReport>
26-
<WarningLevel>4</WarningLevel>
27-
</PropertyGroup>
28-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29-
<DebugType>pdbonly</DebugType>
30-
<Optimize>true</Optimize>
31-
<OutputPath>bin\Release\</OutputPath>
32-
<DefineConstants>TRACE</DefineConstants>
33-
<ErrorReport>prompt</ErrorReport>
34-
<WarningLevel>4</WarningLevel>
35-
</PropertyGroup>
36-
<ItemGroup>
37-
<Reference Include="System" />
38-
<Reference Include="System.Core" />
39-
<Reference Include="System.Xml.Linq" />
40-
<Reference Include="System.Data.DataSetExtensions" />
41-
<Reference Include="Microsoft.CSharp" />
42-
<Reference Include="System.Data" />
43-
<Reference Include="System.Xml" />
44-
</ItemGroup>
45-
<ItemGroup>
46-
<Compile Include="ApproximatelyEquals.cs" />
47-
<Compile Include="FuzzyStringComparisonOptions.cs" />
48-
<Compile Include="FuzzyStringComparisonTolerance.cs" />
49-
<Compile Include="HammingDistance.cs" />
50-
<Compile Include="JaccardDistance.cs" />
51-
<Compile Include="JaroDistance.cs" />
52-
<Compile Include="JaroWinklerDistance.cs" />
53-
<Compile Include="LevenshteinDistance.cs" />
54-
<Compile Include="LongestCommonSubsequence.cs" />
55-
<Compile Include="LongestCommonSubstring.cs" />
56-
<Compile Include="Operations.cs" />
57-
<Compile Include="OverlapCoefficient.cs" />
58-
<Compile Include="Properties\AssemblyInfo.cs" />
59-
<Compile Include="RatcliffObershelpSimilarity.cs" />
60-
<Compile Include="SorensenDiceDistance.cs" />
61-
<Compile Include="TanimotoCoefficient.cs" />
62-
</ItemGroup>
63-
<ItemGroup>
64-
<Content Include="Resources\License.txt" />
65-
</ItemGroup>
66-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
67-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
68-
Other similar extension points exist, see Microsoft.Common.targets.
69-
<Target Name="BeforeBuild">
70-
</Target>
71-
<Target Name="AfterBuild">
72-
</Target>
73-
-->
7410
</Project>
+2-33
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,5 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
4-
5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("FuzzyString")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("FuzzyString")]
13-
[assembly: AssemblyCopyright("Copyright © 2013")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
1+
// The following GUID is for the ID of the typelib if this project is exposed to COM
162

17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
3+
using System.Runtime.InteropServices;
214

22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
235
[assembly: Guid("ccb1b9db-80eb-42bf-b7d1-2d6f8886d98b")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

FuzzyStringConsole/App.config

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
55
</startup>
6-
</configuration>
6+
</configuration>

FuzzyStringConsole/FuzzyStringConsole.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>FuzzyStringConsole</RootNamespace>
1111
<AssemblyName>FuzzyStringConsole</AssemblyName>
12-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<SccProjectName>SAK</SccProjectName>
1515
<SccLocalPath>SAK</SccLocalPath>
@@ -30,6 +30,7 @@
3030
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
3131
<UseApplicationTrust>false</UseApplicationTrust>
3232
<BootstrapperEnabled>true</BootstrapperEnabled>
33+
<TargetFrameworkProfile />
3334
</PropertyGroup>
3435
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3536
<PlatformTarget>AnyCPU</PlatformTarget>

0 commit comments

Comments
 (0)