visualstudiofiles
v1.0.4
Published
Parse key information out of Visual Studio solution (.sln) and project (.csproj, .fsproj, .vbproj) files
Downloads
107
Maintainers
Readme
visualstudiofiles
A TypeScript/JavaScript library for parsing Visual Studio solution and project files in Node.js.
Usage
import {
VisualStudioSolution,
VisualStudioProject,
parseVisualStudioSolutionFile,
parseVisualStudioProjectFile,
} from 'visualstudiofiles'
// You can parse solution files from a file path:
let solution1 = parseVisualStudioSolutionFile('/path/to/TicTacToe.sln')
// ...or provide the file's contents:
let solution2 = parseVisualStudioSolutionFile(
'Microsoft Visual Studio Solution File, Format Version 11.00\n' +
'# Visual Studio 10\n' +
'Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = ...\n' +
'EndProject\n'
)
// You can parse project files from a file path:
let project1 = parseVisualStudioProjectFile('./TicTacToe.UI/TicTacToe.UI.csproj')
// ...or provide the file's contents:
let project2 = parseVisualStudioProjectFile('<Project ...>...</Project>')