Standarize properties used across projects · pythonnet/pythonnet@bd88daf · GitHub
Skip to content

Commit bd88daf

Browse files
committed
Standarize properties used across projects
Console had it owns set of properties going on
1 parent c642491 commit bd88daf

5 files changed

Lines changed: 82 additions & 153 deletions

File tree

pythonnet.sln

Lines changed: 18 additions & 19 deletions

src/clrmodule/clrmodule.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@
2323
<PlatformTarget>x86</PlatformTarget>
2424
<ErrorReport>prompt</ErrorReport>
2525
</PropertyGroup>
26-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugMono|x64'">
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugMono|x64'">
2727
<DebugSymbols>true</DebugSymbols>
2828
<OutputPath>bin\x64\DebugMono\</OutputPath>
2929
<DefineConstants Condition="'$(DefineConstants)' == ''">TRACE;DEBUG;PYTHON2</DefineConstants>
3030
<DebugType>full</DebugType>
3131
<PlatformTarget>x64</PlatformTarget>
3232
<ErrorReport>prompt</ErrorReport>
3333
</PropertyGroup>
34-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseMono|x86'">
34+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMono|x86'">
3535
<OutputPath>bin\x86\ReleaseMono\</OutputPath>
3636
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2</DefineConstants>
3737
<Optimize>true</Optimize>
3838
<DebugType>pdbonly</DebugType>
3939
<PlatformTarget>x86</PlatformTarget>
4040
<ErrorReport>prompt</ErrorReport>
4141
</PropertyGroup>
42-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseMono|x64'">
42+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMono|x64'">
4343
<OutputPath>bin\x64\ReleaseMono\</OutputPath>
4444
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2</DefineConstants>
4545
<Optimize>true</Optimize>
@@ -55,23 +55,23 @@
5555
<PlatformTarget>x86</PlatformTarget>
5656
<ErrorReport>prompt</ErrorReport>
5757
</PropertyGroup>
58-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugWin|x64'">
58+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x64'">
5959
<DebugSymbols>true</DebugSymbols>
6060
<OutputPath>bin\x64\DebugWin\</OutputPath>
6161
<DefineConstants Condition="'$(DefineConstants)' == ''">TRACE;DEBUG;PYTHON2</DefineConstants>
6262
<DebugType>full</DebugType>
6363
<PlatformTarget>x64</PlatformTarget>
6464
<ErrorReport>prompt</ErrorReport>
6565
</PropertyGroup>
66-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x86'">
66+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWin|x86'">
6767
<OutputPath>bin\x86\ReleaseWin\</OutputPath>
6868
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2</DefineConstants>
6969
<Optimize>true</Optimize>
7070
<DebugType>pdbonly</DebugType>
7171
<PlatformTarget>x86</PlatformTarget>
7272
<ErrorReport>prompt</ErrorReport>
7373
</PropertyGroup>
74-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
74+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
7575
<OutputPath>bin\x64\ReleaseWin\</OutputPath>
7676
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2</DefineConstants>
7777
<Optimize>true</Optimize>

src/console/Console.csproj

