An MSBuild project copies its output to a directory on a server. Each day, only a few files change and most have an older creation date.
I can FTP this to a remote server with MSBuild tasks. But how can I do this FTP and only copy the few files that have changed?
...
Hi,
In my msbuild script I have to clean a directory, which has some hidden readonly subdirectories. I was using the DeleteTree task, but it fails on these. What is the best way to delete a directory recursively regardless of file attributes?
...
I need to include a single quote in an item transformation, like so:
<DatabaseFileNames>@(DatabaseFiles->'%(PhysicalName)', '','')</DatabaseFileNames>
This, however, spits out a rather cryptic error:
error MSB4095: The item metadata
%(PhysicalName) is being referenced
without an item name. Specify the
item name by using
%...
I have a .NET project with a Rake build script. Rake calls msbuild.exe to do the actual compilation. When I configure a TeamCity 5.0 build using the Rake runner, compilation errors are not recognized as such by TC. When a compilation error occurs:
The build does abort and is flagged as a failure;
The log overview does not contain the ...
We are migrating from mstest to NUnit. The first step was to migrate all our UnitTests projects which was accomplished using the following msbuild task:
<Target Name="RunTests">
<!-- The location of the necessary tools to run nunit tests -->
<PropertyGroup>
<NUnitToolPath>C:\Program Files\NUnit 2.5.2\bin\net-2.0</NUnitToolPath>
<...
I have a web application that lands on a shared hosting platform for my company. That platform has global header/footer code that all applications on the platform consume using include files. I can't change how the header files are structured and how they are to be cosumed--that is dictated to me by another group. I have a build serve...
Hi, I'm trying to use Nant to compile an ASP.NET MVC app, so far my build script just runs ms build and runs some other tasks, however I want my compiled files to be put in a "build" directory, how can I tell msbuild where to put the compiled files?
...
Dear ladies and sirs.
My msbuild targets file contains the following section:
<ItemGroup>
<Targets Include="T1">
<Project>A\B.sln"</Project>
<DependsOnTargets>The targets T1 depends on</DependsOnTargets>
</Targets>
<Targets Include="T2">
<Project>C\D.csproj"</Project>
<DependsOnTargets>The targets T2 depends on</D...
Hi!
I have been using CC.NET for a while and decided to try Team City.
The initial and default configuration is very easy, but how do I swap configuration files after code is checked out and before unit tests are run.
I am using TFS, NUnit.
1. When working locally I have configuration file pointing to local server.
2. On the build se...
Our process for creating a new development (get latest, setup db, setup IIS directories with permissions) environment has got a little complicated and I want to automate it.
The only bit I am stuck on is creating an IIS Virtual Directory for the WCF service layer. We develop with windows XP (IIS 5.1) but will be moving to Windows 7 (I...
My company is having trouble figuring out the best way to manage our builds, releases, and branches... Our basic setup is we have 4 applications we maintain 2 WPF applications and 2 ASP.NET applications, all 4 of these applications share common libraries, so currently they are all in one folder /trunk/{app1, app2, app3, app4}.
This make...
I'm creating an MSBuild task that will read the registry for a specific registry key. If I write the same line of code (see below) in a console application, it returns the expected result, but when it is within the MSBuild task, it returns nothing.
Return Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Setup\", "...
We're looking at using ClickOnce deployment as a means of distributing our application, however, due to problems with bandwidth, we would need to deploy the application to multiple servers on the network rather than just one.
I work for a bank and am wanting to roll out a WPF client to all of our branches, but the branch network is to...
Hi all,
Q. We're looking for a way to automate
build process, run test cases and
store build results.
A problem could be raise as the application on which we want to setup this process is an ajax application -- a one page operation application highly rely on JavaScript. The QA team is using QTP to automate their testing.
Q...
Hi all,
I have a solution sln and several projects (vbproj, csproj). I have web project, and I need automatize Publish (like menu option in VS2008).
Can I replicate VS2008 "Publish Web Site" from command line ??
any help about it, please ?
Thanks in advanced. Greetings.
...
Hi all,
i have a solution sln, with several projects (vbproj, csproj), and I have Windows Application, and I use ClickOnce for publish it.
Now, I need automatize the Publish option using msbuild or another good solution (cmd, vbs, bat scripts).
Any help about it ?
thanks in advanced, greetings
...
Hello,
I am trying to generate a release build with no pdb files generated. I have seen numerous posts that suggest right-clicking on the project, selecting Properties, going to the Build tab and then to the Advanced... butoon and changing Debug Info to none. This works and all, but I need to do this for a build of ~50 solutions which...
Hi everyone,
I'm trying to make a batch file to publish the few ClickOnce application we have in one click. I'm using msbuild for that, and as an example the below command line shows how I'm doing it:
msbuild MyApp.sln /t:Publish /p:Configuration=Release /p:PublishUrl="C:\Apps\" /v:normal > Log.txt
when I run the above command it bui...
Hi everyone.
About 2 months ago I overtook building proccess in current company. Even though I don't have much knowledge of it, I was the only with enough time, so I didn't have much choice.
Situation is not that good, and I would like to do following:
Labeling files in SourceSafe with version (example ProjectName PV 1.2)
GetFiles ...
On site http://msbuildtasks.tigris.org/ mentioned that Nunit task Run NUnit 2.4 on a group of assemblies
Did anyone tried to run this task with Nunit 2.5 or later ?
Was some problems found with using Nunit 2.5 or later version ?
Thanks
...