Skip to content

Commit f363801

Browse files
committed
Add separate x86 and x64 environment, and remove Any CPU
1 parent 75844bd commit f363801

File tree

3 files changed

+96
-10
lines changed

3 files changed

+96
-10
lines changed

src/DriverTest/DriverTest.csproj

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,46 @@
3333
<ErrorReport>prompt</ErrorReport>
3434
<WarningLevel>4</WarningLevel>
3535
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
37+
<DebugSymbols>true</DebugSymbols>
38+
<OutputPath>bin\x64\Debug\</OutputPath>
39+
<DefineConstants>DEBUG;TRACE</DefineConstants>
40+
<DebugType>full</DebugType>
41+
<PlatformTarget>x64</PlatformTarget>
42+
<LangVersion>7.3</LangVersion>
43+
<ErrorReport>prompt</ErrorReport>
44+
<Prefer32Bit>true</Prefer32Bit>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
47+
<OutputPath>bin\x64\Release\</OutputPath>
48+
<DefineConstants>TRACE</DefineConstants>
49+
<Optimize>true</Optimize>
50+
<DebugType>pdbonly</DebugType>
51+
<PlatformTarget>x64</PlatformTarget>
52+
<LangVersion>7.3</LangVersion>
53+
<ErrorReport>prompt</ErrorReport>
54+
<Prefer32Bit>true</Prefer32Bit>
55+
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
57+
<DebugSymbols>true</DebugSymbols>
58+
<OutputPath>bin\x86\Debug\</OutputPath>
59+
<DefineConstants>DEBUG;TRACE</DefineConstants>
60+
<DebugType>full</DebugType>
61+
<PlatformTarget>x86</PlatformTarget>
62+
<LangVersion>7.3</LangVersion>
63+
<ErrorReport>prompt</ErrorReport>
64+
<Prefer32Bit>true</Prefer32Bit>
65+
</PropertyGroup>
66+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
67+
<OutputPath>bin\x86\Release\</OutputPath>
68+
<DefineConstants>TRACE</DefineConstants>
69+
<Optimize>true</Optimize>
70+
<DebugType>pdbonly</DebugType>
71+
<PlatformTarget>x86</PlatformTarget>
72+
<LangVersion>7.3</LangVersion>
73+
<ErrorReport>prompt</ErrorReport>
74+
<Prefer32Bit>true</Prefer32Bit>
75+
</PropertyGroup>
3676
<ItemGroup>
3777
<Reference Include="System" />
3878
<Reference Include="System.Core" />

src/S7CommPlusDriver.sln

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,28 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DriverTest", "DriverTest\Dr
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12-
Debug|Any CPU = Debug|Any CPU
13-
Release|Any CPU = Release|Any CPU
12+
Debug|x64 = Debug|x64
13+
Debug|x86 = Debug|x86
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
1416
EndGlobalSection
1517
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17-
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Debug|Any CPU.Build.0 = Debug|Any CPU
18-
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Release|Any CPU.ActiveCfg = Release|Any CPU
19-
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Release|Any CPU.Build.0 = Release|Any CPU
18+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Debug|x64.ActiveCfg = Debug|x64
19+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Debug|x64.Build.0 = Debug|x64
20+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Debug|x86.ActiveCfg = Debug|x86
21+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Debug|x86.Build.0 = Debug|x86
22+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Release|x64.ActiveCfg = Release|x64
23+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Release|x64.Build.0 = Release|x64
24+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Release|x86.ActiveCfg = Release|x86
25+
{781951D8-80DE-4E2F-92CA-A5FEF0059415}.Release|x86.Build.0 = Release|x86
26+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Debug|x64.ActiveCfg = Debug|x64
27+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Debug|x64.Build.0 = Debug|x64
28+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Debug|x86.ActiveCfg = Debug|x86
29+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Debug|x86.Build.0 = Debug|x86
30+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Release|x64.ActiveCfg = Release|Any CPU
31+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Release|x64.Build.0 = Release|Any CPU
32+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Release|x86.ActiveCfg = Release|Any CPU
33+
{94755B6A-7E0D-40F9-A2ED-48FF0C0FEA2B}.Release|x86.Build.0 = Release|Any CPU
2434
EndGlobalSection
2535
GlobalSection(SolutionProperties) = preSolution
2636
HideSolutionNode = FALSE

src/S7CommPlusDriver/S7CommPlusDriver.csproj

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,42 @@
3535
<PropertyGroup>
3636
<StartupObject />
3737
</PropertyGroup>
38+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
39+
<DebugSymbols>true</DebugSymbols>
40+
<OutputPath>bin\x64\Debug\</OutputPath>
41+
<DefineConstants>TRACE;DEBUG;_WIN64</DefineConstants>
42+
<DebugType>full</DebugType>
43+
<PlatformTarget>x64</PlatformTarget>
44+
<LangVersion>7.3</LangVersion>
45+
<ErrorReport>prompt</ErrorReport>
46+
</PropertyGroup>
47+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
48+
<OutputPath>bin\x64\Release\</OutputPath>
49+
<DefineConstants>TRACE</DefineConstants>
50+
<Optimize>true</Optimize>
51+
<DebugType>pdbonly</DebugType>
52+
<PlatformTarget>x64</PlatformTarget>
53+
<LangVersion>7.3</LangVersion>
54+
<ErrorReport>prompt</ErrorReport>
55+
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
57+
<DebugSymbols>true</DebugSymbols>
58+
<OutputPath>bin\x86\Debug\</OutputPath>
59+
<DefineConstants>TRACE;DEBUG;_WIN32</DefineConstants>
60+
<DebugType>full</DebugType>
61+
<PlatformTarget>x86</PlatformTarget>
62+
<LangVersion>7.3</LangVersion>
63+
<ErrorReport>prompt</ErrorReport>
64+
</PropertyGroup>
65+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
66+
<OutputPath>bin\x86\Release\</OutputPath>
67+
<DefineConstants>TRACE</DefineConstants>
68+
<Optimize>true</Optimize>
69+
<DebugType>pdbonly</DebugType>
70+
<PlatformTarget>x86</PlatformTarget>
71+
<LangVersion>7.3</LangVersion>
72+
<ErrorReport>prompt</ErrorReport>
73+
</PropertyGroup>
3874
<ItemGroup>
3975
<Reference Include="System" />
4076
<Reference Include="System.Core" />

0 commit comments

Comments
 (0)