| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,15 +2,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00 | |||
| 2 | 2 | # Visual Studio 15 | |
| 3 | 3 | VisualStudioVersion = 15.0.26730.3 | |
| 4 | 4 | MinimumVisualStudioVersion = 10.0.40219.1 | |
| 5 | - Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.Runtime.15", "src/runtime/Python.Runtime.15.csproj", "{2759F4FF-716B-4828-916F-50FA86613DFC}" | ||
| 5 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.Runtime.15", "src\runtime\Python.Runtime.15.csproj", "{2759F4FF-716B-4828-916F-50FA86613DFC}" | ||
| 6 | 6 | EndProject | |
| 7 | - Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.EmbeddingTest.15", "src/embed_tests/Python.EmbeddingTest.15.csproj", "{66B8D01A-9906-452A-B09E-BF75EA76468F}" | ||
| 7 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.EmbeddingTest.15", "src\embed_tests\Python.EmbeddingTest.15.csproj", "{66B8D01A-9906-452A-B09E-BF75EA76468F}" | ||
| 8 | 8 | EndProject | |
| 9 | - Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "clrmodule.15", "src/clrmodule/clrmodule.15.csproj", "{E08678D4-9A52-4AD5-B63D-8EBC7399981B}" | ||
| 9 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "clrmodule.15", "src\clrmodule\clrmodule.15.csproj", "{E08678D4-9A52-4AD5-B63D-8EBC7399981B}" | ||
| 10 | 10 | EndProject | |
| 11 | - Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Console.15", "src/console/Console.15.csproj", "{CDAD305F-8E72-492C-A314-64CF58D472A0}" | ||
| 11 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Console.15", "src\console\Console.15.csproj", "{CDAD305F-8E72-492C-A314-64CF58D472A0}" | ||
| 12 | 12 | EndProject | |
| 13 | - Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.Test.15", "src/testing/Python.Test.15.csproj", "{F94B547A-E97E-4500-8D53-B4D64D076E5F}" | ||
| 13 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.Test.15", "src\testing\Python.Test.15.csproj", "{F94B547A-E97E-4500-8D53-B4D64D076E5F}" | ||
| 14 | + EndProject | ||
| 15 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Python.ReflectionOnlyTest.15", "src\reflectiononly_testing\Python.ReflectionOnlyTest.15.csproj", "{1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}" | ||
| 14 | 16 | EndProject | |
| 15 | 17 | Global | |
| 16 | 18 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
@@ -184,6 +186,38 @@ Global | |||
| 184 | 186 | {F94B547A-E97E-4500-8D53-B4D64D076E5F}.ReleaseWinPY3|x64.Build.0 = ReleaseWinPY3|x64 | |
| 185 | 187 | {F94B547A-E97E-4500-8D53-B4D64D076E5F}.ReleaseWinPY3|x86.ActiveCfg = ReleaseWinPY3|x86 | |
| 186 | 188 | {F94B547A-E97E-4500-8D53-B4D64D076E5F}.ReleaseWinPY3|x86.Build.0 = ReleaseWinPY3|x86 | |
| 189 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMono|x64.ActiveCfg = DebugMono|x64 | ||
| 190 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMono|x64.Build.0 = DebugMono|x64 | ||
| 191 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMono|x86.ActiveCfg = DebugMono|x86 | ||
| 192 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMono|x86.Build.0 = DebugMono|x86 | ||
| 193 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMonoPY3|x64.ActiveCfg = DebugMonoPY3|x64 | ||
| 194 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMonoPY3|x64.Build.0 = DebugMonoPY3|x64 | ||
| 195 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMonoPY3|x86.ActiveCfg = DebugMonoPY3|x86 | ||
| 196 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugMonoPY3|x86.Build.0 = DebugMonoPY3|x86 | ||
| 197 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWin|x64.ActiveCfg = DebugWin|x64 | ||
| 198 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWin|x64.Build.0 = DebugWin|x64 | ||
| 199 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWin|x86.ActiveCfg = DebugWin|x86 | ||
| 200 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWin|x86.Build.0 = DebugWin|x86 | ||
| 201 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWinPY3|x64.ActiveCfg = DebugWinPY3|x64 | ||
| 202 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWinPY3|x64.Build.0 = DebugWinPY3|x64 | ||
| 203 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWinPY3|x86.ActiveCfg = DebugWinPY3|x86 | ||
| 204 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.DebugWinPY3|x86.Build.0 = DebugWinPY3|x86 | ||
| 205 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMono|x64.ActiveCfg = ReleaseMono|x64 | ||
| 206 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMono|x64.Build.0 = ReleaseMono|x64 | ||
| 207 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMono|x86.ActiveCfg = ReleaseMono|x86 | ||
| 208 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMono|x86.Build.0 = ReleaseMono|x86 | ||
| 209 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMonoPY3|x64.ActiveCfg = ReleaseMonoPY3|x64 | ||
| 210 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMonoPY3|x64.Build.0 = ReleaseMonoPY3|x64 | ||
| 211 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMonoPY3|x86.ActiveCfg = ReleaseMonoPY3|x86 | ||
| 212 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseMonoPY3|x86.Build.0 = ReleaseMonoPY3|x86 | ||
| 213 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64 | ||
| 214 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWin|x64.Build.0 = ReleaseWin|x64 | ||
| 215 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86 | ||
| 216 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWin|x86.Build.0 = ReleaseWin|x86 | ||
| 217 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWinPY3|x64.ActiveCfg = ReleaseWinPY3|x64 | ||
| 218 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWinPY3|x64.Build.0 = ReleaseWinPY3|x64 | ||
| 219 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWinPY3|x86.ActiveCfg = ReleaseWinPY3|x86 | ||
| 220 | + {1E44571F-2EEA-4E3C-8DF6-07673A97C9DB}.ReleaseWinPY3|x86.Build.0 = ReleaseWinPY3|x86 | ||
| 187 | 221 | EndGlobalSection | |
| 188 | 222 | GlobalSection(SolutionProperties) = preSolution | |
| 189 | 223 | HideSolutionNode = FALSE | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Console", "src\console\Cons | |||
| 12 | 12 | EndProject | |
| 13 | 13 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "clrmodule", "src\clrmodule\clrmodule.csproj", "{86E834DE-1139-4511-96CC-69636A56E7AC}" | |
| 14 | 14 | EndProject | |
| 15 | + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Python.ReflectionOnlyTest", "src\reflectiononly_testing\Python.ReflectionOnlyTest.csproj", "{86b65798-F5AF-4006-A4D5-5BA40CDD80C1}" | ||
| 16 | + EndProject | ||
| 15 | 17 | Global | |
| 16 | 18 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
| 17 | 19 | DebugMono|x64 = DebugMono|x64 | |
@@ -184,7 +186,39 @@ Global | |||
| 184 | 186 | {86E834DE-1139-4511-96CC-69636A56E7AC}.ReleaseWinPY3|x64.Build.0 = ReleaseWinPY3|x64 | |
| 185 | 187 | {86E834DE-1139-4511-96CC-69636A56E7AC}.ReleaseWinPY3|x86.ActiveCfg = ReleaseWinPY3|x86 | |
| 186 | 188 | {86E834DE-1139-4511-96CC-69636A56E7AC}.ReleaseWinPY3|x86.Build.0 = ReleaseWinPY3|x86 | |
| 187 | - EndGlobalSection | ||
| 189 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMono|x64.ActiveCfg = DebugMono|x64 | ||
| 190 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMono|x64.Build.0 = DebugMono|x64 | ||
| 191 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMono|x86.ActiveCfg = DebugMono|x86 | ||
| 192 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMono|x86.Build.0 = DebugMono|x86 | ||
| 193 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMonoPY3|x64.ActiveCfg = DebugMonoPY3|x64 | ||
| 194 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMonoPY3|x64.Build.0 = DebugMonoPY3|x64 | ||
| 195 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMonoPY3|x86.ActiveCfg = DebugMonoPY3|x86 | ||
| 196 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugMonoPY3|x86.Build.0 = DebugMonoPY3|x86 | ||
| 197 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWin|x64.ActiveCfg = DebugWin|x64 | ||
| 198 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWin|x64.Build.0 = DebugWin|x64 | ||
| 199 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWin|x86.ActiveCfg = DebugWin|x86 | ||
| 200 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWin|x86.Build.0 = DebugWin|x86 | ||
| 201 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWinPY3|x64.ActiveCfg = DebugWinPY3|x64 | ||
| 202 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWinPY3|x64.Build.0 = DebugWinPY3|x64 | ||
| 203 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWinPY3|x86.ActiveCfg = DebugWinPY3|x86 | ||
| 204 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.DebugWinPY3|x86.Build.0 = DebugWinPY3|x86 | ||
| 205 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMono|x64.ActiveCfg = ReleaseMono|x64 | ||
| 206 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMono|x64.Build.0 = ReleaseMono|x64 | ||
| 207 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMono|x86.ActiveCfg = ReleaseMono|x86 | ||
| 208 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMono|x86.Build.0 = ReleaseMono|x86 | ||
| 209 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMonoPY3|x64.ActiveCfg = ReleaseMonoPY3|x64 | ||
| 210 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMonoPY3|x64.Build.0 = ReleaseMonoPY3|x64 | ||
| 211 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMonoPY3|x86.ActiveCfg = ReleaseMonoPY3|x86 | ||
| 212 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseMonoPY3|x86.Build.0 = ReleaseMonoPY3|x86 | ||
| 213 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64 | ||
| 214 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWin|x64.Build.0 = ReleaseWin|x64 | ||
| 215 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86 | ||
| 216 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWin|x86.Build.0 = ReleaseWin|x86 | ||
| 217 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWinPY3|x64.ActiveCfg = ReleaseWinPY3|x64 | ||
| 218 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWinPY3|x64.Build.0 = ReleaseWinPY3|x64 | ||
| 219 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWinPY3|x86.ActiveCfg = ReleaseWinPY3|x86 | ||
| 220 | + {86b65798-F5AF-4006-A4D5-5BA40CDD80C1}.ReleaseWinPY3|x86.Build.0 = ReleaseWinPY3|x86 | ||
| 221 | + EndGlobalSection | ||
| 188 | 222 | GlobalSection(SolutionProperties) = preSolution | |
| 189 | 223 | HideSolutionNode = FALSE | |
| 190 | 224 | EndGlobalSection | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,81 @@ | |||
| 1 | + <Project> | ||
| 2 | + <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> | ||
| 3 | + <PropertyGroup> | ||
| 4 | + <TargetFrameworks>net40;netstandard2.0</TargetFrameworks> | ||
| 5 | + <Platforms>x64;x86</Platforms> | ||
| 6 | + <Configurations>DebugMono;DebugMonoPY3;ReleaseMono;ReleaseMonoPY3;DebugWin;DebugWinPY3;ReleaseWin;ReleaseWinPY3</Configurations> | ||
| 7 | + <AssemblyName>Python.ReflectionOnlyTest</AssemblyName> | ||
| 8 | + <RootNamespace>Python.ReflectionOnlyTest</RootNamespace> | ||
| 9 | + <PackageId>Python.ReflectionOnlyTest</PackageId> | ||
| 10 | + <VersionPrefix>2.4.0</VersionPrefix> | ||
| 11 | + <OutputPath>bin\</OutputPath> | ||
| 12 | + <AppendTargetFrameworkToOutputPath Condition="'$(TargetFramework)'=='net40'">false</AppendTargetFrameworkToOutputPath> | ||
| 13 | + <DocumentationFile Condition="'$(TargetFramework)'=='net40'">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
| 14 | + <DocumentationFile Condition="'$(TargetFramework)'!='net40'">$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
| 15 | + <NoWarn>1591,0067</NoWarn> | ||
| 16 | + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> | ||
| 17 | + <PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir> | ||
| 18 | + <PythonBuildDir Condition="'$(TargetFramework)'!='net40'">$(PythonBuildDir)\$(TargetFramework)\</PythonBuildDir> | ||
| 19 | + <LangVersion>6</LangVersion> | ||
| 20 | + <SignAssembly>false</SignAssembly> | ||
| 21 | + <AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile> | ||
| 22 | + <ErrorReport>prompt</ErrorReport> | ||
| 23 | + <CustomDefineConstants Condition="'$(CustomDefineConstants)' == ''">$(PYTHONNET_DEFINE_CONSTANTS)</CustomDefineConstants> | ||
| 24 | + <BaseDefineConstants>XPLAT</BaseDefineConstants> | ||
| 25 | + <DefineConstants>$(DefineConstants);$(CustomDefineConstants);$(BaseDefineConstants);</DefineConstants> | ||
| 26 | + <DefineConstants Condition="'$(BuildingInsideVisualStudio)' == 'true' AND '$(CustomDefineConstants)' != '' AND $(Configuration.Contains('Debug'))">$(DefineConstants);TRACE;DEBUG</DefineConstants> | ||
| 27 | + <FrameworkPathOverride Condition="'$(TargetFramework)'=='net40' AND $(Configuration.Contains('Mono'))">$(NuGetPackageRoot)\microsoft.targetingpack.netframework.v4.5\1.0.1\lib\net45\</FrameworkPathOverride> | ||
| 28 | + </PropertyGroup> | ||
| 29 | + <PropertyGroup Condition=" '$(Platform)' == 'x86'"> | ||
| 30 | + <PlatformTarget>x86</PlatformTarget> | ||
| 31 | + </PropertyGroup> | ||
| 32 | + <PropertyGroup Condition=" '$(Platform)' == 'x64'"> | ||
| 33 | + <PlatformTarget>x64</PlatformTarget> | ||
| 34 | + </PropertyGroup> | ||
| 35 | + | ||
| 36 | + <PropertyGroup Condition="$(Configuration.Contains('Debug')) AND '$(TargetFramework)'=='net40'"> | ||
| 37 | + <Optimize>false</Optimize> | ||
| 38 | + <DebugType>full</DebugType> | ||
| 39 | + </PropertyGroup> | ||
| 40 | + <PropertyGroup Condition="$(Configuration.Contains('Release')) AND '$(TargetFramework)'=='net40'"> | ||
| 41 | + <Optimize>true</Optimize> | ||
| 42 | + <DebugType>pdbonly</DebugType> | ||
| 43 | + </PropertyGroup> | ||
| 44 | + <PropertyGroup Condition="$(Configuration.Contains('Debug')) AND '$(TargetFramework)'=='netstandard2.0'"> | ||
| 45 | + <DebugSymbols>true</DebugSymbols> | ||
| 46 | + <Optimize>false</Optimize> | ||
| 47 | + <DebugType>full</DebugType> | ||
| 48 | + </PropertyGroup> | ||
| 49 | + <PropertyGroup Condition="$(Configuration.Contains('Release')) AND '$(TargetFramework)'=='netstandard2.0'"> | ||
| 50 | + <DebugSymbols>true</DebugSymbols> | ||
| 51 | + <Optimize>true</Optimize> | ||
| 52 | + <DebugType>portable</DebugType> | ||
| 53 | + </PropertyGroup> | ||
| 54 | + | ||
| 55 | + <PropertyGroup Condition="$(Configuration.Contains('Debug'))"> | ||
| 56 | + <DefineConstants Condition="'$(CustomDefineConstants)' == ''">$(DefineConstants);DEBUG;TRACE</DefineConstants> | ||
| 57 | + </PropertyGroup> | ||
| 58 | + <PropertyGroup Condition="$(Configuration.Contains('Release'))"> | ||
| 59 | + <DefineConstants Condition="'$(CustomDefineConstants)' == ''">$(DefineConstants)</DefineConstants> | ||
| 60 | + </PropertyGroup> | ||
| 61 | + | ||
| 62 | + <ItemGroup Condition="'$(TargetFramework)' == 'net40'"> | ||
| 63 | + <Reference Include="System" /> | ||
| 64 | + </ItemGroup> | ||
| 65 | + | ||
| 66 | + <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||
| 67 | + <PackageReference Include="Microsoft.CSharp" Version="4.4.0" /> | ||
| 68 | + </ItemGroup> | ||
| 69 | + | ||
| 70 | + <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> | ||
| 71 | + | ||
| 72 | + <PropertyGroup> | ||
| 73 | + <TargetAssembly>$(TargetPath)</TargetAssembly> | ||
| 74 | + <TargetAssemblyPdb>$(TargetDir)$(TargetName).pdb</TargetAssemblyPdb> | ||
| 75 | + </PropertyGroup> | ||
| 76 | + <Target Name="AfterBuild"> | ||
| 77 | + <Copy Condition="'$(TargetFramework)'=='net40'" SourceFiles="$(TargetAssembly)" DestinationFolder="$(SolutionDir)\src\tests\fixtures" /> | ||
| 78 | + <Copy Condition="'$(TargetFramework)'!='net40'" SourceFiles="$(TargetAssembly)" DestinationFolder="$(SolutionDir)\src\tests\fixtures\$(TargetFramework)" /> | ||
| 79 | + <!--Copy SourceFiles="$(TargetAssemblyPdb)" Condition="Exists('$(TargetAssemblyPdb)')" DestinationFolder="$(PythonBuildDir)" /--> | ||
| 80 | + </Target> | ||
| 81 | + </Project> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,87 @@ | |||
| 1 | + <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | + <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
| 3 | + <PropertyGroup> | ||
| 4 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 5 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
| 6 | + <ProjectGuid>{86B65798-F5AF-4006-A4D5-5BA40CDD80C1}</ProjectGuid> | ||
| 7 | + <OutputType>Library</OutputType> | ||
| 8 | + <AssemblyName>Python.ReflectionOnlyTest</AssemblyName> | ||
| 9 | + <RootNamespace>Python.ReflectionOnlyTest</RootNamespace> | ||
| 10 | + <DocumentationFile>bin\Python.ReflectionOnlyTest.xml</DocumentationFile> | ||
| 11 | + <OutputPath>bin\</OutputPath> | ||
| 12 | + <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
| 13 | + <TargetFrameworkProfile /> | ||
| 14 | + <NoWarn>1591,0067</NoWarn> | ||
| 15 | + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> | ||
| 16 | + <PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir> | ||
| 17 | + <LangVersion>6</LangVersion> | ||
| 18 | + <SignAssembly>false</SignAssembly> | ||
| 19 | + <AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile> | ||
| 20 | + <ErrorReport>prompt</ErrorReport> | ||
| 21 | + </PropertyGroup> | ||
| 22 | + <PropertyGroup Condition=" '$(Platform)' == 'x86'"> | ||
| 23 | + <PlatformTarget>x86</PlatformTarget> | ||
| 24 | + </PropertyGroup> | ||
| 25 | + <PropertyGroup Condition=" '$(Platform)' == 'x64'"> | ||
| 26 | + <PlatformTarget>x64</PlatformTarget> | ||
| 27 | + </PropertyGroup> | ||
| 28 | + <PropertyGroup Condition=" '$(Configuration)' == 'DebugMono'"> | ||
| 29 | + <DebugSymbols>true</DebugSymbols> | ||
| 30 | + <DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants> | ||
| 31 | + <DebugType>full</DebugType> | ||
| 32 | + </PropertyGroup> | ||
| 33 | + <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMono'"> | ||
| 34 | + <DefineConstants Condition="'$(DefineConstants)' == ''"> | ||
| 35 | + </DefineConstants> | ||
| 36 | + <Optimize>true</Optimize> | ||
| 37 | + <DebugType>pdbonly</DebugType> | ||
| 38 | + </PropertyGroup> | ||
| 39 | + <PropertyGroup Condition=" '$(Configuration)' == 'DebugWin'"> | ||
| 40 | + <DebugSymbols>true</DebugSymbols> | ||
| 41 | + <DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants> | ||
| 42 | + <DebugType>full</DebugType> | ||
| 43 | + </PropertyGroup> | ||
| 44 | + <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseWin'"> | ||
| 45 | + <DefineConstants Condition="'$(DefineConstants)' == ''"> | ||
| 46 | + </DefineConstants> | ||
| 47 | + <Optimize>true</Optimize> | ||
| 48 | + <DebugType>pdbonly</DebugType> | ||
| 49 | + </PropertyGroup> | ||
| 50 | + <PropertyGroup Condition=" '$(Configuration)' == 'DebugMonoPY3'"> | ||
| 51 | + <DebugSymbols>true</DebugSymbols> | ||
| 52 | + <DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants> | ||
| 53 | + <DebugType>full</DebugType> | ||
| 54 | + </PropertyGroup> | ||
| 55 | + <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMonoPY3'"> | ||
| 56 | + <DefineConstants Condition="'$(DefineConstants)' == ''"> | ||
| 57 | + </DefineConstants> | ||
| 58 | + <Optimize>true</Optimize> | ||
| 59 | + <DebugType>pdbonly</DebugType> | ||
| 60 | + </PropertyGroup> | ||
| 61 | + <PropertyGroup Condition=" '$(Configuration)' == 'DebugWinPY3'"> | ||
| 62 | + <DebugSymbols>true</DebugSymbols> | ||
| 63 | + <DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants> | ||
| 64 | + <DebugType>full</DebugType> | ||
| 65 | + </PropertyGroup> | ||
| 66 | + <PropertyGroup Condition=" '$(Configuration)' == 'ReleaseWinPY3'"> | ||
| 67 | + <DefineConstants Condition="'$(DefineConstants)' == ''"> | ||
| 68 | + </DefineConstants> | ||
| 69 | + <Optimize>true</Optimize> | ||
| 70 | + <DebugType>pdbonly</DebugType> | ||
| 71 | + </PropertyGroup> | ||
| 72 | + <ItemGroup> | ||
| 73 | + <Compile Include="ReflectedCases.cs" /> | ||
| 74 | + </ItemGroup> | ||
| 75 | + <ItemGroup> | ||
| 76 | + <Reference Include="System" /> | ||
| 77 | + </ItemGroup> | ||
| 78 | + <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> | ||
| 79 | + <PropertyGroup> | ||
| 80 | + <TargetAssembly>$(TargetPath)</TargetAssembly> | ||
| 81 | + <TargetAssemblyPdb>$(TargetDir)$(TargetName).pdb</TargetAssemblyPdb> | ||
| 82 | + </PropertyGroup> | ||
| 83 | + <Target Name="AfterBuild"> | ||
| 84 | + <Copy SourceFiles="$(TargetAssembly)" DestinationFolder="$(SolutionDir)\src\tests\fixtures" /> | ||
| 85 | + <Copy SourceFiles="$(TargetAssemblyPdb)" Condition="Exists('$(TargetAssemblyPdb)')" DestinationFolder="$(PythonBuildDir)" /> | ||
| 86 | + </Target> | ||
| 87 | + </Project> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,22 @@ | |||
| 1 | + using System; | ||
| 2 | + | ||
| 3 | + namespace Python.ReflectionOnlyTest | ||
| 4 | + { | ||
| 5 | + public class ReflectedClass | ||
| 6 | + { | ||
| 7 | + } | ||
| 8 | + | ||
| 9 | + public enum ReflectedEnumNameSpace | ||
| 10 | + { | ||
| 11 | + One, | ||
| 12 | + Two, | ||
| 13 | + Three | ||
| 14 | + } | ||
| 15 | + } | ||
| 16 | + | ||
| 17 | + public enum ReflectedEnumNoNameSpace | ||
| 18 | + { | ||
| 19 | + One, | ||
| 20 | + Two, | ||
| 21 | + Three | ||
| 22 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + # -*- coding: utf-8 -*- | ||
| 2 | + | ||
| 3 | + """Test clr enum support.""" | ||
| 4 | + | ||
| 5 | + import pytest | ||
| 6 | + | ||
| 7 | + def test_reflectiononlyassembly_namespace(filepath): | ||
| 8 | + """Test accessing types in namespace in reflectiononly assembly.""" | ||
| 9 | + import System.Reflection | ||
| 10 | + test_assembly=filepath("Python.ReflectionOnlyTest.dll") | ||
| 11 | + assembly = System.Reflection.Assembly.ReflectionOnlyLoadFrom(test_assembly) | ||
| 12 | + import Python.ReflectionOnlyTest | ||
| 13 | + | ||
| 14 | + | ||
| 15 | + def test_reflectiononlyassembly_global_namespace(filepath): | ||
| 16 | + """Test accessing types in global namespace in reflectiononly assembly.""" | ||
| 17 | + import System.Reflection | ||
| 18 | + test_assembly=filepath("Python.ReflectionOnlyTest.dll") | ||
| 19 | + assembly = System.Reflection.Assembly.ReflectionOnlyLoadFrom(test_assembly) | ||
| 20 | + import clr | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments