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

Support dotnet 5 #19

Open
NechiK opened this issue Apr 16, 2021 · 2 comments
Open

Support dotnet 5 #19

NechiK opened this issue Apr 16, 2021 · 2 comments

Comments

@NechiK
Copy link

NechiK commented Apr 16, 2021

Hi,
I'm trying to install CLI Tool for net5.0 project, but I'm getting compatibility error.

Restoring packages for .NETCoreApp,Version=v5.0...
Resolving conflicts for net5.0...
Checking compatibility of packages on net5.0.
Checking compatibility for shared-enum 1.0.0 with net5.0.
Checking compatibility for CSharpToTypeScript.CLITool 2.5.1 with net5.0.
Package CSharpToTypeScript.CLITool 2.5.1 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package CSharpToTypeScript.CLITool 2.5.1 supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2) / any
Invalid project-package combination for CSharpToTypeScript.CLITool 2.5.1. DotnetToolReference project style can only contain references of the DotnetTool type 
Incompatible packages: 2
Package 'CSharpToTypeScript.CLITool 2.5.1' has a package type 'DotnetTool' that is not supported by project 'shared-enum'.

Is it possible to add support for net5.0?
I'm working on converting backend enums and interfaces to TypeScript files. We're going to automate it and add it to the build pipeline in order to keep interfaces and enums the same on both sides.

@NechiK
Copy link
Author

NechiK commented Jul 31, 2021

Hi @AdrianWilczynski
Is there a chance that you will have time to add support for dotnet 5?

@AdrianWilczynski
Copy link
Owner

I didn't test this, but I was under the impression that it will work on .NET 5 through RollForward setting.

I feel like the issue might be with you trying to add this to a project as a regular NuGet package. You could try installing it globally (dotnet tool install --global CSharpToTypeScript.CLITool) or (if you want to add it to the project) as a local tool: https://andrewlock.net/new-in-net-core-3-local-tools/

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

No branches or pull requests

2 participants