rgpublish not supporting CopyAllFilesToSingleFolderForPackag
roguesith
Posts: 6
I have a .csproj that needs extra files. This works fine for msbuild and web deploy but not rgpublish.
Here is the relevant section from the project
and this is the log from TeamCity
lines to note:
but the files are not included in the nuget package uploaded to the feed.
Here is the relevant section from the project
<PropertyGroup> <CopyAllFilesToSingleFolderForMsdeployDependsOn> DefineCustomFiles; CustomCollectFiles; $(CopyAllFilesToSingleFolderForMsdeployDependsOn); </CopyAllFilesToSingleFolderForMsdeployDependsOn> <CopyAllFilesToSingleFolderForPackageDependsOn> DefineCustomFiles; CustomCollectFiles; $(CopyAllFilesToSingleFolderForPackageDependsOn); </CopyAllFilesToSingleFolderForPackageDependsOn> </PropertyGroup> <Target Name="DefineCustomFiles"> <ItemGroup> <CustomFilesToInclude Include="..\..\deploy\*.*"> <Dir>Updates</Dir> </CustomFilesToInclude> <!--<CustomFilesToInclude Include="$(IncludeRootDir)\css\**\*.css"> <Dir>css</Dir> </CustomFilesToInclude> <CustomFilesToInclude Include="$(IncludeRootDir)\includes\**\*.js"> <Dir>includes</Dir> </CustomFilesToInclude>--> </ItemGroup> </Target> <Target Name="CustomCollectFiles"> <ItemGroup> <FilesForPackagingFromProject Include="@(CustomFilesToInclude)"> <DestinationRelativePath>%(CustomFilesToInclude.Dir)\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> </FilesForPackagingFromProject> <!--<FilesForPackagingFromProject Include="@(CustomFilesToIncludeSkipExistingCheck)"> <DestinationRelativePath>%(CustomFilesToIncludeSkipExistingCheck.Dir)\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> </FilesForPackagingFromProject>--> </ItemGroup> <Message Text="Custom File Collection for Donor Running" Importance="High" /> <Message Text="@(CustomFilesToInclude)" Importance="High" /> <Error Text="Custom file exists in project files already: %(CustomFilesToInclude.FullPath)" Condition="Exists('$(MainProjectRootDir)\%(CustomFilesToInclude.Dir)\%(RecursiveDir)%(Filename)%(Extension)')" /> </Target>
and this is the log from TeamCity
[15:56:24]: Step 5/5: DC.Launcher\DonorLauncherService (Command Line) (1m:51s) [15:56:24]: [Step 5/5] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script2093897789304152008.cmd [15:56:24]: [Step 5/5] in directory: C:\TeamCity\buildAgent\work\c5c610813c850c24 [15:56:25]: [Step 5/5] Red Gate Package Publishing Tool version 2.4.6.8 [15:56:25]: [Step 5/5] [15:56:26]: [Step 5/5] Building package from web application project C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\DonorLauncherService.csproj [15:56:26]: [Step 5/5] [Load] Loading project C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\DonorLauncherService.csproj [15:56:26]: [Step 5/5] [Load] Successful. [15:56:26]: [Step 5/5] [Build] Building project C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\DonorLauncherService.csproj (Release/AnyCPU) [15:56:26]: [Step 5/5] [Build] Creating directory "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\". [15:56:26]: [Step 5/5] [Build] Creating directory "obj\Release\". [15:56:26]: [Step 5/5] [Build] Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. [15:56:26]: [Step 5/5] [Build] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva- /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /reference:"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Microsoft.Data.Schema.dll" /reference:"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Microsoft.Data.Schema.UnitTesting.dll" /reference:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.0\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Configuration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Linq.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.EnterpriseServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.ApplicationServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.DynamicData.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Entity.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Services.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /debug:pdbonly /optimize+ /out:obj\Release\UpdaterConfiguration.dll /target:library /utf8output CheckLogin.ashx.cs GetVersionNotes.ashx.cs Download.ashx.cs Models\DonorUser.cs Models\StaffLogin.cs Models\UserLoginInfo.cs Models\VersionNotesInfo.cs Operations.cs Properties\AssemblyInfo.cs SqlMapper.cs VersionNotes.aspx.cs VersionNotes.aspx.designer.cs "C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.0.AssemblyAttributes.cs" [15:56:27]: [Step 5/5] [Build] The variable 'ex' is declared but never used [15:56:27]: [Step 5/5] [Build] The variable 'ex' is declared but never used [15:56:27]: [Step 5/5] [Build] Copying file from "obj\Release\UpdaterConfiguration.dll" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.dll". [15:56:27]: [Step 5/5] [Build] DonorLauncherService -> C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.dll [15:56:27]: [Step 5/5] [Build] Copying file from "obj\Release\UpdaterConfiguration.pdb" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.pdb". [15:56:27]: [Step 5/5] [Build] Copying Web Application Project Files for DonorLauncherService [15:56:27]: [Step 5/5] [Build] Copying file from "VersionNotes.aspx" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\VersionNotes.aspx". [15:56:27]: [Step 5/5] [Build] Copying file from "Web.config" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\Web.config". [15:56:27]: [Step 5/5] [Build] Copying file from "CheckLogin.ashx" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\CheckLogin.ashx". [15:56:27]: [Step 5/5] [Build] Copying file from "Download.ashx" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\Download.ashx". [15:56:27]: [Step 5/5] [Build] Copying file from "GetVersionNotes.ashx" to "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\GetVersionNotes.ashx". [15:56:27]: [Step 5/5] [Build] $(PackageAsSingleFile) is true [15:56:27]: [Step 5/5] [Build] $(PackageFileName) is C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\DonorLauncherService.zip. Validating... [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(IntermediateAssembly). Adding: [15:56:27]: [Step 5/5] [Build] C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.dll to bin\UpdaterConfiguration.dll [15:56:27]: [Step 5/5] [Build] C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.pdb to bin\UpdaterConfiguration.pdb [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(Content). Adding: [15:56:27]: [Step 5/5] [Build] VersionNotes.aspx;Web.config;CheckLogin.ashx;Download.ashx;GetVersionNotes.ashx [15:56:27]: [Step 5/5] [Build] Gather all files from Project output (IntermediateSatelliteAssembliesWithTargetPath). Adding: [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(ReferenceCopyLocalPaths,ReferenceComWrappersToCopyLocal,ResolvedIsolatedComModules,_DeploymentLooseManifestFile,NativeReferenceFile). [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(AllExtraReferenceFiles). Adding: [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(_binDeployableAssemblies). Adding: [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(Compile). Adding: [15:56:27]: [Step 5/5] [Build] CheckLogin.ashx.cs;GetVersionNotes.ashx.cs;Download.ashx.cs;Models\DonorUser.cs;Models\StaffLogin.cs;Models\UserLoginInfo.cs;Models\VersionNotesInfo.cs;Operations.cs;Properties\AssemblyInfo.cs;SqlMapper.cs;VersionNotes.aspx.cs;VersionNotes.aspx.designer.cs;C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.0.AssemblyAttributes.cs [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(None). Adding: [15:56:27]: [Step 5/5] [Build] Properties\PublishProfiles\Release.pubxml;Properties\PublishProfiles\Debug.pubxml;Properties\PublishProfiles\StagingEdge.pubxml;Properties\PublishProfiles\StagingBDC.pubxml;Web.Debug.config;Web.RC.config;Web.Release.config;Web.StagingBDC.config;Web.StagingEdge.config [15:56:27]: [Step 5/5] [Build] Gather all files from Project items @(ProjectFiles). Adding: [15:56:27]: [Step 5/5] [Build] DonorLauncherService.csproj;DonorLauncherService.csproj.user [15:56:27]: [Step 5/5] [Build] Publish Pipeline Collect Files Phase [15:56:27]: [Step 5/5] [Build] Found The following for Config tranformation: [15:56:27]: [Step 5/5] Web.config [15:56:27]: [Step 5/5] [Build] Creating directory "C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\TransformWebConfig\transformed\". [15:56:27]: [Step 5/5] [Build] Copying Web.config to obj\Release\TransformWebConfig\original\Web.config. [15:56:27]: [Step 5/5] [Build] Transforming Source File: C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\Web.config [15:56:27]: [Step 5/5] [Build] Applying Transform File: C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\Web.Release.config [15:56:27]: [Step 5/5] [Build] Output File: obj\Release\TransformWebConfig\transformed\Web.config [15:56:27]: [Step 5/5] [Build] Transformation succeeded [15:56:27]: [Step 5/5] [Build] Transformed Web.config using Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config. [15:56:27]: [Step 5/5] [Build] Publish Pipeline Transform Phase [15:56:27]: [Step 5/5] [Build] Creating directory "C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\CSAutoParameterize\transformed\". [15:56:27]: [Step 5/5] [Build] Copying obj\Release\TransformWebConfig\transformed\Web.config to obj\Release\CSAutoParameterize\original\Web.config. [15:56:27]: [Step 5/5] [Build] Transforming Source File: C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\TransformWebConfig\transformed\Web.config [15:56:27]: [Step 5/5] [Build] Applying Transform File: <?xml version="1.0"?> [15:56:27]: [Step 5/5] <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> [15:56:27]: [Step 5/5] <connectionStrings> [15:56:27]: [Step 5/5] <add [15:56:27]: [Step 5/5] connectionString="{% token='$(ReplacableToken_#(parameter)_#(tokennumber))' xpathlocator='name' parameter='$(name)-Web.config Connection String' description='$(name) Connection String used in web.config by the application to access the database.' defaultValue='$(connectionString)' tags='SqlConnectionString' %}" [15:56:27]: [Step 5/5] xdt:Transform="SetTokenizedAttributes(connectionString)" xdt:SupressWarnings="True" /> [15:56:27]: [Step 5/5] </connectionStrings> [15:56:27]: [Step 5/5] </configuration> [15:56:27]: [Step 5/5] [Build] Output File: obj\Release\CSAutoParameterize\transformed\Web.config [15:56:27]: [Step 5/5] [Build] Transformation succeeded [15:56:27]: [Step 5/5] [Build] Auto ConnectionString Transformed obj\Release\TransformWebConfig\transformed\Web.config into obj\Release\CSAutoParameterize\transformed\Web.config. [15:56:27]: [Step 5/5] [Build] Custom File Collection for Donor Running [15:56:27]: [Step 5/5] [Build] ..\..\deploy\Installer.zip;..\..\deploy\Launcher.zip;..\..\deploy\Staging.ver;..\..\deploy\Staging.zip;..\..\deploy\VersionNotes.xml [15:56:27]: [Step 5/5] [Build] Creating directory "obj\Release\Package\PackageTmp". [15:56:27]: [Step 5/5] [Build] Copying all files to temporary location below for package/publish: [15:56:27]: [Step 5/5] obj\Release\Package\PackageTmp. [15:56:27]: [Step 5/5] [Build] Copying C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.dll to obj\Release\Package\PackageTmp\bin\UpdaterConfiguration.dll. [15:56:27]: [Step 5/5] [Build] Copying C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.pdb to obj\Release\Package\PackageTmp\bin\UpdaterConfiguration.pdb. [15:56:27]: [Step 5/5] [Build] Copying VersionNotes.aspx to obj\Release\Package\PackageTmp\VersionNotes.aspx. [15:56:27]: [Step 5/5] [Build] Copying CheckLogin.ashx to obj\Release\Package\PackageTmp\CheckLogin.ashx. [15:56:27]: [Step 5/5] [Build] Copying Download.ashx to obj\Release\Package\PackageTmp\Download.ashx. [15:56:27]: [Step 5/5] [Build] Copying GetVersionNotes.ashx to obj\Release\Package\PackageTmp\GetVersionNotes.ashx. [15:56:27]: [Step 5/5] [Build] Copying CheckLogin.ashx.cs to obj\Release\Package\PackageTmp\CheckLogin.ashx.cs. [15:56:27]: [Step 5/5] [Build] Copying GetVersionNotes.ashx.cs to obj\Release\Package\PackageTmp\GetVersionNotes.ashx.cs. [15:56:27]: [Step 5/5] [Build] Copying Download.ashx.cs to obj\Release\Package\PackageTmp\Download.ashx.cs. [15:56:27]: [Step 5/5] [Build] Copying Models\DonorUser.cs to obj\Release\Package\PackageTmp\Models\DonorUser.cs. [15:56:27]: [Step 5/5] [Build] Copying Models\StaffLogin.cs to obj\Release\Package\PackageTmp\Models\StaffLogin.cs. [15:56:27]: [Step 5/5] [Build] Copying Models\UserLoginInfo.cs to obj\Release\Package\PackageTmp\Models\UserLoginInfo.cs. [15:56:27]: [Step 5/5] [Build] Copying Models\VersionNotesInfo.cs to obj\Release\Package\PackageTmp\Models\VersionNotesInfo.cs. [15:56:27]: [Step 5/5] [Build] Copying Operations.cs to obj\Release\Package\PackageTmp\Operations.cs. [15:56:27]: [Step 5/5] [Build] Copying Properties\AssemblyInfo.cs to obj\Release\Package\PackageTmp\Properties\AssemblyInfo.cs. [15:56:27]: [Step 5/5] [Build] Copying SqlMapper.cs to obj\Release\Package\PackageTmp\SqlMapper.cs. [15:56:27]: [Step 5/5] [Build] Copying VersionNotes.aspx.cs to obj\Release\Package\PackageTmp\VersionNotes.aspx.cs. [15:56:27]: [Step 5/5] [Build] Copying VersionNotes.aspx.designer.cs to obj\Release\Package\PackageTmp\VersionNotes.aspx.designer.cs. [15:56:27]: [Step 5/5] [Build] Skip copying C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.0.AssemblyAttributes.cs to C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.0.AssemblyAttributes.cs, File C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.0.AssemblyAttributes.cs is up to date [15:56:27]: [Step 5/5] [Build] Copying Properties\PublishProfiles\Release.pubxml to obj\Release\Package\PackageTmp\Properties\PublishProfiles\Release.pubxml. [15:56:27]: [Step 5/5] [Build] Copying Properties\PublishProfiles\Debug.pubxml to obj\Release\Package\PackageTmp\Properties\PublishProfiles\Debug.pubxml. [15:56:27]: [Step 5/5] [Build] Copying Properties\PublishProfiles\StagingEdge.pubxml to obj\Release\Package\PackageTmp\Properties\PublishProfiles\StagingEdge.pubxml. [15:56:27]: [Step 5/5] [Build] Copying Properties\PublishProfiles\StagingBDC.pubxml to obj\Release\Package\PackageTmp\Properties\PublishProfiles\StagingBDC.pubxml. [15:56:27]: [Step 5/5] [Build] Copying Web.Debug.config to obj\Release\Package\PackageTmp\Web.Debug.config. [15:56:27]: [Step 5/5] [Build] Copying Web.RC.config to obj\Release\Package\PackageTmp\Web.RC.config. [15:56:27]: [Step 5/5] [Build] Copying Web.Release.config to obj\Release\Package\PackageTmp\Web.Release.config. [15:56:27]: [Step 5/5] [Build] Copying Web.StagingBDC.config to obj\Release\Package\PackageTmp\Web.StagingBDC.config. [15:56:27]: [Step 5/5] [Build] Copying Web.StagingEdge.config to obj\Release\Package\PackageTmp\Web.StagingEdge.config. [15:56:27]: [Step 5/5] [Build] Copying DonorLauncherService.csproj to obj\Release\Package\PackageTmp\DonorLauncherService.csproj. [15:56:27]: [Step 5/5] [Build] Copying obj\Release\CSAutoParameterize\transformed\Web.config to obj\Release\Package\PackageTmp\Web.config. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Installer.zip to obj\Release\Package\PackageTmp\Updates\Installer.zip. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Launcher.zip to obj\Release\Package\PackageTmp\Updates\Launcher.zip. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Staging.ver to obj\Release\Package\PackageTmp\Updates\Staging.ver. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Staging.zip to obj\Release\Package\PackageTmp\Updates\Staging.zip. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\VersionNotes.xml to obj\Release\Package\PackageTmp\Updates\VersionNotes.xml. [15:56:27]: [Step 5/5] [Build] Publish Pipeline Deploy phase Pre-Deploy CopyAllFilesToOneFolder Stage [15:56:27]: [Step 5/5] [Build] Invoking Web Deploy to generate the package with the following settings: [15:56:27]: [Step 5/5] [Build] $(LocalIisVersion) is 8 [15:56:27]: [Step 5/5] [Build] $(DestinationIisVersion) is 8 [15:56:27]: [Step 5/5] [Build] $(UseIis) is True [15:56:27]: [Step 5/5] [Build] $(IisUrl) is http://localhost/DonorLauncherService [15:56:27]: [Step 5/5] [Build] $(IncludeIisSettings) is False [15:56:27]: [Step 5/5] [Build] $(_DeploymentUseIis) is False [15:56:27]: [Step 5/5] [Build] $(DestinationUseIis) is False [15:56:27]: [Step 5/5] [Build] Creating directory "C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\". [15:56:27]: [Step 5/5] [Build] Generate source manifest file for Web Deploy package/publish ... [15:56:27]: [Step 5/5] [Build] Creating directory "obj\Release\Database". [15:56:28]: [Step 5/5] [Build] Packaging into C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\DonorLauncherService.zip. [15:56:28]: [Step 5/5] [Build] Starting Web deployment task from source:manifest(C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\DonorLauncherService.SourceManifest.xml) to Destination:package(C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\DonorLauncherService.zip). [15:56:30]: [Step 5/5] [Build] Adding package (package). [15:56:30]: [Step 5/5] [Build] Adding child iisApp (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp). [15:56:30]: [Step 5/5] [Build] Adding child createApp (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp). [15:56:30]: [Step 5/5] [Build] Adding child contentPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp). [15:56:30]: [Step 5/5] [Build] Adding child dirPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp). [15:56:30]: [Step 5/5] [Build] Adding child dirPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\bin). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\bin\UpdaterConfiguration.dll). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\bin\UpdaterConfiguration.pdb). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\CheckLogin.ashx). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\CheckLogin.ashx.cs). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\DonorLauncherService.csproj). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Download.ashx). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Download.ashx.cs). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\GetVersionNotes.ashx). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\GetVersionNotes.ashx.cs). [15:56:30]: [Step 5/5] [Build] Adding child dirPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Models). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Models\DonorUser.cs). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Models\StaffLogin.cs). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Models\UserLoginInfo.cs). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Models\VersionNotesInfo.cs). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Operations.cs). [15:56:30]: [Step 5/5] [Build] Adding child dirPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties\AssemblyInfo.cs). [15:56:30]: [Step 5/5] [Build] Adding child dirPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties\PublishProfiles). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties\PublishProfiles\Debug.pubxml). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties\PublishProfiles\Release.pubxml). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties\PublishProfiles\StagingBDC.pubxml). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Properties\PublishProfiles\StagingEdge.pubxml). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\SqlMapper.cs). [15:56:30]: [Step 5/5] [Build] Adding child dirPath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Updates). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Updates\Installer.zip). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Updates\Launcher.zip). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Updates\Staging.ver). [15:56:30]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Updates\Staging.zip). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Updates\VersionNotes.xml). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\VersionNotes.aspx). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\VersionNotes.aspx.cs). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\VersionNotes.aspx.designer.cs). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Web.config). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Web.Debug.config). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Web.RC.config). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Web.Release.config). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Web.StagingBDC.config). [15:56:31]: [Step 5/5] [Build] Adding child filePath (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp\Web.StagingEdge.config). [15:56:31]: [Step 5/5] [Build] Adding child setAcl (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp). [15:56:31]: [Step 5/5] [Build] Adding child setAcl (C:\TeamCity\buildAgent\work\c5c610813c850c24\DC.Launcher\DonorLauncherService\obj\Release\Package\PackageTmp). [15:56:31]: [Step 5/5] [Build] Adding declared parameter 'IIS Web Application Name'. [15:56:31]: [Step 5/5] [Build] Adding declared parameter 'RenwebSystem_C-Web.config Connection String'. [15:56:31]: [Step 5/5] [Build] Adding declared parameter 'RenwebSystem-Web.config Connection String'. [15:56:31]: [Step 5/5] [Build] Adding declared parameter 'DonorConnect-Web.config Connection String'. [15:56:31]: [Step 5/5] [Build] Successfully executed Web deployment task. [15:56:31]: [Step 5/5] [Build] Package "DonorLauncherService.zip" is successfully created as single file at the following location: [15:56:31]: [Step 5/5] file:///C:/TeamCity/buildAgent/temp/buildTmp/drqk1akt.esr/bin/_PublishedWebsites/DonorLauncherService_Package [15:56:31]: [Step 5/5] [Build] To get the instructions on how to deploy the web package please visit the following link: [15:56:31]: [Step 5/5] [Build] http://go.microsoft.com/fwlink/?LinkId=124618 [15:56:31]: [Step 5/5] [Build] Sample script for deploying this package is generated at the following location: [15:56:31]: [Step 5/5] C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\DonorLauncherService.deploy.cmd [15:56:31]: [Step 5/5] For this sample script, you can change the deploy parameters by changing the following file: [15:56:31]: [Step 5/5] C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\_PublishedWebsites\DonorLauncherService_Package\DonorLauncherService.SetParameters.xml [15:56:31]: [Step 5/5] [Build] Successful. [15:56:31]: [Step 5/5] Populating package from contents of C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr [15:56:31]: [Step 5/5] Reading assembly name and version from C:\TeamCity\buildAgent\temp\buildTmp\drqk1akt.esr\bin\UpdaterConfiguration.dll [15:56:31]: [Step 5/5] Successfully built project. [15:56:31]: [Step 5/5] Validating package... [15:56:31]: [Step 5/5] Validated successfully. Writing package... [15:56:31]: [Step 5/5] Writing package... [15:56:37]: [Step 5/5] Publishing package to feed at http://build1.renweb:8080/nuget/... [15:58:15]: [Step 5/5] Published successfully. [15:58:15]: [Step 5/5] Process exited with code 0
lines to note:
[15:56:27]: [Step 5/5] [Build] Custom File Collection for Donor Running [15:56:27]: [Step 5/5] [Build] ..\..\deploy\Installer.zip;..\..\deploy\Launcher.zip;..\..\deploy\Staging.ver;..\..\deploy\Staging.zip;..\..\deploy\VersionNotes.xml [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Installer.zip to obj\Release\Package\PackageTmp\Updates\Installer.zip. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Launcher.zip to obj\Release\Package\PackageTmp\Updates\Launcher.zip. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Staging.ver to obj\Release\Package\PackageTmp\Updates\Staging.ver. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\Staging.zip to obj\Release\Package\PackageTmp\Updates\Staging.zip. [15:56:27]: [Step 5/5] [Build] Copying ..\..\deploy\VersionNotes.xml to obj\Release\Package\PackageTmp\Updates\VersionNotes.xml.
but the files are not included in the nuget package uploaded to the feed.
Comments
the ..\..\deploy\*.* files are being logged as part of the legacy web deploy package still being built, but not included in the nuget file being built by rgpublish.
Have you tried packaging the folder being built instead of the csproj file? http://documentation.red-gate.com/display/DM2/Using+RgPublish.exe#UsingRgPublish.exe-Example:publishingadirectory
This should include the files you want, which I don't think RgPublish is smart enough to read are being included from your csproj file.
Thanks,
Sean
this is inelegant as I have to maintain it separately from the csproj but it works. Wish I could specify files in addition to (as opposed to instead of) what's in the csproj but I understand that it is a limitation of nuget, not red gate.