Skip to content

Commit 8af1b03

Browse files
committed
upgrade to recent framework version
1 parent d704c99 commit 8af1b03

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

HidSharp.Test/HidSharp.Test.csproj

Lines changed: 9 additions & 3 deletions
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
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,14 +10,15 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>HidSharp.Test</RootNamespace>
1212
<AssemblyName>HidSharp.Test</AssemblyName>
13-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<FileUpgradeFlags>
1616
</FileUpgradeFlags>
1717
<UpgradeBackupLocation>
1818
</UpgradeBackupLocation>
1919
<OldToolsVersion>3.5</OldToolsVersion>
20-
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
20+
<TargetFrameworkProfile>
21+
</TargetFrameworkProfile>
2122
</PropertyGroup>
2223
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2324
<DebugSymbols>true</DebugSymbols>
@@ -27,6 +28,7 @@
2728
<DefineConstants>DEBUG;TRACE</DefineConstants>
2829
<ErrorReport>prompt</ErrorReport>
2930
<WarningLevel>4</WarningLevel>
31+
<Prefer32Bit>false</Prefer32Bit>
3032
</PropertyGroup>
3133
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3234
<DebugType>pdbonly</DebugType>
@@ -36,6 +38,7 @@
3638
<ErrorReport>prompt</ErrorReport>
3739
<WarningLevel>4</WarningLevel>
3840
<PlatformTarget>x86</PlatformTarget>
41+
<Prefer32Bit>false</Prefer32Bit>
3942
</PropertyGroup>
4043
<ItemGroup>
4144
<Reference Include="System" />
@@ -50,6 +53,9 @@
5053
<Name>HidSharp</Name>
5154
</ProjectReference>
5255
</ItemGroup>
56+
<ItemGroup>
57+
<None Include="app.config" />
58+
</ItemGroup>
5359
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5460
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5561
Other similar extension points exist, see Microsoft.Common.targets.

HidSharp.Test/app.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

HidSharp/HidSharp.csproj

Lines changed: 6 additions & 3 deletions
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
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,14 +10,15 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>HidSharp</RootNamespace>
1212
<AssemblyName>HidSharp</AssemblyName>
13-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<FileUpgradeFlags>
1616
</FileUpgradeFlags>
1717
<UpgradeBackupLocation>
1818
</UpgradeBackupLocation>
1919
<OldToolsVersion>3.5</OldToolsVersion>
20-
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
20+
<TargetFrameworkProfile>
21+
</TargetFrameworkProfile>
2122
</PropertyGroup>
2223
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2324
<DebugSymbols>true</DebugSymbols>
@@ -30,6 +31,7 @@
3031
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
3132
<RegisterForComInterop>false</RegisterForComInterop>
3233
<DocumentationFile>..\bin\HidSharp.XML</DocumentationFile>
34+
<Prefer32Bit>false</Prefer32Bit>
3335
</PropertyGroup>
3436
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3537
<DebugType>pdbonly</DebugType>
@@ -41,6 +43,7 @@
4143
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4244
<RegisterForComInterop>false</RegisterForComInterop>
4345
<DocumentationFile>..\bin\HidSharp.XML</DocumentationFile>
46+
<Prefer32Bit>false</Prefer32Bit>
4447
</PropertyGroup>
4548
<ItemGroup>
4649
<Reference Include="System" />

0 commit comments

Comments
 (0)