Welcome to NuProj!

NuProj provides MSBuild based support for creating NuGet packages (.nupkg).

Creating NuGet packages is as simple as:

NuGet.exe pack MyPackages.nuspec -basepath D:\source\bin

Well, except for the part where you need to integrate this into your build process.

NuProj allows defining the entire .nuspec file via a regular MSBuild project:

msbuild MyPackage.nuproj /p:BasePath=D:\source\bin

At first this might not look like a big deal but this gives you the following advantages:
  • Easy integration into existing build processes
  • No placeholder limations -- every piece of information can be injected via the build process
  • Proper reporting of errors and warnings

Below is an example how HelloWorld.nuproj would look like:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
    <Description>Hello World</Description>
    <ReleaseNotes>Hello World</ReleaseNotes>
    <Summary>Hello World</Summary>
    <Copyright>Copyright (c) Immo Landwerth</Copyright>
    <Library Include="$(BasePath)HelloWorld.dll">
    <NuProjTargetsPath Condition=" '$(NuProjTargetsPath)' == '' ">
  <Import Project="$(NuProjTargetsPath)" />

Last edited May 19 at 8:48 PM by terrajobst, version 13