Open timheuer opened 4 years ago
How does one get 16.5 of the dotnet CLI? VS 16.5 was not yet available to me until today. I am installing it now and then I'm gonna update my .NET Core SDK to the latest version and see if it solves it.
Is there another way to get updates to dotnet CLI, or only by manual download and install?
Updates on dotnet CLI you can get through dot.net/downloads
after updating visual studio to 16.5, I got the new dotnet CLI 3.1.200, but still getting the same error.
❯ dotnet build
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 427,23 ms for C:\Users\kelps\Source\Repos\TypeScriptBuildRepro\TestTypeScript\TestTypeScript.csproj.
C:\Users\kelps\.nuget\packages\microsoft.typescript.msbuild\3.8.3\tools\Microsoft.TypeScript.targets(311,5): error : The build task could not find node.exe which is required to run the TypeScript compiler. Please install Node and ensure that the system path contains its location. [C:\Users\kelps\Source\Repos\TypeScriptBuildRepro\TestTypeScript\TestTypeScript.csproj]
Build FAILED.
C:\Users\kelps\.nuget\packages\microsoft.typescript.msbuild\3.8.3\tools\Microsoft.TypeScript.targets(311,5): error : The build task could not find node.exe which is required to run the TypeScript compiler. Please install Node and ensure that the system path contains its location. [C:\Users\kelps\Source\Repos\TypeScriptBuildRepro\TestTypeScript\TestTypeScript.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.57
As I said before, the BuildWebCompiler nuget package from @madskristensen also uses node in its compilations of .less, .sass, etc and it works without requiring a stand alone node installation. I'm not sure how he does it, but It works, both in my computers and in the Azure DevOps Pipeline, while the TypeScript build fails (only works in my local Visual Studio).
I was able to build with no errors.