I have an automatically generated file (generator not created by me) which, as its first line, contains the date when it was generated. To simplify my life with Subversion, I want to create a version of this automatically generated files which does not contain this first line.
My guess Is I have to do something like
<ReadLinesFromFile ...
We're using Cruse Control to manage our build process.
AS we convert vs2008 projects to vs2010, we're leaving the target framework set at 3.5 for web and class library projects.
At this point we're not going through and converting all our solutions to vs2010; not if we don't have to.
I recently updated the MSbuild project files that cr...
I'm a complete newbie to MSBuild and I want to use it over NANT.
What I'm wanting is to run a build in say debug mode and to use app.configA, then in Stage use app.configB and in Production use app.configC.
I presume this is all doable but can anyone point me in the direction on how to set this up?
...
I have a solution that is using the integration steps found on the ANTLR site to generate cs files from an ANTLR Grammar. Everything works as expected when running in Dev Studio, however, when building in MSBuild, the dependent projects are failing because MSBuild is treating the generated files as project references (i.e. assemblies). ...
Hi all
I'm currently using MSBuild+Community Task's to change the AssemblyVersion, AssemblyFileVersion + more in AssemblyInfo.cs, via TeamCity and it works like a charm :).
However I would like to commit the modified AssemblyInfo.cs back to the repo.
How can I do that?
I tried with the "SvnCommit" task from Community Tasks, but on th...
I want to perform some copy actions on the build machine (but not on the developer machines)
after a build is performed and
before the integration tests run.
How do I do that?
Perhaps, I should split the question up into sub-questions and give some examples.
Question 1: What do I need to do so that the MSBuild script detects that ...
Hi
I am trying to use the BuildInParallel option on MsBuild.
I have an NAnt & NAntContrib script e.g.
<project xmlns="http://nant.sf.net/release/0.90/nant.xsd" name="Css Manager Solution Build" ToolsVersion="3.5" default="deploy">
<target name="clean" description="Delete all previously compiled binaries.">
<delete...
For the life of me, I cannot find where this value is actually set. It SHOULD be pointing at C:\Program Files\MSBuild, but on our build box, it's pointing at C:. How can I change this?
Thanks.
...
The problem we are experiencing was noticed in msbuild. We have an executable in a task that is throwing a FileNotFoundException. This LoadData.exe uses NHibernate to initialize data, so there is an NHibernate.config file in the root of the project.
The properties on the config are set to Content/Copy Always. I can confirm that, on buil...
Some of our TFS users have some automated builds that are updating version numbers in a tree that is covered by a check-in policy. The workarounds so far are for the automated build to tag the check-in with a dummy workitem or to override the policy. Is there any better way to handle this? If it means hooking up a more advanced check-in ...
Hi,
I am using nant to compile and publish my web applications and am unsure whether to use nantconribs msbuild task or aspnet_compiler.exe.
I have a number of projects in my solution for business logic and data access.
When msbuild runs it compiles the solution and outputs to my /dist/ folder.
All the dlls are in the root of this fol...
The projects are broken down in most cases to 4 sub-projects
Common mostly dependency free code
Control the user control or dialogs for this component/feature
Service the code to fetch from the db or mainframe
Test - any tests written
Many of these little 4 sub-project features/components have dependencies on other components but tho...
We are trying to use Static Resources within a 100% F# Silverlight application. Embeded within the XAML of the referencing control, everything works. But once I pull them out I am a loss. C# applications set the build action as: MSBuild:MarkupCompilePass1
Two questions
1) does VS 2010 support this tool yet in f# silverlight projects...
I am using the reportviewer control from VS 2010 to create client side reports (rdlc). Everything is working fine on my development machine, and when I manually compile (via VS2010) and manually deploy to a test machine that doesn't have development tools installed.
In order to get the test machine to work (without installing VS2010 or...
I'm working on a VS plugin for handling a new test type. One of the things we want to do is add an MSBuild import to the project file when one of our tests is in the test project, to run our custom build tasks.
I can add the import element by using Microsoft.Build.BuildEngine.Project.Imports, but if I save the project file via the Buil...
We are facing a strange problem. We have a user control written in WPF and we have added a click event handler in the xaml file. On local system it works as expected. But when the build is generated on the server (where we have the code repository), we notice that the resultant build has a bug. The bug is that the click event is generate...
Hello.
I am trying to use MSBuild to build a solution with a specified target platform (I need both binaries, x86 and x64). This is how I tried it:
C:\WINDOWS\Microsoft.NET\Framework\v3.5>MsBuild SolutionPath\Solution.sln /t:Rebuild /p:Configuration=Release /p:Platform="x86"
However the build always fails if the platform is different...
Trying to compile web deployment project (created in vs2005) in vs2010/msbuild.
Getting
Microsoft.WebDeployment.targets(1311,7): error MSB4057: The target "PrepareForBuild" does not exist in the project...
...
I am using visual studio 2010. I have a website project that I would like to build a website deployment package every time I build a the project. Basically I am looking for some example of a post build MSBuild command that will basically do the same thing as the "Build Deployment Package" option from the right click menu of the website.
...
I am using MSBuild Extension Pack 4.0 to do my local development deployment. When using the class MSBuild.ExtensionPack.Computer.Registry to read a registry key (to get an installation directory) it fails saying the path is invalid. I believe this is due to msbuild being a 32-bit process, so it can only see:
HKEY_LOCAL_MACHINE\Software\...