Skip to content

Commit

Permalink
Modified build script to output API documentation into the NuGet pack…
Browse files Browse the repository at this point in the history
…ages so it will be picked up automatically by http://www.nudoc.com/.
  • Loading branch information
NightOwl888 committed Jul 25, 2014
1 parent 2d13d54 commit 500601d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/runbuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function Build-MvcSiteMapProvider-Core-Version ([string] $net_version, [string]
$net_version_upper = $net_version.toUpper()
Write-Host "Compiling MvcSiteMapProvider for $net_version_upper, MVC$mvc_version" -ForegroundColor Blue
$outdir = "$build_directory\mvcsitemapprovider.mvc$mvc_version.core\lib\$net_version\"
$documentation_file = $outdir + "MvcSiteMapProvider.xml"

if ($net_version -eq "net35") {
$targetFramework = "v3.5"
Expand All @@ -162,7 +163,8 @@ function Build-MvcSiteMapProvider-Core-Version ([string] $net_version, [string]
/property:WarningLevel=3 `
/property:DefineConstants=`" MVC$mvc_version`;$net_version_upper`" `
/property:TargetFrameworkVersion=$targetFramework `
/property:EnableNuGetPackageRestore=true
/property:EnableNuGetPackageRestore=true `
/property:DocumentationFile=`"$documentation_file`"
}

dir $outdir | ?{ -not($_.Name -match 'MvcSiteMapProvider') } | %{ del $_.FullName }
Expand Down

0 comments on commit 500601d

Please sign in to comment.