msbuild

Automated Publish of Developer work using cc.net

I want to build a developer build project and then needs to publish it to the server and After a successful publish need to build my test project against that developer publish. Basic idea is to run this process whenever any developer commits something on Svn. Currently I am using CC.net and MSBuild. Any one ahaving idea how to accompl...

Is it possible to install c# compiler w/o Visual Studio?

I want to build projects from command line. Is it possible to deploy c# compiler without installing Visual Studio? ...

How programmatically build InstallShield msbuild task on win2008 x64?

Hi. I have a problem using MSBuild and InstallShield on Win 2008 Server x64. I tried to build InstallShield project using MSBuild task which InstallShield team provided and they works well if I run msbuild from C:\Windows\Microsoft.NET\Framework\3.5\ but when I try to run it from C:\Windows\Microsoft.NET\Framework**64** \3.5\ I`ve got ...

Visual Studio Build Time

hi, i am building a solution with approximately 100 assemblies that is taking a considerable amount of time to compile. I would say in the realm of minutes per assembly. This is in contrast to another product also with 100+ assemblies that will take seconds to move through each one. In both cases there are complex dependencies and multi...

Could not get dependencies for project reference

I have a C# solution with a website project and a C# library. When compiling the solution, the website gives the message: Could not get dependencies for project reference 'MyLibrary'. This does not stop the wbsite compiling and running until I try and build it with a TFS build, when this error message fails the build. What does this m...

VS2008 devenv not closing, keeping files from being built?

Hey guys, have you guys run into this behavior, and if so, how have you gotten around it? Basically, what's happening is this: I'll have a VS2008 instance running, pop into another VS project in a new instance, and then close the new instance. After that, every once in a while VS will complain that "File is open in another window, woul...

MSBuild: Copy files (if changed) and then do an action (only if files were updated)

In MSBuild I can use the Copy task to copy files from one location to another. I can also use the SkipUnchangedFiles property to specify that files should not be copied if they have not changed. Is there a standard pattern for predicating a follow-up action on the condition that one or more files were copied? For example: Copy any u...

Web Deployment Projects - Remote IIS Server

Background In the spirit of continuous integration, I'm trying to automate our deployment process using a Web Deployment Project. Mostly, this has been painless. Most options were baked in and those that weren't were easy to add through the MSBuild XML interface. However, I cannot seem to find an option for deploying to a remote IIS ...

Any FOSS alternatives of MSBuild Sidekick?

I've been playing around with MSBuild lately and it seems like a really powerful framework. However, the editing of the projects in VS2008 seems like an after thought. I saw that there is MSBuild Sidekick, which looks fantastic. So are there any FOSS options? FYI, I know that NAnt is very popular, but I am trying to stick to MSBuild....

[MSBuild] How to programatically list all properties defined?

Hi, I'm looking for a way to access all the Build properties defined while executing MSBuild. I have a configuration file. I want to modify the Properties in the configuration file and copy it to a new location. Is there a way to do it? ...

How to add files created in a custom msbuild task for build actions later?

I am generating minified javascript files using a custom msbuild task. This action is done "BeforeBuild". I wish to include these generated javascript files as an "EmbeddedResource" after they are generated. How do I do this? ...

Hudson Continuous Integration Server with .Net 1.1

Has anyone successfully used hudson to build .Net 1.1 Projects? If so, can you share the configuration. I am having trouble. Hudson uses MSBuild which was introduced with .Net 2.0. I found MSBee which is a MSBuild toolkit for 1.1 but so far I have not got it to work with Hudson. I point Hudson at the 2.0 MSbuild after installing MSBee a...

MSbuild Publish to a specific directory using batch file

Follwing is the batch file for doing a publish to a publish directory @echo off start /b C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /target:publish /p:SolutionDir="C:\cc\ttr\code\Com.IT.sln" /p:PublishDir="C:\cc\ttr\code\deploy\" /p:Configuration=Debug It is not publishing it. ANy idea why? ...

Publishing a website using msbuild

Hello, I would like to publish a website using msbuild. Since I have a website and not a web application project, how can I go about this since I do not have the .csproj file and msbuild expects a project file as input or you can execute it in a folder with a project file. My solution file contains multiple websites that do not have .cs...

MSBuild MSBuildCommunityTasks Task Time

I have a MSBuild project and I want the current date to be added to a zip file that I am creating. I am using the MSBuildCommunityTasks. '' '<'Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"'/>' On the website http://msbuildtasks.tigris.org/ I can see a task called time. I hav...

Honoring exit codes from batch files invoked by msbuild

I have a batch file that is using the exit command to return an exit code. This batch file may, in some cases, be invoked interactively from a commandline, or in other cases, may be run as part of an MSBuild project, using the Exec task. If I use exit %errorlevel% within my batch file this works well and MSBuild sees the error code, h...

How to get public token in ms post event macros

I want to create a post build script that copies the generated pdb into the gac folder, like this: copy $(TargetDir)$(TargetName).pdb C:\Windows\assembly\GAC_MSIL\$(TargetName)\?Public Token? but i need the public token of the currently build project, is there a way to get this? ...

Are There Any Best Practices for Writing Custom NAnt, Ant, or MSBuild tasks?

I'm in the process of writing a custom task for NAnt. I've been basing how I write the code based on some examples I've found on the Internet and by looking at the source of some other tasks for both NAnt and Ant. With that being said, are there any guidelines or best practices for writing good tasks for build managers like NAnt, Ant, ...

Does MSBuild know if a project needs to be recompiled?

First, I have a base assumption from watching Visual Studio compile things with its default .*proj files that, if you build the same solution twice in a row, it detects that nothing has changed and seems to fly through the solution build. Does this mean it knows that nothing was changed in a project and doesn't have to make a new DLL ou...

How do you define a Makefile-style variable in a solution to be used in multiple projects (VS 2008)?

I am working in a Visual Studio 2008 solution with multiple C# projects and some C++ projects and want to use post-build events to execute some 3rd party vendor command line tools. These post-build events are needed in several projects. I can hard code the path names and other files needed on the command line, but I really would prefer...