microsoft / microsoft/nodejstools
Can't build NodeJS projects on Linux with the dotnet sdk
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 355
- PR merge metrics
- No merged PRs in 30d
Description
Expected Behavior
A working build.
Actual Behavior
When you build a solution on a linux machine, you'll get:
/*********.njsproj(98,3): error MSB4019: The imported project "/usr/share/dotnet/sdk/3.1.409/Microsoft/VisualStudio/v16.0/Node.js Tools/Microsoft.NodejsToolsV2.targets" was not found. Confirm that the expression in the Import declaration "/usr/share/dotnet/sdk/3.1.409/Microsoft/VisualStudio/v16.0/Node.js Tools/Microsoft.NodejsToolsV2.targets" is correct, and that the file exists on disk.
So the .Net Core SDK doesn't contain the target files for NodeJS. I haven't seen any tools for installing these files on a Linux build server.
- NTVS Version: 1.5.21130.2
- Visual Studio Version: 16.9.6
- Node.js Version: 16.2.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the import at line 98 of the .njsproj and the missing Microsoft.NodejsToolsV2.targets path under the .NET SDK. Reproduce the build on Linux with the listed SDK, NTVS, Visual Studio, and Node.js versions, then confirm the solution builds without the MSB4019 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, nodejs
- Domain
- build-system, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100