In the content subfolder from where the package is built, I created a file called "web.debug.config.transform". The target project does have a web.debug.config. Upon Add-Package, it outputs the following error:
_WriteError : 'xdt' is an undeclared prefix. Line 7, position 17.At C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\CodePlex Foundation\NuPack Tools\0.1\Scripts\nupack.ps1:107 char:24+
WriteError <<<< $.Exception + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,_WriteError
The web.debug.config.transform file contains the following:
<configuration xmlns:xdt="
http://schemas.microsoft.com/XML-Document-Transform"> <system.serviceModel> <client> <endpoint address="
http://devserver:8080/WebServices/Services/MyService.svc" bindingConfiguration="BasicHttpBinding_IMyService" xdt:Transform="SetAttributes" xdt:Locator="Match(bindingConfiguration)"/> </client> </system.serviceModel></configuration>
P.S. I tried the first element both with and without the xmlns attribute.