wtertinek / Linq2Acad

A library that aims to simplify AutoCAD .NET plugin code
MIT License
61 stars 34 forks source link

NuGet Packages #13

Closed sanzoghenzo closed 2 years ago

sanzoghenzo commented 2 years ago

Hi there!

It would be wonderful if you can bundle this library as NuGet package!

This guide explains how to build and publish a package, but it runs on a ubuntu machine; It should be easy to change the platform.

Let me know what you think!

Happy holidays

wtertinek commented 2 years ago

Hi sanzoghenzo,

thanks for opening this issue and thanks for the link. Creating NuGet packages is on top of my todo list for my Christmas holidays. I keep you updated. :)

Happy holidays!

wtertinek commented 2 years ago

Hi,

I finally managed to created the NuGet packages. There is a dedicated package for each AutoCAD version, e.g. Linq2Acad-2022. For testing purposes I pushed Linq2Acad-2022, Linq2Acad-2021 and Linq2Acad-2020 to the NuGet-Test server. To receive the packages you have to add https://apiint.nugettest.org/v3/index.json to your package sources in Visual Studio. Furthermore you have to check Include prereleases in the NuGet browser.

The code is available on a new branch caled release and not yet merged into master.

Documentation has been updated and one major breaking change was made (f48f74ede2554ef2c968fe52b03e1ec1f0d956ff).

I'm happy to get some feedback!

wtertinek commented 2 years ago

Hi, I just published the packages on nuget.org. The current version is 1.0.0-RC3, so Include prereleases is still needed to find the packages, but it is now available from the standard NuGet server. I thought it would be best to have a "public beta" for another four weeks. If everything goes well, we cann release version 1.0.0 on March 1st.

benkoshy commented 2 years ago

Wolfgang, the spoils of victory are yours. well done! You're library makes using the .net api much more palatable. it's like driving a nice car, it's beautiful.

sanzoghenzo commented 2 years ago

Sorry for my silence... I just managed to switch to the nuget packages!

It took me almost an hour, I was unaware of the breaking changes you made (DbObjects and ClearValues) 😅

I confirm that the 2021 version is working!

As always, you did a wonderful job!

benkoshy commented 2 years ago

I can also confirm I have successfully switched over to the Nuget package without (much) trouble. the hiccup i faced was that I had to first remove the OLD linq2acad project, and THEN install the nuget package. easy enough, but it may trip up some.

wtertinek commented 2 years ago

Hi Ben, thanks for your feedback. Good point, I'll add that to the documentation (currently working on documenting the API).

BTW, I published a new RC that contains three more breaking changes (new PaperSpace property 494884238adb4a4521581d7f36dd267ceded7cdf, Add renamed to AddRange, 1a80da801c83de898a01b01f719a487bd47cbc9f, Styles grouped c3c72f7588ffd1b7b3ee22bc44c6a1ad1eb89dcc). I refactored the code and believe that these changes make the API clearer.

benkoshy commented 2 years ago

Hi Ben, thanks for your feedback. Good point, I'll add that to the documentation (currently working on documenting the API).

BTW, I published a new RC that contains three more breaking changes (new PaperSpace property 4948842, Add renamed to AddRange, 1a80da8, Styles grouped c3c72f7). I refactored the code and believe that these changes make the API clearer.

That's good idea. Maybe it's best if i document it, seeing i faced the particular problem myself.

edit see here: #14

wtertinek commented 2 years ago

Finally, version 1.0.0 is on NuGet! Thanks for your participation @sanzoghenzo, @benkoshy!