<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MSBuild on Gabriel Mongeon</title><link>https://gabrielmongeon.ca/tags/msbuild/</link><description>Recent content in MSBuild on Gabriel Mongeon</description><generator>Hugo</generator><language>fr</language><lastBuildDate>Tue, 14 Apr 2015 07:29:22 -0400</lastBuildDate><atom:link href="https://gabrielmongeon.ca/tags/msbuild/index.xml" rel="self" type="application/rss+xml"/><item><title>Source personnalisée de NuGet pour MSBuild</title><link>https://gabrielmongeon.ca/2015/04/source-personnalis%C3%A9e-de-nuget-pour-msbuild/</link><pubDate>Tue, 14 Apr 2015 07:29:22 -0400</pubDate><guid>https://gabrielmongeon.ca/2015/04/source-personnalis%C3%A9e-de-nuget-pour-msbuild/</guid><description>&lt;p>&lt;a href="https://gabrielmongeon.ca/img/NuGet-Logo-2.png">&lt;img src="https://gabrielmongeon.ca/img/NuGet-Logo-2_thumb.png" alt="NuGet-Logo-2" title="NuGet-Logo-2">&lt;/a>Si vous avez une source de données personnalisée pour vos package NuGet et que vous utiliser MSBuild pour vos solutions, MSBuild ne sera pas en mesure de restaurer ces packages.&lt;/p>
&lt;p>Pour y arriver sans ajouter des fichiers de configuration spécifiques à vos solutions .Net, il vous suffit d’ajouter un fichier &lt;em>NuGetDefaults.config&lt;/em> dans le répertoire &lt;em>%ProgramData%\NuGet\NuGetDefaults.config&lt;/em> de votre serveur de build. Ce fichier sera ouvert à chaque build nécessitant la restauration de packages et permettra de voir vos sources de packages NuGet d’entreprises ou personnels.&lt;/p></description></item><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>