<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Post-Déploiement on Gabriel Mongeon</title><link>https://gabrielmongeon.ca/tags/post-d%C3%A9ploiement/</link><description>Recent content in Post-Déploiement on Gabriel Mongeon</description><generator>Hugo</generator><language>fr</language><lastBuildDate>Mon, 30 May 2011 22:51:00 -0400</lastBuildDate><atom:link href="https://gabrielmongeon.ca/tags/post-d%C3%A9ploiement/index.xml" rel="self" type="application/rss+xml"/><item><title>SharePoint 2010 and VS2010: Scripts de post-déploiement</title><link>https://gabrielmongeon.ca/2011/05/sharepoint-2010-and-vs2010-scripts-de-post-d%C3%A9ploiement/</link><pubDate>Mon, 30 May 2011 22:51:00 -0400</pubDate><guid>https://gabrielmongeon.ca/2011/05/sharepoint-2010-and-vs2010-scripts-de-post-d%C3%A9ploiement/</guid><description>&lt;h4>&lt;/h4>
&lt;h4 id="le-contexte">Le contexte&lt;/h4>
&lt;p>Vous développer une application &lt;a href="http://sharepoint.microsoft.com">SharePoint&lt;/a> 2010 à l’aide de &lt;a href="http://www.microsoft.com/visualstudio/">Visual Studio&lt;/a> 2010 sur un serveur Windows 2008 64 bits. Vous désirer rouler un script post-déploiement (Powershell par exemple) pour déboguer:&lt;/p>
&lt;p>&lt;a href="https://gabrielmongeon.ca/img/image_5.png">&lt;img src="https://gabrielmongeon.ca/img/image_thumb_4.png" alt="image" title="image">&lt;/a>&lt;/p>
&lt;h4 id="le-problème">Le problème&lt;/h4>
&lt;p>Lorsque vous y mettez un script, par exemple:&lt;/p>
&lt;pre>&lt;code>`powershell $(ProjectDir)\PowerShellScript\MonSuperScriptPowerShell.ps1`
&lt;/code>&lt;/pre>
&lt;p>Vous obtenez toujours une erreur lors de l’exécution du script:&lt;/p>
&lt;p>&lt;em>&lt;font color="#ff0000" size="1">Error occurred in deployment step &amp;lsquo;Run Post-Deployment Command&amp;rsquo;: The command &amp;quot;powershell $(ProjectDir)\PowerShellScript\MonSuperScriptPowerShell.ps1&amp;quot; exited with error code: 1.&lt;/font>&lt;/em>&lt;/p></description></item></channel></rss>