Lines changed: 46 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -15,143 +15,73 @@
1515
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1616
<PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)</PythonBuildDir>
1717
</PropertyGroup>
18-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19-
<DebugSymbols>True</DebugSymbols>
20-
<DebugType>full</DebugType>
21-
<Optimize>False</Optimize>
22-
<OutputPath>bin\Debug\</OutputPath>
23-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
24-
<WarningLevel>4</WarningLevel>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>True</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants Condition="'$(DefineConstants)' == ''">TRACE</DefineConstants>
31-
<DebugSymbols>True</DebugSymbols>
32-
<UseVSHostingProcess>false</UseVSHostingProcess>
33-
<WarningLevel>4</WarningLevel>
34-
</PropertyGroup>
35-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'EmbeddingTest|AnyCPU' ">
36-
<DebugSymbols>True</DebugSymbols>
37-
<OutputPath>bin\EmbeddingTest\</OutputPath>
38-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
39-
<DebugType>full</DebugType>
40-
<PlatformTarget>AnyCPU</PlatformTarget>
41-
<WarningLevel>4</WarningLevel>
42-
<Optimize>False</Optimize>
43-
</PropertyGroup>
44-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnitTests|AnyCPU' ">
45-
<DebugSymbols>True</DebugSymbols>
46-
<OutputPath>bin\UnitTests\</OutputPath>
47-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
48-
<DebugType>full</DebugType>
49-
<PlatformTarget>AnyCPU</PlatformTarget>
50-
<WarningLevel>4</WarningLevel>
51-
<Optimize>False</Optimize>
52-
</PropertyGroup>
53-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
54-
<DebugSymbols>True</DebugSymbols>
55-
<OutputPath>bin\x86\Debug\</OutputPath>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugMono|x86'">
19+
<DebugSymbols>true</DebugSymbols>
20+
<OutputPath>bin\x86\DebugMono\</OutputPath>
5621
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
5722
<DebugType>full</DebugType>
5823
<PlatformTarget>x86</PlatformTarget>
59-
<Externalconsole>True</Externalconsole>
60-
<WarningLevel>4</WarningLevel>
61-
<Optimize>False</Optimize>
62-
<ConsolePause>False</ConsolePause>
63-
</PropertyGroup>
64-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
65-
<DebugSymbols>True</DebugSymbols>
66-
<OutputPath>bin\x86\Release\</OutputPath>
67-
<DefineConstants Condition="'$(DefineConstants)' == ''">TRACE</DefineConstants>
68-
<Optimize>True</Optimize>
69-
<DebugType>pdbonly</DebugType>
70-
<PlatformTarget>x86</PlatformTarget>
71-
<UseVSHostingProcess>false</UseVSHostingProcess>
72-
<WarningLevel>4</WarningLevel>
24+
<ErrorReport>prompt</ErrorReport>
7325
</PropertyGroup>
74-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'EmbeddingTest|x86'">
75-
<DebugSymbols>True</DebugSymbols>
76-
<OutputPath>bin\x86\EmbeddingTest\</OutputPath>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugMono|x64'">
27+
<DebugSymbols>true</DebugSymbols>
28+
<OutputPath>bin\x64\DebugMono\</OutputPath>
7729
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
7830
<DebugType>full</DebugType>
79-
<PlatformTarget>x86</PlatformTarget>
80-
<WarningLevel>4</WarningLevel>
81-
<Optimize>False</Optimize>
31+
<PlatformTarget>x64</PlatformTarget>
32+
<ErrorReport>prompt</ErrorReport>
8233
</PropertyGroup>
83-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'UnitTests|x86'">
84-
<DebugSymbols>True</DebugSymbols>
85-
<OutputPath>bin\x86\UnitTests\</OutputPath>
86-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
87-
<DebugType>full</DebugType>
34+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMono|x86'">
35+
<OutputPath>bin\x86\ReleaseMono\</OutputPath>
36+
<DefineConstants Condition="'$(DefineConstants)' == ''">
37+
</DefineConstants>
38+
<Optimize>true</Optimize>
39+
<DebugType>pdbonly</DebugType>
8840
<PlatformTarget>x86</PlatformTarget>
89-
<WarningLevel>4</WarningLevel>
90-
<Optimize>False</Optimize>
41+
<ErrorReport>prompt</ErrorReport>
9142
</PropertyGroup>
92-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugMono_x86|AnyCPU'">
93-
<DebugSymbols>True</DebugSymbols>
94-
<OutputPath>bin\DebugMono_x86\</OutputPath>
95-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
96-
<DebugType>full</DebugType>
97-
<PlatformTarget>AnyCPU</PlatformTarget>
98-
<WarningLevel>4</WarningLevel>
99-
<Optimize>False</Optimize>
43+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMono|x64'">
44+
<OutputPath>bin\x64\ReleaseMono\</OutputPath>
45+
<DefineConstants Condition="'$(DefineConstants)' == ''">
46+
</DefineConstants>
47+
<Optimize>true</Optimize>
48+
<DebugType>pdbonly</DebugType>
49+
<PlatformTarget>x64</PlatformTarget>
50+
<ErrorReport>prompt</ErrorReport>
10051
</PropertyGroup>
101-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugMono_x86|x86'">
102-
<DebugSymbols>True</DebugSymbols>
103-
<OutputPath>bin\x86\DebugMono_x86\</OutputPath>
52+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86'">
53+
<DebugSymbols>true</DebugSymbols>
54+
<OutputPath>bin\x86\DebugWin\</OutputPath>
10455
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
10556
<DebugType>full</DebugType>
10657
<PlatformTarget>x86</PlatformTarget>
107-
<WarningLevel>4</WarningLevel>
108-
<Optimize>False</Optimize>
58+
<ErrorReport>prompt</ErrorReport>
10959
</PropertyGroup>
110-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
111-
<DebugSymbols>True</DebugSymbols>
112-
<OutputPath>bin\x64\Debug\</OutputPath>
60+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x64'">
61+
<DebugSymbols>true</DebugSymbols>
62+
<OutputPath>bin\x64\DebugWin\</OutputPath>
11363
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
11464
<DebugType>full</DebugType>
11565
<PlatformTarget>x64</PlatformTarget>
116-
<WarningLevel>4</WarningLevel>
117-
<Optimize>False</Optimize>
66+
<ErrorReport>prompt</ErrorReport>
11867
</PropertyGroup>
119-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
120-
<DebugSymbols>True</DebugSymbols>
121-
<OutputPath>bin\x64\Release\</OutputPath>
122-
<DefineConstants Condition="'$(DefineConstants)' == ''">TRACE</DefineConstants>
123-
<Optimize>True</Optimize>
68+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWin|x86'">
69+
<OutputPath>bin\x86\ReleaseWin\</OutputPath>
70+
<DefineConstants Condition="'$(DefineConstants)' == ''">
71+
</DefineConstants>
72+
<Optimize>true</Optimize>
12473
<DebugType>pdbonly</DebugType>
125-
<PlatformTarget>x64</PlatformTarget>
126-
<UseVSHostingProcess>false</UseVSHostingProcess>
127-
<WarningLevel>4</WarningLevel>
128-
</PropertyGroup>
129-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'EmbeddingTest|x64'">
130-
<DebugSymbols>True</DebugSymbols>
131-
<OutputPath>bin\x64\EmbeddingTest\</OutputPath>
132-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
133-
<DebugType>full</DebugType>
134-
<PlatformTarget>x64</PlatformTarget>
135-
<WarningLevel>4</WarningLevel>
136-
<Optimize>False</Optimize>
137-
</PropertyGroup>
138-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'UnitTests|x64'">
139-
<DebugSymbols>True</DebugSymbols>
140-
<OutputPath>bin\x64\UnitTests\</OutputPath>
141-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
142-
<DebugType>full</DebugType>
143-
<PlatformTarget>x64</PlatformTarget>
144-
<WarningLevel>4</WarningLevel>
145-
<Optimize>False</Optimize>
74+
<PlatformTarget>x86</PlatformTarget>
75+
<ErrorReport>prompt</ErrorReport>
14676
</PropertyGroup>
147-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugMono_x86|x64'">
148-
<DebugSymbols>True</DebugSymbols>
149-
<OutputPath>bin\x64\DebugMono_x86\</OutputPath>
150-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
151-
<DebugType>full</DebugType>
77+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
78+
<OutputPath>bin\x64\ReleaseWin\</OutputPath>
79+
<DefineConstants Condition="'$(DefineConstants)' == ''">
80+
</DefineConstants>
81+
<Optimize>true</Optimize>
82+
<DebugType>pdbonly</DebugType>
15283
<PlatformTarget>x64</PlatformTarget>
153-
<WarningLevel>4</WarningLevel>
154-
<Optimize>False</Optimize>
84+
<ErrorReport>prompt</ErrorReport>
15585
</PropertyGroup>
15686
<PropertyGroup Condition="'$(PythonManifest)' != ''">
15787
<ApplicationManifest>$(PythonManifest)</ApplicationManifest>

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)