1
- <?xml version =" 1.0" encoding =" utf-8" ?>
2
- <Project ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
- <Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition =" Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
4
3
<PropertyGroup >
5
- <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
6
- <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
7
- <ProjectGuid >{4A6B3805-35EE-4278-9701-CC1E0CD641F9}</ProjectGuid >
8
- <OutputType >Library</OutputType >
9
- <AppDesignerFolder >Properties</AppDesignerFolder >
4
+ <TargetFramework >netstandard2.0</TargetFramework >
5
+ <AssemblyVersion >7.0.0.0</AssemblyVersion >
6
+ <Description >https://github.com/BHoM/Python_Toolkit</Description >
7
+ <Version >6.0.0</Version >
8
+ <Authors >BHoM</Authors >
9
+ <Copyright >Copyright © https://github.com/BHoM</Copyright >
10
10
<RootNamespace >BH.Engine.Python</RootNamespace >
11
- <AssemblyName >Python_Engine</AssemblyName >
12
- <TargetFrameworkVersion >v4.7.2</TargetFrameworkVersion >
13
- <FileAlignment >512</FileAlignment >
14
- <Deterministic >true</Deterministic >
15
- </PropertyGroup >
16
- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
17
- <DebugSymbols >true</DebugSymbols >
18
- <DebugType >full</DebugType >
19
- <Optimize >false</Optimize >
20
- <OutputPath >..\Build\</OutputPath >
21
- <DefineConstants >DEBUG;TRACE</DefineConstants >
22
- <ErrorReport >prompt</ErrorReport >
23
- <WarningLevel >0</WarningLevel >
24
- </PropertyGroup >
25
- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
26
- <DebugType >pdbonly</DebugType >
27
- <Optimize >true</Optimize >
11
+ <FileVersion >7.0.0.0</FileVersion >
28
12
<OutputPath >..\Build\</OutputPath >
29
- <DefineConstants >TRACE</DefineConstants >
30
- <ErrorReport >prompt</ErrorReport >
31
- <WarningLevel >4</WarningLevel >
32
13
</PropertyGroup >
14
+
15
+ <ItemGroup >
16
+ <ProjectReference Include =" ..\Python_oM\Python_oM.csproj" />
17
+ </ItemGroup >
18
+
33
19
<ItemGroup >
34
20
<Reference Include =" BHoM" >
35
21
<SpecificVersion >False</SpecificVersion >
41
27
<Private >False</Private >
42
28
<SpecificVersion >False</SpecificVersion >
43
29
</Reference >
44
- <Reference Include =" Python.Runtime, Version=3.7.4.0, Culture=neutral, processorArchitecture=MSIL" >
45
- <SpecificVersion >False</SpecificVersion >
46
- <HintPath >..\libs\Python.Runtime.dll</HintPath >
47
- </Reference >
48
30
<Reference Include =" Reflection_Engine" >
49
31
<SpecificVersion >False</SpecificVersion >
50
32
<HintPath >$(ProgramData)\BHoM\Assemblies\Reflection_Engine.dll</HintPath >
55
37
<HintPath >$(ProgramData)\BHoM\Assemblies\Serialiser_Engine.dll</HintPath >
56
38
<Private >False</Private >
57
39
</Reference >
58
- <Reference Include =" System" />
59
- <Reference Include =" System.Core" />
60
- <Reference Include =" System.IO.Compression.FileSystem" />
61
- <Reference Include =" System.Windows.Forms" />
62
- <Reference Include =" System.Xml.Linq" />
63
- <Reference Include =" System.Data.DataSetExtensions" />
64
- <Reference Include =" Microsoft.CSharp" />
65
- <Reference Include =" System.Data" />
66
- <Reference Include =" System.Net.Http" />
67
- <Reference Include =" System.Xml" />
68
- </ItemGroup >
69
- <ItemGroup >
70
- <Compile Include =" Compute\Run.cs" />
71
- <Compile Include =" Compute\BasePythonEnvironment.cs" />
72
- <Compile Include =" Compute\Remove.cs" />
73
- <Compile Include =" Compute\InstallPackage.cs" />
74
- <Compile Include =" Compute\RequirementsTxt.cs" />
75
- <Compile Include =" Compute\VirtualEnvironment.cs" />
76
- <Compile Include =" Compute\UnzipFile.cs" />
77
- <Compile Include =" Compute\Download.cs" />
78
- <Compile Include =" Convert\ToPython.cs" />
79
- <Compile Include =" Modify\AddQuotesIfRequired.cs" />
80
- <Compile Include =" Query\VirtualEnvironment.cs" />
81
- <Compile Include =" Query\Version.cs" />
82
- <Compile Include =" Query\Directory.cs" />
83
- <Compile Include =" Query\IsValidEnvironmentName.cs" />
84
- <Compile Include =" Query\EmbeddableURL.cs" />
85
- <Compile Include =" Query\ToolkitName.cs" />
86
- <Compile Include =" Properties\AssemblyInfo.cs" />
87
- </ItemGroup >
88
- <ItemGroup >
89
- <None Include =" packages.config" />
90
- <None Include =" Versioning_53.json" />
91
40
</ItemGroup >
92
- <ItemGroup >
93
- <ProjectReference Include =" ..\Python_oM\Python_oM.csproj" >
94
- <Project >{3BF9F725-F1CA-432F-A549-557324CAFB91}</Project >
95
- <Name >Python_oM</Name >
96
- <Private >False</Private >
97
- </ProjectReference >
98
- </ItemGroup >
99
- <ItemGroup >
100
- <Folder Include =" Create\" />
101
- </ItemGroup >
102
- <ItemGroup >
103
- <Content Include =" Python\src\python_toolkit\bhomutil\__init__.py" />
104
- <Content Include =" Python\src\python_toolkit\__init__.py" />
105
- <None Include =" Python\README.md" />
106
- <Content Include =" Python\setup.py" />
107
- <Content Include =" Python\requirements.txt" />
108
- </ItemGroup >
109
- <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
110
- <PropertyGroup >
111
- <PostBuildEvent >
112
- xcopy "$(TargetDir)$(TargetFileName)" "C:\\ProgramData\\BHoM\\Assemblies" /Y
113
- xcopy "$(TargetDir)Python.Runtime.dll" "C:\\ProgramData\\BHoM\\Assemblies" /Y
114
- </PostBuildEvent >
115
- </PropertyGroup >
116
- <PropertyGroup >
117
- <PreBuildEvent >
118
- if not exist "C:\ProgramData\BHoM\Extensions\PythonEnvironments" mkdir "C:\ProgramData\BHoM\Extensions\PythonEnvironments"
119
- if not exist "C:\ProgramData\BHoM\Extensions\PythonCode" mkdir "C:\ProgramData\BHoM\Extensions\PythonCode"
120
-
121
- if exist "C:\ProgramData\BHoM\Extensions\PythonCode\$(SolutionName)" rmdir "C:\ProgramData\BHoM\Extensions\PythonCode\$(SolutionName)" /S /Q
122
- mkdir "C:\ProgramData\BHoM\Extensions\PythonCode\$(SolutionName)"
123
-
124
- robocopy "$(ProjectDir)Python" "C:\ProgramData\BHoM\Extensions\PythonCode\$(SolutionName)" /mir /xf "*.pyc" "*.ipynb" /xd "__*__" ".*" > output.log
125
- del output.log
126
- </PreBuildEvent >
127
- </PropertyGroup >
128
- </Project >
41
+
42
+ <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" >
43
+ <Exec Command =" xcopy $(TargetDir)$(TargetFileName) $(ProgramData)\BHoM\Assemblies /Y" />
44
+ </Target >
45
+
46
+ <Target Name =" PreBuild" BeforeTargets =" PreBuildEvent" >
47
+ <Exec Command =" if not exist $(ProgramData)\BHoM\Extensions\PythonEnvironments mkdir $(ProgramData)\BHoM\Extensions\PythonEnvironments
 if not exist $(ProgramData)\BHoM\Extensions\PythonCode mkdir $(ProgramData)\BHoM\Extensions\PythonCode
 
 if exist $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName) rmdir $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName) /S /Q
 mkdir $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName)
 
 robocopy $(ProjectDir)Python $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName) /mir /xf " *.pyc" " *.ipynb" /xd " __*__" " .*" > output.log
 del output.log" />
48
+ </Target >
49
+
50
+ </Project >
0 commit comments