Skip to content

Commit 500601d

Browse files
committed
Modified build script to output API documentation into the NuGet packages so it will be picked up automatically by http://www.nudoc.com/.
1 parent 2d13d54 commit 500601d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/runbuild.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function Build-MvcSiteMapProvider-Core-Version ([string] $net_version, [string]
142142
$net_version_upper = $net_version.toUpper()
143143
Write-Host "Compiling MvcSiteMapProvider for $net_version_upper, MVC$mvc_version" -ForegroundColor Blue
144144
$outdir = "$build_directory\mvcsitemapprovider.mvc$mvc_version.core\lib\$net_version\"
145+
$documentation_file = $outdir + "MvcSiteMapProvider.xml"
145146

146147
if ($net_version -eq "net35") {
147148
$targetFramework = "v3.5"
@@ -162,7 +163,8 @@ function Build-MvcSiteMapProvider-Core-Version ([string] $net_version, [string]
162163
/property:WarningLevel=3 `
163164
/property:DefineConstants=`" MVC$mvc_version`;$net_version_upper`" `
164165
/property:TargetFrameworkVersion=$targetFramework `
165-
/property:EnableNuGetPackageRestore=true
166+
/property:EnableNuGetPackageRestore=true `
167+
/property:DocumentationFile=`"$documentation_file`"
166168
}
167169

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

0 commit comments

Comments
 (0)