Skip to content

Commit

Permalink
Added line to output MVC version found in install.ps1 (MvcSiteMapProv…
Browse files Browse the repository at this point in the history
…ider.Web).
  • Loading branch information
NightOwl888 committed Feb 27, 2014
1 parent 92c20ee commit 688d8fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nuget/mvcsitemapprovider.web/tools/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ if ([string](InferPreferredViewEngine) -eq 'aspx') {
(Get-Project).ProjectItems | ?{ $_.Name -eq "Views" } | %{ $_.ProjectItems | ?{ $_.Name -eq "Shared" } } | %{ $_.ProjectItems | ?{ $_.Name -eq "DisplayTemplates" } } | %{ $_.ProjectItems | ?{ $_.Name -eq "MenuHelperModel.ascx" -or $_.Name -eq "SiteMapHelperModel.ascx" -or $_.Name -eq "SiteMapNodeModel.ascx" -or $_.Name -eq "SiteMapNodeModelList.ascx" -or $_.Name -eq "SiteMapPathHelperModel.ascx" -or $_.Name -eq "SiteMapTitleHelperModel.ascx" -or $_.Name -eq "CanonicalHelperModel.ascx" -or $_.Name -eq "MetaRobotsHelperModel.ascx" } } | %{ $_.Delete() }
}


$mvc_version = $project.Object.References.Find("System.Web.Mvc").Version

Write-Host "MVC Version: "
Write-Host $mvc_version

# If MVC 4 or higher, install web.config section to fix 404 not found on sitemap.xml (#124)
if ($project.Object.References.Find("System.Web.Mvc").Version -eq "4.0.0.0")
{
Expand Down

0 comments on commit 688d8fd

Please sign in to comment.