npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@isopodlabs/msbuild

v1.0.1

Published

A package for reading and running MSBuild files with TypeScript.

Readme

@isopodlabs/msbuild

npm version GitHub stars License

A TypeScript library for parsing and manipulating MSBuild project files and Visual Studio solutions.

☕ Support My Work

If you use this package, consider buying me a cup of tea to support future updates!

Installation

npm install @isopodlabs/msbuild

Features

Solution Management

  • Parse Visual Studio solution files (.sln)
  • Project discovery - automatically detect and load referenced projects
  • Configuration management - handle Debug/Release, platform configurations
  • Project dependencies - track and manage inter-project references
  • Solution folders - organize projects in virtual folders

Project Support

  • MSBuild projects - C#, VB.NET, F#, C++ projects
  • Modern SDK-style projects - .NET Core/5+ projects
  • Legacy projects - Framework 4.x and earlier
  • Specialized projects - Android, web, deployment projects
  • Project filters - Visual Studio filter files (.vcxproj.filters)

Property System

  • Property evaluation - MSBuild property expansion and substitution
  • Conditional properties - condition-based property evaluation
  • Import resolution - handle .props and .targets imports
  • Environment integration - access environment variables and registry

Usage

Loading Solutions

import { Solution } from '@isopodlabs/msbuild';

// Load a Visual Studio solution
const solution = await Solution.load('path/to/solution.sln');

if (solution) {
    console.log(`Loaded ${Object.keys(solution.projects).length} projects`);
    
    // Access projects
    const project = solution.projectByName('MyProject');
    
    // Get active configuration
    const config = solution.activeConfiguration;
    console.log(`Active: ${config.Configuration}|${config.Platform}`);
}

Working with Projects

// Get project configurations
const configs = project.configurationList();  // ['Debug', 'Release']
const platforms = project.platformList();     // ['x86', 'x64', 'Any CPU']

// Evaluate project properties
const [props, origins] = await project.evaluateProps({
    Configuration: 'Debug',
    Platform: 'x64'
});

console.log('Output path:', props.properties.OutputPath);

API Reference

Core Classes

  • Solution - Visual Studio solution parser and manager
  • Project - Base project class with common functionality
  • MsBuildProject - MSBuild-based projects (.csproj, .vbproj, etc.)
  • PropertyContext - MSBuild property evaluation engine
  • Items - Project item collections (files, references, etc.)

Supported Project Types

The library recognizes and handles these Visual Studio project types:

  • C# Projects - .csproj files (Framework and SDK-style)
  • VB.NET Projects - .vbproj files
  • F# Projects - .fsproj files
  • C++ Projects - .vcxproj files with filter support
  • Web Projects - ASP.NET, MVC, Web API projects
  • Mobile Projects - Xamarin Android/iOS projects
  • Deployment Projects - Setup and deployment projects

Advanced Features

Expression Evaluation

Built-in support for MSBuild expressions and functions:

  • Property substitution: $(PropertyName)
  • Registry access: $(registry:HKEY_LOCAL_MACHINE\SOFTWARE\...)
  • Static function calls: $([System.Environment]::GetFolderPath(...))
  • Metadata access: %(MetadataName)
  • List expressions: @(Items) and @(Items->%(field))

License

This project is licensed under the MIT License.