I have to Zip my folders and subfolders Using MSbuild, I was looking at the MSBuild Extension pack, and tried this
<ItemGroup>
<ZipFiles Include="\Test\Web\**\*.*" >
<Group>Release</Group>
</ZipFiles>
</ItemGroup>
<MSBuild.ExtensionPack.Compression.Zip TaskAction="Create" CompressFiles="@(ZipFiles)" ZipFileName="$(WorkingD...
Hi,
I am looking for a build system (working on ms windows) that has good support for parallelization of tasks/targets (or whatever you call them). To be more specific - during build (that is initiated on MS Windows machine) I need to copy source files to a number of different machines (which are not necessarily running Windows) and st...
When I upgraded my Web Deployment Project from VS2008 to the VS2010 beta version, I was able to execute the build locally on my development box. However, when I tried to execute the build on our TeamCity build server, I began getting the following exception:
C:\Program Files\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment....
I have an external DLL file that's needed at runtime. The problem is ASP.NET creates a temporary folder and the DLL gets left behind (see: http://support.dtsearch.com/dts0197.htm). I want to be able to stick this in source control and the next developer to be able to run it.
They suggest using regsvr32, copying the file to the PATH en...
Hi,
I've written a custom MSBuild script to be used with Team Build, as I am storing PHP in TFS and of course it isn't compiled. My custom script calls the CoreGet target to get the latest version of the files, and the copies them, ZIPs, them, and FTPs the ZIP archive to a testing server. All of that is working fine.
The problem I am...
The output file from our project build has gone from 6MB to over 75MB in text.
Diff'ing the last good build and the first time it blew up, there's a section in the output file like this in the latest:
Processing /ORDER options
External code objects not listed in the /ORDER file:
?onCallDisconnected@CallStateConnected@CallImpl@space...
I have a fairly large solution with several projects and multiple deployment projects (VDPROJ). I am in the process of automating builds using MSBUILD. I am aware of the limitation where I need to invoke Visual Studio (VS) in order to build the VDPROJ. I cannot switch to WiX at this time.
Currently I have a EXE task in my build scr...
I am improving the builds for an open source project which currently supports .NET Framework v2.0, v3.5, and now v4.0. Up until now, I've restricted myself to v2.0 to ensure compatibility, but with VS2010 I am interested in having real targeted builds.
I'm looking for some guidance on how to edit the MSBuild csproj/sln to be able to cle...
There are a few minor places where code for my project may be able to be drastically improved if the target framework were a newer version. I'd like to be able to better leverage conditional compilation in C# to switch these as needed.
Something like:
#if NET40
using FooXX = Foo40;
#elif NET35
using FooXX = Foo35;
#else NET20
using Foo...
I'm trying to get MSBuild 2010 to publish a web app to a specific location.
I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes.
For example: if I tell it to publish to C:\dev\build\Output\Debug then the actual web files end up at C:\dev\build\Output\Debug\...
In TFS 2008, I am trying to modify a build script (TFSBuild.proj). I get the following warning:
The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TeamProject' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.
Which is correct, The element Proper...
So I have a CommonAssemblyInfo.cs linked into all the projects in my solution and is dynamically generated by my rake/albacore scripts which is not checked into source control.
I also have a CommonAssemblyInfo.cs.local for use when there is no ruby available, mainly to be used by devs.
Is it possible to have a msbuild task or something...
I'm writing a program in F# at the moment, which I specified in the Visual Studio project setup to target .Net 3.5, this being the highest offered, on the theory that I might as well get the best available.
Then I tried just now running the compiled program on an XP box, not expecting it to work, but just to see what would happen. Unsur...
I use the TFS 2008 build facilities. I have a large MSBuild project (TFSBuild.proj) and I wanted to split it into a few files because it is becoming hard to maintain.
I found a strange behavior; when I extracted one of the targets (BeforeInitializeWorkspace) to a separate file and then imported it into the main *.proj file, it was not e...
Deploying a Web Application Project from VS2010 RTM causes an error in MSBuild. It complains that the PipelinePreDeployCopyAllFilesToOneFolder target cannot be found.
Is there any way to further diagnose this?
Thank you.
...
We already have build scripts that creates our web application folders very nicely. We create multiple folders for each environment, and then change the configs in those folders according to the environment.
How can we get the same results as what _CopyWebApplication does?
Example:
<MSBuild Projects="$(SourceCodeCheckoutFolder)\sour...
I'm labeling my assemblies using the CCNETLABEL environment variable and the SVN Revision number. The problem I am facing is as follows:
Assume ProjectA is dependent on ProjectB
ProjectA is at build number X and ProjectB is at build number Y
When ProjectA is triggered, ProjectB is built as well.
Because CCNETLABEL = X+1 my version l...
Vs2010 .net 4.0 targeted project if that affects the answers at all.
I want to delete the bin and obj directories and output a message for the path of what was deleted.
<Target Name="CleanOutputs" Condition="'$(MvcBuildViews)'=='true'">
<Message Text="Cleaning Outputs" Importance="high"/>
<RemoveDir Directories="$(OutputPath);o...
I read some of the questions about precompiled headers but couldn't find a direct answer to that.
I usually rebuild my entire Visual Studio 2010 solution.
One of the projects in my solution is a C++/CLI project.
I thought that using precompiled headers in that project will increase the speed of the compilation.
After some experiments...
Dear ladies and sirs.
I have a master.proj msbuild script which builds several projects using the MSBuild task.
Here is a typical example:
<Target Name="Log4PostSharp" DependsOnTargets="log4net">
<MSBuild Projects="Log4PostSharp\Log4PostSharp.sln" Properties="Configuration=$(Configuration)" />
</Target>
But, my problem is that if ...