-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDynamicCodeBridge.csproj
More file actions
73 lines (65 loc) · 3.88 KB
/
Copy pathDynamicCodeBridge.csproj
File metadata and controls
73 lines (65 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-windows;net7.0;net48</TargetFrameworks>
<AssemblyName>DynamicCodeBridge</AssemblyName>
<RootNamespace>DynamicCodeBridge</RootNamespace>
<EnableDynamicLoading>true</EnableDynamicLoading>
<TargetExt>.gha</TargetExt>
<NoWarn>NU1701;NETSDK1086</NoWarn>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
<PropertyGroup>
<Version>0.1.5</Version>
<AssemblyVersion>0.1.5</AssemblyVersion>
<Authors>Nacho Monereo; MRAC-IAAC; Robots Lab IAAC</Authors>
<Company>MRAC-IAAC - Robots Lab</Company>
<Description>Dynamic Code Bridge for Rhino 8 with Diagnostic Telemetry. Developed at IAAC Robots Lab.</Description>
<PackageProjectUrl>https://github.com/nachomonereo/dynamic-code-bridge</PackageProjectUrl>
<Copyright>Copyright © IAAC 2024</Copyright>
</PropertyGroup>
<ItemGroup>
<Compile Remove="scripts\**" />
<None Include="scripts\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Grasshopper" Version="8.0.23304.9001" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.8.0" />
</ItemGroup>
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<Reference Include="Rhino.Runtime.Code">
<HintPath>C:\Program Files\Rhino 8\System\Rhino.Runtime.Code.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="LOGO.png" />
<EmbeddedResource Include="logo-c.png" />
<EmbeddedResource Include="logo-p.png" />
</ItemGroup>
<PropertyGroup Condition="$(TargetFramework.Contains('-windows')) or $(TargetFramework.StartsWith('net4'))">
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<ItemGroup Condition="!($(TargetFramework.Contains('-windows')) or $(TargetFramework.StartsWith('net4')))">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net48" Version="1.0.3" ExcludeAssets="all" GeneratePathProperty="true" />
<Reference Include="$(PkgMicrosoft_NETFramework_ReferenceAssemblies_net48)\build\.NETFramework\v4.8\System.Windows.Forms.dll" Private="False" />
<PackageReference Include="System.Drawing.Common" Version="7.0.0" ExcludeAssets="runtime" />
</ItemGroup>
<Target Name="BuildYakPackage" AfterTargets="DispatchToInnerBuilds">
<PropertyGroup>
<YakExecutable Condition="$(YakExecutable) == '' and $([MSBuild]::IsOSPlatform(windows)) and Exists('C:\Program Files\Rhino 8\System\Yak.exe')">C:\Program Files\Rhino 8\System\Yak.exe</YakExecutable>
<YakExecutable Condition="$(YakExecutable) == '' and $([MSBuild]::IsOSPlatform(macos)) and Exists('/Applications/Rhino 8.app/Contents/Resources/bin/yak')">/Applications/Rhino 8.app/Contents/Resources/bin/yak</YakExecutable>
<BuildYakPackage Condition="$(BuildYakPackage) == '' and $(YakExecutable) != '' and Exists($(YakExecutable))">True</BuildYakPackage>
</PropertyGroup>
<Warning Text="Could not find Yak executable" Condition="$(YakExecutable) == ''" />
<ItemGroup>
<YakPackagesToDelete Include="$(OutputPath)\*.yak;$(OutputPath)\**\manifest.yml" />
</ItemGroup>
<Delete Files="@(YakPackagesToDelete)" />
<Copy SourceFiles="$(MSBuildProjectDirectory)\manifest.yml" DestinationFolder="$(OutputPath)" Condition="$(BuildYakPackage) == 'True'" />
<Copy SourceFiles="$(MSBuildProjectDirectory)\LOGO.png" DestinationFiles="$(OutputPath)\logo.png" Condition="$(BuildYakPackage) == 'True' and Exists('$(MSBuildProjectDirectory)\LOGO.png')" />
<Exec Command=""$(YakExecutable)" build" WorkingDirectory="$(OutputPath)" Condition="$(BuildYakPackage) == 'True'" />
</Target>
<Target Name="CopyGHAToLibraries" AfterTargets="Build" Condition="'$(OS)' == 'Windows_NT'">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(APPDATA)\Grasshopper\Libraries" />
</Target>
</Project>