microsoft / microsoft/nodejstools

Tool to inlude njproj project in sln file by CLI

Open
#2,364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.8k
Forks
355
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

slngen should include nodejs project successfully. if any other CLI tool does that also i am fine, you can tell that tool

Actual Behavior

it is producing error
C:\Users\Ajith\Documents\project\Sample\SampleNode\SampleNode\SampleNode.njsproj : error : The build project should have been initialized before calling PreCreateForOuter.

Is that feature added to slngen ? or anyother tool if so could u kindly advise a solution for it ?

error_1

error

Below is the command and project built.
slngen -o Test.sln SampleNode
https://github.com/ajithkumarmcw/NodeProject

  • NTVS Version: latest
  • Visual Studio Version: VS 17.1.0 , 2022
  • Node.js Version: 16.14.0
Steps to Reproduce
  1. Install slngen
  2. slngen -o Test.sln SampleNode
    https://github.com/ajithkumarmcw/NodeProject

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the slngen command and reproduce the failure using slngen -o Test.sln SampleNode against the linked NodeProject. Investigate how the tool processes the .njsproj project and the PreCreateForOuter error in Visual Studio 2022. Done means the Node.js project is included in the generated solution without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, nodejs
Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.