This question is more directed to @ActivistInvestor and of course answer if you want. Anyone else who responds is always welcome and I thank you all very much.
I'm trying to use the AcMgdLib library from @ActivistInvestor (thanks so much for this and so many other solutions). I followed the instructions at https://github.com/ActivistInvestor/AcMgdLib and when I went to test I received a series of errors. Based on research on the internet, I tried to reduce the number of errors by adding packages using PolySharp, Mirosoft.BCL.HashCode, System.Memory, etc. Some problems have been resolved but there are still errors.
I use Visual Studio 2022, AutoCAD 2020 and .NET 4.7 Framework and added the instructions in the “AcMgdLib.csproj” file:
<PropertyGroup>
...
<TargetFramework>net4.7</TargetFramework>
<LangVersion>10</LangVersion>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
...
</PropertyGroup>
Reading the text at https://github.com/ActivistInvestor/AcMgdLib it seems that there shouldn't be all these compilation errors and it shouldn't be necessary to use NuGet packages.
Errors resolved with PolySharp:
- The type or namespace name 'CallerArgumentExpressionAttribute' could not be found (are you missing a using directive or an assembly reference?)
- The type or namespace name 'CallerArgumentExpression' could not be found (are you missing a using directive or an assembly reference?)
Unresolved errors:
- Operator '>' cannot be applied to operands of type 'IntPtr' and 'int'
- The name 'CollectionsMarshal' does not exist in the current context
- Argument 1: cannot convert from 'char' to 'string'
- The type or namespace name 'Span<>' could not be found (are you missing a using directive or an assembly reference?)
- 'Span<double>' does not contain a definition for 'Sort' and no accessible extension method 'Sort' accepting a first argument of type 'Span<double>' could be found (are you missing a using directive or an assembly reference?)
- 'nint' does not contain a constructor that takes 1 arguments
- Operator '>' cannot be applied to operands of type 'IntPtr' and 'int'
Before posting here, I invested some time looking for a solution but made no progress. So, If @ActivistInvestor or anyone else can help I would be grateful.