Last post Jul 29, 2015 08:51 AM by LegacyOfHerotWork
Jun 01, 2011 10:02 AM|miroslavsekera|LINK
at the MSDN
there is described the way how to "specify that a package should be created every time I build a solution".
that should be acomplished by adding the following to the csproj file
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<!-- Additional settings -->
however, it does not work.
So my question is - how should I modify the *.csproj file so that the web deployment package is created automatically after every build?
Jun 02, 2011 04:13 AM|qwe123kids|LINK
Where I Put Most of Build Script..
Project --> properties --> Build Event
and put Scripts In Eithere Pre Build or Post Build
Jun 02, 2011 04:30 AM|miroslavsekera|LINK
thanks, but I dont want to perform this with the build events - I just need to setup the "Package/Publish" web at the end of build according to the dosumentation. At the mentioned MSDN doc is nothing about the postbuild events.
Sep 30, 2011 12:12 AM|sayed.hashimi|LINK
Hi the documentation is incomplete. You must specify these properties
before the <Import declaration for Microsoft.WebApplication.targets
If you want to create a package even when you are building inside of Visual Studio then you must employ a different techinque. We need to manually inject the Package target into the build process. To do this define the follwoing property:
Sorry for the consusion, I have asked the tech writer to update that document.
Nov 29, 2011 05:02 AM|N1MBL3|LINK
How can I make this work with Team Foundation Build? I have added the <PropertyGroup><BuildDependsOn>... and that works fine when you build locally but when TFB builds my solution it shows me circular dependencies errors:
Unhandled Exception: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: MSB0001: Internal MSBuild Error: Global Request Id 19 has not been assigned and cannot be retrieved.
Jul 29, 2015 08:51 AM|LegacyOfHerotWork|LINK
Its now 2015. I'm just trying to upgrade our solution from VS2010 to VS
I've applied VS2013 Update 5 and now the build process knows about our setup project (VDProj). I'm trying to create a package based on a pubxml definition, which replaces the old web deployment project.
I'd like to have VS (on my desktop) create the package when I do a release | anyCPU build - then I can test it without touching the build server..
I'd also like to use that on the build server, via the TFSProj file, and have the VDProj pick up the deployment package, and include it in our MSI (the MSI also includes documentation, desktop components & stuff).
I can build the package in VS2013 by right button click...Publish and choosing the pubxml, but I cant persuade the "normal" build to create it.
I've added the section
after the <Import for Microsoft.CSharp.targets, as the updated docs say, and I've placed the DeployOnBuild further up:
'$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
a squiggly red line under DeployOnBuild
However this does not create the package when I click Build on the VS menu.
Also how can I specify WHICH pubxml to use - potentially I could have several?
(I'm not a build guy, so I'm starting from ground zero)