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

The framework 'Microsoft.NETCore.App', version '2.2.0' (x64) was not found. #18

Open
Camuvingian opened this issue Mar 16, 2022 · 0 comments

Comments

@Camuvingian
Copy link

Camuvingian commented Mar 16, 2022

Describe the bug
When I run the csharptojs command having followed the installation steps, I get the error

The framework 'Microsoft.NETCore.App', version '2.2.0' (x64) was not found.

  • The following frameworks were found:
    2.1.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    3.1.10 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    3.1.21 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    3.1.22 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    5.0.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    6.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:

To Reproduce
Steps to reproduce the behavior:

  1. Install the tool dotnet tool install --global CSharpToJs
  2. Download the samples
  3. Open the CSharp2Js\csharp-to-js-develop\samples\ClassLibrarySample, build.
  4. Execute the run.bat file in the project folder.

Expected behavior
It produces the js files.

Desktop (please complete the following information):

  • OS: Win10 x64
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

1 participant