csharp-to-js
csharp-to-js copied to clipboard
The framework 'Microsoft.NETCore.App', version '2.2.0' (x64) was not found.
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:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.2.0&arch=x64&rid=win10-x64
To Reproduce Steps to reproduce the behavior:
- Install the tool dotnet tool install --global CSharpToJs
- Download the samples
- Open the CSharp2Js\csharp-to-js-develop\samples\ClassLibrarySample, build.
- 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