Skip to content

Commit 2d136c7

Browse files
NZSmartieqdot
authored andcommitted
Update to .Net Standard 2.0
1 parent bcad19a commit 2d136c7

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

Buttplug.Client/Buttplug.Client.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<PackageVersion>1.0.0-dev</PackageVersion>
66
<RootNamespace>Buttplug.Client</RootNamespace>
77
<AssemblyName>Buttplug.Client</AssemblyName>
8-
<TargetFrameworks>net452;netstandard1.4</TargetFrameworks>
8+
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks>
99
<CodeAnalysisRuleSet>..\Buttplug.ProjectFiles\ButtplugCodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
10-
<RunCodeAnalysis>true</RunCodeAnalysis>
1110
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1211
<Product>Buttplug Client Library</Product>
1312
<Authors>qdot</Authors>
@@ -29,6 +28,11 @@
2928
<DebugType>full</DebugType>
3029
</PropertyGroup>
3130

31+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
32+
<!-- StyleCop doesn't like .Net Standard 2.0 for some reason... -->
33+
<RunCodeAnalysis>true</RunCodeAnalysis>
34+
</PropertyGroup>
35+
3236
<ItemGroup>
3337
<PackageReference Include="JetBrains.Annotations" version="11.0.0" />
3438
<PackageReference Include="Microsoft.CSharp" version="4.4.0" />
@@ -38,7 +42,7 @@
3842
<PackageReference Include="WebSocket4Net" Version="0.15.0" />
3943
</ItemGroup>
4044

41-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.4' ">
45+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
4246
<PackageReference Include="System.Net.WebSockets.Client" version="4.3.1" />
4347
</ItemGroup>
4448

Buttplug.Core/Buttplug.Core.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<PackageVersion>1.0.0-dev</PackageVersion>
66
<RootNamespace>Buttplug.Core</RootNamespace>
77
<AssemblyName>Buttplug.Core</AssemblyName>
8-
<TargetFrameworks>net452;netstandard1.4</TargetFrameworks>
8+
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks>
99
<CodeAnalysisRuleSet>..\Buttplug.ProjectFiles\ButtplugCodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
10-
<RunCodeAnalysis>true</RunCodeAnalysis>
1110
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1211
<Product>Buttplug Core Library</Product>
1312
<Authors>qdot</Authors>
@@ -30,9 +29,14 @@
3029
<DebugType>full</DebugType>
3130
</PropertyGroup>
3231

33-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.4' ">
32+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
3433
<DefineConstants>LIBLOG_PORTABLE</DefineConstants>
3534
</PropertyGroup>
35+
36+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
37+
<!-- StyleCop doesn't like .Net Standard 2.0 for some reason... -->
38+
<RunCodeAnalysis>true</RunCodeAnalysis>
39+
</PropertyGroup>
3640

3741
<ItemGroup>
3842
<PackageReference Include="JetBrains.Annotations" version="11.0.0" />
@@ -43,10 +47,6 @@
4347
<PackageReference Include="StyleCop.Analyzers" version="1.1.0-beta004" PrivateAssets="All" />
4448
</ItemGroup>
4549

46-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.4' ">
47-
<PackageReference Include="System.Diagnostics.StackTrace" version="4.3.0" />
48-
</ItemGroup>
49-
5050
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
5151
<PackageReference Include="Microsoft.CSharp" version="4.4.0" />
5252
</ItemGroup>

Buttplug.Server/Buttplug.Server.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<PackageVersion>1.0.0-dev</PackageVersion>
66
<RootNamespace>Buttplug.Server</RootNamespace>
77
<AssemblyName>Buttplug.Server</AssemblyName>
8-
<TargetFrameworks>net452;netstandard1.4</TargetFrameworks>
8+
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks>
99
<CodeAnalysisRuleSet>..\Buttplug.ProjectFiles\ButtplugCodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
10-
<RunCodeAnalysis>true</RunCodeAnalysis>
1110
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1211
<Product>Buttplug Server Library</Product>
1312
<Authors>qdot</Authors>
@@ -30,11 +29,17 @@
3029
<DebugType>full</DebugType>
3130
</PropertyGroup>
3231

32+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
33+
<!-- StyleCop doesn't like .Net Standard 2.0 for some reason... -->
34+
<RunCodeAnalysis>true</RunCodeAnalysis>
35+
</PropertyGroup>
36+
3337
<ItemGroup>
3438
<PackageReference Include="JetBrains.Annotations" version="11.0.0" />
3539
<PackageReference Include="NLog" version="5.0.0-beta11" />
3640
<PackageReference Include="StyleCop.Analyzers" version="1.1.0-beta004" PrivateAssets="All" />
3741
<PackageReference Include="System.Threading.Timer" Version="4.3.0" />
42+
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
3843
</ItemGroup>
3944

4045
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">

0 commit comments

Comments
 (0)