Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made the project compatible with netstandard2.0 #483

Closed
wants to merge 3 commits into from

Conversation

mdmozibur
Copy link

Description

just 4 file was affected and the changes are very small.

@mdmozibur mdmozibur mentioned this pull request Nov 4, 2024
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net5.0;net6.0;net7.0;net48;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net5.0;net6.0;net7.0;net48;netstandard2.0</TargetFrameworks>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot see the reason of this downgrade.

Could you justify why should be implemented for 2.0 instead of 2.1?
Can you add 2.0 without removing the 2.1?

@@ -30,7 +30,7 @@ public DwgHandleWriter(ACadVersion version, MemoryStream stream, Dictionary<ulon
this._handleMap.Add(item.Key, item.Value);
}
#else
this._handleMap = new Dictionary<ulong, long>(map.OrderBy(o => o.Key));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this fixed some issues for the dwg output, it cannot be removed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I get any example dwg file that faces issues with this being not changed?
I am doubting that because, you are creating a new Dictionary. The order of the collection that you are providing shouldn't have any effect because dictionaries are unordered collections.
If you can give me a dwg file with the issues mentioned, then I can dig deep into it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any particular example, I just remember that with some specific versions of dwg is better to sort the handles before writing them.

@DomCR
Copy link
Owner

DomCR commented Dec 14, 2024

Fix compatibility for netstandard20 without compromising the project or code.

@DomCR DomCR closed this Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants