Skip to content

Commit c7f64ad

Browse files
Add dotnet build functionality (#422)
2 parents 29ee7a9 + d559fb6 commit c7f64ad

9 files changed

Lines changed: 56 additions & 577 deletions

File tree

MidasCivil_Adapter/MidasCivil_Adapter.csproj

Lines changed: 23 additions & 260 deletions
Large diffs are not rendered by default.

MidasCivil_Adapter/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

MidasCivil_Adapter/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 15 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,19 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTarget="Build" 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 DefaultTarget="Build" Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{BC0A8EFF-4277-49E9-BBDC-66FFA11E5258}</ProjectGuid>
3+
<TargetFramework>net472</TargetFramework>
84
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
105
<RootNamespace>BH.Engine.MidasCivil</RootNamespace>
11-
<AssemblyName>MidasCivil_Engine</AssemblyName>
12-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<DebugSymbols>true</DebugSymbols>
17-
<DebugType>full</DebugType>
18-
<Optimize>false</Optimize>
19-
<OutputPath>..\Build\</OutputPath>
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
21-
<ErrorReport>prompt</ErrorReport>
22-
<WarningLevel>4</WarningLevel>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>pdbonly</DebugType>
26-
<Optimize>true</Optimize>
276
<OutputPath>..\Build\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
7+
<AssemblyTitle>MidasCivil_Engine</AssemblyTitle>
8+
<Description>https://github.com/BHoM/MidasCivil_Toolkit</Description>
9+
<Product>MidasCivil_Engine</Product>
10+
<Copyright>Copyright © https://github.com/BHoM</Copyright>
11+
<AssemblyVersion>9.0.0.0</AssemblyVersion>
12+
<FileVersion>9.1.0.0</FileVersion>
3113
</PropertyGroup>
14+
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
15+
<Exec Command="xcopy &quot;$(TargetDir)$(TargetFileName)&quot; &quot;C:\ProgramData\BHoM\Assemblies&quot; /Y" />
16+
</Target>
3217
<ItemGroup>
3318
<Reference Include="Adapter_Engine">
3419
<HintPath>$(ProgramData)\BHoM\Assemblies\Adapter_Engine.dll</HintPath>
@@ -90,40 +75,11 @@
9075
<Private>False</Private>
9176
<SpecificVersion>False</SpecificVersion>
9277
</Reference>
93-
<Reference Include="System" />
94-
<Reference Include="System.Core" />
95-
<Reference Include="System.Xml.Linq" />
96-
<Reference Include="System.Data.DataSetExtensions" />
97-
<Reference Include="Microsoft.CSharp" />
98-
<Reference Include="System.Data" />
99-
<Reference Include="System.Net.Http" />
100-
<Reference Include="System.Xml" />
101-
</ItemGroup>
102-
<ItemGroup>
103-
<Compile Include="Convert\Date.cs" />
104-
<Compile Include="Create\MidasCivilSettings.cs" />
105-
<Compile Include="Create\Review.cs" />
106-
<Compile Include="Objects\AdapterIdName.cs" />
107-
<Compile Include="Objects\ArrayComparer.cs" />
108-
<Compile Include="Objects\MeshCentreComparer.cs" />
109-
<Compile Include="Compute\CombineTextFiles.cs" />
110-
<Compile Include="Create\Metadata.cs" />
111-
<Compile Include="Properties\AssemblyInfo.cs" />
78+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
79+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
80+
<PackageReference Include="Microsoft.Office.Interop.Excel" Version="16.0.18925.20022" />
11281
</ItemGroup>
113-
<ItemGroup />
11482
<ItemGroup>
115-
<None Include="packages.config" />
83+
<ProjectReference Include="..\MidasCivil_oM\MidasCivil_oM.csproj" />
11684
</ItemGroup>
117-
<ItemGroup>
118-
<ProjectReference Include="..\MidasCivil_oM\MidasCivil_oM.csproj">
119-
<Project>{ec91e4d3-1fce-4547-8482-b78df69f56a8}</Project>
120-
<Name>MidasCivil_oM</Name>
121-
</ProjectReference>
122-
</ItemGroup>
123-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition="" />
124-
<PropertyGroup>
125-
<PostBuildEvent>
126-
xcopy "$(TargetDir)$(TargetFileName)" "C:\ProgramData\BHoM\Assemblies" /Y
127-
</PostBuildEvent>
128-
</PropertyGroup>
12985
</Project>

MidasCivil_Engine/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

MidasCivil_Engine/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.

MidasCivil_Toolkit.sln

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Express 14 for Windows Desktop
44
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MidasCivil_Adapter", "MidasCivil_Adapter\MidasCivil_Adapter.csproj", "{8C94BF09-84E2-4300-A13F-8A3A1552FB71}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MidasCivil_Adapter", "MidasCivil_Adapter\MidasCivil_Adapter.csproj", "{8C94BF09-84E2-4300-A13F-8A3A1552FB71}"
77
ProjectSection(ProjectDependencies) = postProject
88
{EC91E4D3-1FCE-4547-8482-B78DF69F56A8} = {EC91E4D3-1FCE-4547-8482-B78DF69F56A8}
99
{BC0A8EFF-4277-49E9-BBDC-66FFA11E5258} = {BC0A8EFF-4277-49E9-BBDC-66FFA11E5258}
1010
EndProjectSection
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MidasCivil_oM", "MidasCivil_oM\MidasCivil_oM.csproj", "{EC91E4D3-1FCE-4547-8482-B78DF69F56A8}"
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MidasCivil_oM", "MidasCivil_oM\MidasCivil_oM.csproj", "{EC91E4D3-1FCE-4547-8482-B78DF69F56A8}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MidasCivil_Engine", "MidasCivil_Engine\MidasCivil_Engine.csproj", "{BC0A8EFF-4277-49E9-BBDC-66FFA11E5258}"
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MidasCivil_Engine", "MidasCivil_Engine\MidasCivil_Engine.csproj", "{BC0A8EFF-4277-49E9-BBDC-66FFA11E5258}"
1515
ProjectSection(ProjectDependencies) = postProject
1616
{EC91E4D3-1FCE-4547-8482-B78DF69F56A8} = {EC91E4D3-1FCE-4547-8482-B78DF69F56A8}
1717
EndProjectSection

MidasCivil_oM/MidasCivil_oM.csproj

Lines changed: 14 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTarget="Build" 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 DefaultTarget="Build" Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{EC91E4D3-1FCE-4547-8482-B78DF69F56A8}</ProjectGuid>
3+
<TargetFramework>net472</TargetFramework>
84
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>MidasCivil_oM</RootNamespace>
11-
<AssemblyName>MidasCivil_oM</AssemblyName>
12-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<DebugSymbols>true</DebugSymbols>
17-
<DebugType>full</DebugType>
18-
<Optimize>false</Optimize>
19-
<OutputPath>..\Build\</OutputPath>
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
21-
<ErrorReport>prompt</ErrorReport>
22-
<WarningLevel>4</WarningLevel>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>pdbonly</DebugType>
26-
<Optimize>true</Optimize>
275
<OutputPath>..\Build\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
6+
<AssemblyTitle>MidasCivil_oM</AssemblyTitle>
7+
<Description>https://github.com/BHoM/MidasCivil_Toolkit</Description>
8+
<Product>MidasCivil_oM</Product>
9+
<Copyright>Copyright © https://github.com/BHoM</Copyright>
10+
<AssemblyVersion>9.0.0.0</AssemblyVersion>
11+
<FileVersion>9.1.0.0</FileVersion>
3112
</PropertyGroup>
13+
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
14+
<Exec Command="xcopy &quot;$(TargetDir)$(TargetFileName)&quot; &quot;C:\ProgramData\BHoM\Assemblies&quot; /Y" />
15+
</Target>
3216
<ItemGroup>
3317
<Reference Include="Adapter_oM">
3418
<HintPath>$(ProgramData)\BHoM\Assemblies\Adapter_oM.dll</HintPath>
@@ -40,31 +24,7 @@
4024
<Private>False</Private>
4125
<SpecificVersion>False</SpecificVersion>
4226
</Reference>
43-
<Reference Include="System" />
44-
<Reference Include="System.Core" />
45-
<Reference Include="System.Xml.Linq" />
46-
<Reference Include="System.Data.DataSetExtensions" />
47-
<Reference Include="Microsoft.CSharp" />
48-
<Reference Include="System.Data" />
49-
<Reference Include="System.Net.Http" />
50-
<Reference Include="System.Xml" />
27+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
28+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
5129
</ItemGroup>
52-
<ItemGroup>
53-
<Compile Include="Enum\ForceUnit.cs" />
54-
<Compile Include="Enum\HeatUnit.cs" />
55-
<Compile Include="Enum\LengthUnit.cs" />
56-
<Compile Include="Settings\Metadata.cs" />
57-
<Compile Include="Settings\MidasCivilSettings.cs" />
58-
<Compile Include="Settings\Review.cs" />
59-
<Compile Include="Enum\TemperatureUnit.cs" />
60-
<Compile Include="Fragments\MidasCivilId.cs" />
61-
<Compile Include="Properties\AssemblyInfo.cs" />
62-
</ItemGroup>
63-
<ItemGroup />
64-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition="" />
65-
<PropertyGroup>
66-
<PostBuildEvent>
67-
xcopy "$(TargetDir)$(TargetFileName)" "C:\ProgramData\BHoM\Assemblies" /Y
68-
</PostBuildEvent>
69-
</PropertyGroup>
70-
</Project>
30+
</Project>

0 commit comments

Comments
 (0)