question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature to include njsproj file with slngen

See original GitHub issue

I am able to include C#(.csproj) and C++ project(.vcxproj) files successfully but after including .njsproj files it is throwing error when i open the solution file i face a error C:\Users\Ajith\Documents\project\Sample\SampleNode\SampleNode\SampleNode.njsproj : error : The build project should have been initialized before calling PreCreateForOuter.

snap_build_config snap_nodeproject

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

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jeffklcommented, Mar 9, 2022

SlnGen will re-generate a solution file based on the cone of projects it finds. If you want to just add a single project to a solution you can use dotnet sln

https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-sln

1reaction
jeffklcommented, Mar 7, 2022

Can you please try removing the project from the solution and re-adding it in Visual Studio? I’d like to see what Visual Studio places in the .sln file and maybe SlnGen just needs to use a different project type GUID or something?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tools that support creating solution file for node js projects ...
I want to create a batch script that would automatically create solution file if we just give projectfile as a argument.
Read more >
Tools that support creating solution file for node js projects ...
Tools that support creating solution file for node js projects (njsproj) · Does slngen support creating solution file with .nsproj node project ?...
Read more >
Overview | slngen - Microsoft Open Source
SlnGen is a Visual Studio solution file generator. Visual Studio solutions generally do not scale well for large project trees. They are scoped...
Read more >
visual studio code - VsCode - Update .njsproj
Write a simple script that updates your njsproj based on current folder contents. If you are only using the project to open a...
Read more >
Frequently Asked Questions | slngen - Microsoft Open Source
SlnGen does its best to correctly map projects with their corresponding project system based on the file extension. If you have a project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found