sayedihashimi / package-web

Extensions for ASP.NET web projects package creation
32 stars 18 forks source link

Give error is MSDeploy v2 is not installed #2

Closed sayedihashimi closed 12 years ago

sayedihashimi commented 12 years ago

Currently if MSDeploy v2 is not installed the publish is not performed but a "silent" error occurs. Better would be to give an error, we should also create a mechanism (env variable?) that users can specify the full path to msdeploy.exe which should be used.

Details

Here is the implementation in Publish-Interactive.ps1 which needs to get updated

function GetPathToMSDeploy {
    return ("{0}\IIS\Microsoft Web Deploy V2\msdeploy.exe" -f (Get-ChildItem env:"ProgramFiles").Value)
}
sayedihashimi commented 12 years ago

This has been checked in at c12011ce69779b77bc2bdb4e48f3f23e4a6275d8