Last change
on this file since 11316 was
9604,
checked in by pfleck, 12 years ago
|
#2063:
Set up basic webpage layout based on WebApplication branch.
Added Asp.Net MVC packages and some helper packages.
Implemented login.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[9604] | 1 | param($installPath, $toolsPath, $package, $project)
|
---|
| 2 |
|
---|
| 3 | . (Join-Path $toolsPath common.ps1)
|
---|
| 4 |
|
---|
| 5 | # Determine the file paths
|
---|
| 6 | $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
|
---|
| 7 | $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
|
---|
| 8 |
|
---|
| 9 | if (Test-Path $projectIntelliSenseFilePath) {
|
---|
| 10 | if ((Get-Checksum $projectIntelliSenseFilePath) -eq (Get-Checksum $origIntelliSenseFilePath)) {
|
---|
| 11 | # The intellisense file in the project matches the file in the tools folder, delete it
|
---|
| 12 |
|
---|
| 13 | if ($scriptsFolderProjectItem -eq $null) {
|
---|
| 14 | # No Scripts folder
|
---|
| 15 | exit
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | try {
|
---|
| 19 | # Get the project item for the intellisense file
|
---|
| 20 | $intelliSenseFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($intelliSenseFileName)
|
---|
| 21 | }
|
---|
| 22 | catch {
|
---|
| 23 | # The item wasn't found
|
---|
| 24 | exit
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | # Delete the project item
|
---|
| 28 | Delete-ProjectItem $intelliSenseFileProjectItem
|
---|
| 29 | }
|
---|
| 30 | else {
|
---|
| 31 | $projectScriptsFolderLeaf = Split-Path $projectScriptsFolderPath -Leaf
|
---|
| 32 | Write-Host "Skipping '$projectScriptsFolderLeaf\$intelliSenseFileName' because it was modified." -ForegroundColor Magenta
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 | else {
|
---|
| 36 | # The intellisense file was not found in project
|
---|
| 37 | Write-Host "The intellisense file was not found in project at path $projectIntelliSenseFilePath"
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | # Update the _references.js file
|
---|
| 41 | Remove-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx |
---|
Note: See
TracBrowser
for help on using the repository browser.