node-csproj-util
Edit Visual Studio project files using Node.js
This library allows you to add files to be included in a .csproj and .sln file. For example, any templates created by Node.js code generators can be included in compilation of the Visual Studio solution.
Installation
npm install node-csproj-util
Usage
Reading from a .sln file
var Solution = ; { const sln = 'examples/TestSolution/TestSolution.sln'; await sln; console; ... };
Reading from a .proj file
Project in a solution:
... const proj = slnprojects0; await proj; ...
Directly loading a project:
... const proj = filePath: 'examples/TestSolution/TestProject/TestProject.csproj' ; await proj; ...
Adding files to project
... // included in compilation proj; // added as content proj; await proj; ...
Adding to solution folders
... // you can create or use an existing one const folder = sln; sln; await sln; ...
You can create or use an existing one, since they are not actual folders, get them using the Solution.projects
property.