msbuild

MSBuild in a Powershell Script - How do I know if the build succeeded?

I am writting a build script with Powershell. The scripts performs various operations such as getting the latest source code off the SVN, backups, etc., and builds the solution using MSBuild: cmd /c C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe "C:\Dev\Path\MyProjct.sln" /p:Configuration=Release After this instruction, I only w...

Define an Automate Build process for a Windows Application which is using SVN as a Source Control

Hi, I need some help from you guys. Let me explain you what we were doing, first: We were working on a Windows Application and all of us are integrated with Team Foundation Server. We are done with all application features so now what we are working on is the list of defects that are reported from QA. QA list all their issues on Mercu...

Need help converting Visual Studio 2008 MSBuild Script to VS2010

I have a simple MSBuild Script that looks like this. ... <Target Name="CompileSolution"> <Exec Command="&quot;$(VS90COMNTOOLS)..\IDE\devenv.exe&quot; ..\MyProject.All.sln /build" /> </Target> ... Now I migrated the propect to Visual Studio 2010 and the command fails. ... <Target Name="CompileSolution"> <Exec Comma...

Compile Delphi 2010 Project with MSBuild

Hi Everybody, I am trying to compile a Delpho 2010 project using the msbuild tool. Unfortunately when firing the command msbuild Delphi.dproj it returns the error code MSB4040, which means that there is no target in the project. So far a RAD Delphi 2010 environment is still installed on the machine. Does anybody know which files do ...

Overly verbose output for Teamcity MSBuild Runner

I'm kicking of an msbuild script using the Teamcity msbuild runner. Unfortunately, I'm finding that the build log output is too verbose, specifically each message is prepended with: [08:52:34]: [Project "SomeScript.msbuild.teamcity.patch.tcprojx" (CleanBuildAll target(s)):] (The script, teamcity extension, and task being run). I...

Signing assemblies with pfx files in MSBuild/Team Build/TFS

Hi, I Get this error when trying to build a project using Team Build (MSBuild) on TFS 2010 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1970): Cannot import the following key file: CCC.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install th...

TeamCity + WiX + MSBuild workflow suggestions needed

I've been working on the next step of my continuous integration project, which is to get TeamCity to build my application, automatically change the version number of all assemblies, and then create an installer. A little background first: I've been running TeamCity successfully for the past several months, and it builds my configuratio...

Can I get the success/failure of a task into a property if ContinueOnError="true" is used?

I'm executing a task in msbuild: <MyTask ContinueOnError="true" OtherParam="Cheese"/> <PropertyGroup> <MyTaskResult>????how do I set this????</MyTaskResult> <PropertyGroup> I want to get the result of MyTask into a property (it's Execute method returns a bool) so I can test it and conditionally do stuff. Is this possible? Thanks. ...

MSBuild task failing - Not running in Single Thread Apartment

I have a custom MsBuild task that sends an email (does some special stuff while sending the email -like formatting content). Background: Using TFS 2008 Build server is a separate machine using TeamBuild 2008. This custom task used to work fine until I installed .Net 4.0 on the build machine and setup the build service to use the new ...

How do I modify the "File Description" of an executable using msbuild (or command line)?

I have a 3rd party app that is generating an executable for me, but it's putting its own name into the "File description" and "product name" details of the executable. When I sign these with authenticode, it causes the user prompt to show the 3rd party app name rather than my own, even though it's signed with my company's certificate. ...

TeamCity: Failed to detect target in MSBuild project

Hi Everybody, I have some problems with the TeamCity MSBuild replacement I think. I've tried to compile a Delphi 2010 Project (MSBuild compliant) with NAnt using the MSBuild task (NAnt Contrib). Everything works fine, if I do it without TeamCity on the console. If I try it with TeamCity, I get the following error message: Failed to ...

Team Build: Publish locally using MSDeploy

I'm just getting started with the team build functionality and I'm finding the sheer amount of things required to do something pretty simple a bit overwhelming. My setup at the moment is a solution with a web app, an assembly app and a test app. The web app has a PublishProfile set up which publishes via the filesystem. I have a TFS bui...

need silverlight 3 development ...

At work, I am on a sizable development team. Our current project is in Silverlight 3. We cannot upgrade right now due to all the regression testing (company policy) Well, our LAN dept worked on my dev box and they uninstalled silverlight 3. Now the project will not load due to : The imported project "C:\Program Files\MSBuild\Microso...

TFS 2010/Msbuild fails, StackOverFlowException

Hi! I'm having trouble with an upgraded 2008 build. I'm using the Upgrade template. Everything builds fine, but when I get to GetImpactedTests it crashes. Anyone experienced something similar? Can I turn off GetImpactedTests? Can't find a property for it. TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '0'; actual...

converting gant build scripts into ant scripts

I am pressmuming (without really knowing) that "gant" is superior to "ant", especially when building grails applications. I have some old, inherited, grails apps using ant. Is is possible or easy to convert existing build.xml files into gant build scripts? ...

How to run CMake unit tests with MSBuild.exe

Upon generating a Vistual Studio project from a CMake build file, CMake generates a solution with a sub-project called RUN_TESTS.vcproj that runs all unit tests as a post build action. How can you invoke the RUN_TESTS from the command prompt using msbuild.exe? Running msbuild RUN_TESTS.vcproj from the build directory does not work. Un...