From 83c72a713131dc74ea0d74859112a59ca9e93202 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Mon, 6 Mar 2023 22:19:08 +0100 Subject: [PATCH] chore: Updated project to SDK style --- .../GrasshopperAsyncComponent.csproj | 93 +++++---------- .../GrasshopperAsyncComponent.nuspec | 15 --- .../Properties/AssemblyInfo.cs | 36 ------ .../GrasshopperAsyncComponentDemo.csproj | 110 ++++-------------- .../Properties/AssemblyInfo.cs | 36 ------ .../Sample_PrimeCalculatorAsyncComponent.cs | 7 +- .../Sample_UslessCyclesComponent.cs | 7 +- 7 files changed, 53 insertions(+), 251 deletions(-) delete mode 100755 GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec delete mode 100644 GrasshopperAsyncComponent/Properties/AssemblyInfo.cs delete mode 100644 GrasshopperAsyncComponentDemo/Properties/AssemblyInfo.cs diff --git a/GrasshopperAsyncComponent/GrasshopperAsyncComponent.csproj b/GrasshopperAsyncComponent/GrasshopperAsyncComponent.csproj index 9b0407f..7cceec3 100755 --- a/GrasshopperAsyncComponent/GrasshopperAsyncComponent.csproj +++ b/GrasshopperAsyncComponent/GrasshopperAsyncComponent.csproj @@ -1,73 +1,38 @@ - - - + - Debug - AnyCPU - {114D5E49-AC13-47F7-A70E-B4289579F4E3} - Library - Properties + net48 + 10 GrasshopperAsyncComponent GrasshopperAsyncComponent - v4.5 - 512 - + - true - snupkg + Grasshopper Async Component + Jankless Grasshopper Components + Speckle Systems + Speckle Systems + Copyright AEC Systems © 2020, 2021 + {114D5E49-AC13-47F7-A70E-B4289579F4E3} - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 + + + GrasshopperAsyncComponent + false + Apache-2.0 + https://github.com/specklesystems/GrasshopperAsyncComponent + grasshopper rhino mcneel gh_component - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + + + + + + + + + + + C:\Program Files\Rhino 7\System\Rhino.exe + Program - - - - - - - - - - - - - - 6.28.20199.17141 - compile; build; native; contentfiles; analyzers; buildtransitive - - - 6.28.20199.17141 - compile; build; native; contentfiles; analyzers; buildtransitive - - - 1.3.0 - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - \ No newline at end of file diff --git a/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec b/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec deleted file mode 100755 index 231ed7c..0000000 --- a/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec +++ /dev/null @@ -1,15 +0,0 @@ - - - - GrasshopperAsyncComponent - GrasshopperAsyncComponent - Speckle Systems - false - Apache-2.0 - https://github.com/specklesystems/GrasshopperAsyncComponent - Jankless Grasshopper Component - Adds cancellation methods. - Speckle Systems - grasshopper rhino mcneel gh_component - - \ No newline at end of file diff --git a/GrasshopperAsyncComponent/Properties/AssemblyInfo.cs b/GrasshopperAsyncComponent/Properties/AssemblyInfo.cs deleted file mode 100644 index fa12272..0000000 --- a/GrasshopperAsyncComponent/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("GrasshopperAsyncComponent")] -[assembly: AssemblyDescription("Asyncronous Implementation of GH_Component for Grassshopper")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Speckle Systems")] -[assembly: AssemblyProduct("GrasshopperAsyncComponent")] -[assembly: AssemblyCopyright("Copyright AEC Systems © 2020, 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("114D5E49-AC13-47F7-A70E-B4289579F4E3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.3.0")] -[assembly: AssemblyFileVersion("1.2.3.0")] -[assembly: AssemblyInformationalVersion("1.2.3.0")] \ No newline at end of file diff --git a/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj b/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj index 8306573..50bf0c3 100644 --- a/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj +++ b/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj @@ -1,99 +1,31 @@ - - + + - Debug - AnyCPU - 8.0.30703 - 2.0 - {695D2B91-DDB6-416E-8A99-DDE6253DA7AA} - Library - Properties + net48 + 1.0 + GrasshopperAsyncComponentDemo + Jankless Grasshopper Components Demo + .gha GrasshopperAsyncComponentDemo GrasshopperAsyncComponentDemo - v4.7.2 - 512 - false - - - - - - true - full - false - bin\ - DEBUG;TRACE - prompt - false - - - pdbonly - true - bin\ - TRACE - prompt - 4 + true + + + + + + + + + + - - - - - - - - - - - True - True - Resources.resx - - - - - - - - - - - {114d5e49-ac13-47f7-a70e-b4289579f4e3} - GrasshopperAsyncComponent - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - - - - - - - Copy "$(TargetPath)" "$(TargetDir)$(ProjectName).gha" - - - cp "$(TargetPath)" "$(TargetDir)$(ProjectName).gha" - - - en-US - - - C:\Program Files\Rhino 6\System\Rhino.exe - - + + + C:\Program Files\Rhino 7\System\Rhino.exe Program \ No newline at end of file diff --git a/GrasshopperAsyncComponentDemo/Properties/AssemblyInfo.cs b/GrasshopperAsyncComponentDemo/Properties/AssemblyInfo.cs deleted file mode 100644 index c7df0a6..0000000 --- a/GrasshopperAsyncComponentDemo/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("GrasshopperAsyncComponentDemo")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Aec systems")] -[assembly: AssemblyProduct("GrasshopperAsyncComponentDemo")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("695d2b91-ddb6-416e-8a99-dde6253da7aa")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_PrimeCalculatorAsyncComponent.cs b/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_PrimeCalculatorAsyncComponent.cs index f3bed3d..cb79606 100755 --- a/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_PrimeCalculatorAsyncComponent.cs +++ b/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_PrimeCalculatorAsyncComponent.cs @@ -1,12 +1,7 @@ using Grasshopper.Kernel; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using GrasshopperAsyncComponent; using System.Windows.Forms; +using GrasshopperAsyncComponent; namespace GrasshopperAsyncComponentDemo.SampleImplementations { diff --git a/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_UslessCyclesComponent.cs b/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_UslessCyclesComponent.cs index 0bba8c7..bccce9f 100755 --- a/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_UslessCyclesComponent.cs +++ b/GrasshopperAsyncComponentDemo/SampleImplementations/Sample_UslessCyclesComponent.cs @@ -1,12 +1,9 @@ using Grasshopper.Kernel; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; -using System.Threading.Tasks; -using GrasshopperAsyncComponent; using System.Windows.Forms; +using GrasshopperAsyncComponent; + namespace GrasshopperAsyncComponentDemo.SampleImplementations {