svenheden / csharp-models-to-typescript

C# models to TypeScript
88 stars 58 forks source link

Upgrade .NET dependencies (Retarget to .NET 8) and use System.Text.Json #76

Closed SafeerH closed 4 months ago

SafeerH commented 6 months ago

Upgrade .NET dependencies (Retarget to .NET 8) and replace Newtonsoft.Json with System.Text.Json (also fixes #73)

@svenheden hope you'll like this.

Linkek commented 5 months ago

@svenheden would you mind taking a look at this so csharp-models-to-typescript can be used again?

digocesar commented 4 months ago

It appears that the owner of this project has left it. @svenheden, is there a way to add other people as project maintainers to validate and accept the PRs?

svenheden commented 4 months ago

Sorry guys, I haven't given much attention to this lib lately, that's correct. @digocesar and/or @SafeerH you guys have made good contributions before, would you like to be added as a maintainers?

digocesar commented 4 months ago

Hi @svenheden. Yes, I would. I still use this project and can help maintain it. I just don't know how the process of publishing a new release to npm is done. But then you do this part... ;)

SafeerH commented 4 months ago

Hi @svenheden, same here. I still use this lib and would be happy to help.

svenheden commented 4 months ago

Thanks! Have added you both as collaborators to this repo now. Merge whatever you see fit and give me a ping when you want me to publish a new version to npm :)

SafeerH commented 4 months ago

Hi @digocesar, would you be able to take a look at this PR? Thanks!

digocesar commented 4 months ago

It's not working for me. I assume it's due to the serializer changing. And I use Windows! image

Isn't it better to do a PR just to upgrade .Net and components and then doing another PR changing the serializer?

SafeerH commented 4 months ago

I'm using Windows too and I don't think it is due to the serializer change. The following section from your screenshot is the output that is generated from the serializer. image

As per your screenshot, the error is due to a C# compiler warning from a file called Util.cs. But there's no such file in this repository and I'm wondering how did you get that file into your codebase (csharp-models-to-typescript\Util.cs).

digocesar commented 4 months ago

I had this error when I took this new code and put it in the node_modules folder of a project I have and tried to run it. I'll try to analyze the reason for the problem then.

digocesar commented 4 months ago

Ok. My mistake testing before. It is working! ;)