{"action":"created","issue":{"url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/40","repository_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions","labels_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/40/comments","events_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/40/events","html_url":"https://github.com/BTDF/CodePlexDiscussions/issues/40","id":276933454,"number":40,"title":"Discussion: \r\n                Error on undeploy when app doesn'","user":{"login":"tfabraham","id":10138276,"avatar_url":"https://avatars0.githubusercontent.com/u/10138276?v=4","gravatar_id":"","url":"https://api.github.com/users/tfabraham","html_url":"https://github.com/tfabraham","followers_url":"https://api.github.com/users/tfabraham/followers","following_url":"https://api.github.com/users/tfabraham/following{/other_user}","gists_url":"https://api.github.com/users/tfabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/tfabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfabraham/subscriptions","organizations_url":"https://api.github.com/users/tfabraham/orgs","repos_url":"https://api.github.com/users/tfabraham/repos","events_url":"https://api.github.com/users/tfabraham/events{/privacy}","received_events_url":"https://api.github.com/users/tfabraham/received_events","type":"User","site_admin":false},"labels":[{"id":761900936,"url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/labels/CodePlexMigrated","name":"CodePlexMigrated","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-27T08:18:38Z","updated_at":"2017-11-27T08:18:40Z","closed_at":null,"author_association":"OWNER","body":"<b>majikandy[11/15/2017 6:03:54 PM]</b>\nHi, \r\n\r\nThe 5.7 version appears to have an additional stop condition on undeploy when the app doesn't exist.\r\n\r\n\r\nThis isn't too much of a problem locally. But on a build server it is a problem. This is because first time deploy will always error if we are running undeploy every time as a first step.\r\n\r\n\r\nIn version 5.0, always running undeploy first was fine because this error didn't happen as PrepareAppForUndeploy didn't have the error text line below....\r\n```\n<Target Name=\"PrepareAppForUndeploy\" DependsOnTargets=\"VerifyBizTalkAppExists\">\n    <Error Text=\"BizTalk application '$(BizTalkAppName)' does not exist in the group, so there is nothing to do.\"\n           Condition=\"'$(AppExists)' == 'false' and '$(DeploymentMode)' == 'Undeploy'\" />\n   ...\n```\r\nFor workarounds I can think of a couple of options:-\r\n\r\nHack the targets file to remove that Error Text line on the build agent Call VerifyBizTalkAppExists in the line before calling Undeploy from the build server and only run undeploy if it exists.\r\n\r\nIt would be nice if there was a parameter I could pass in like \"SkipAppNotExistsError\" eg.\r\n```\n    Condition=\"'$(SkipAppNotExistsError) == 'false' and $(AppExists)' == 'false' and '$(DeploymentMode)' == 'Undeploy'\" />     \n```\r\nOr a better solution if you have one? \r\n\r\nMany thanks \r\nAndy\r\n"},"comment":{"url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/comments/347108471","html_url":"https://github.com/BTDF/CodePlexDiscussions/issues/40#issuecomment-347108471","issue_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/40","id":347108471,"user":{"login":"tfabraham","id":10138276,"avatar_url":"https://avatars0.githubusercontent.com/u/10138276?v=4","gravatar_id":"","url":"https://api.github.com/users/tfabraham","html_url":"https://github.com/tfabraham","followers_url":"https://api.github.com/users/tfabraham/followers","following_url":"https://api.github.com/users/tfabraham/following{/other_user}","gists_url":"https://api.github.com/users/tfabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/tfabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfabraham/subscriptions","organizations_url":"https://api.github.com/users/tfabraham/orgs","repos_url":"https://api.github.com/users/tfabraham/repos","events_url":"https://api.github.com/users/tfabraham/events{/privacy}","received_events_url":"https://api.github.com/users/tfabraham/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T08:18:40Z","updated_at":"2017-11-27T08:18:40Z","author_association":"OWNER","body":"<b>tfabraham[11/15/2017 6:03:54 PM]</b>\nHi Andy,\r\n\r\nThis has been in place since v5.5 or so, and was an optimization to avoid running a long undeployment process when the app isn't even deployed. I understand that there are downsides to it, namely when you have a partial deployment that you want to clean up,\r\n but can't because this blocks it.\r\n\r\nYou can redefine just the VerifyBizTalkAppExists target in your .btdfproj and leave the body of the Target empty.\r\n\r\n[This project has moved to GitHub.]\r\n```\n<MigrationTest />\n```\r\nThanks,\r\nTom\r\n"}}
{"actor":{"display_login":"tfabraham"}}