msbuild

NullReferenceException at Microsoft.Silverlight.Build.Tasks.CompileXaml.LoadAssemblies(ITaskItem[] ReferenceAssemblies)

Hi, I updated my Visual Studio 2010 to the version 10.0.30319.1 RTM Rel and start getting the following exception during the build: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Silverlight.Build.Tasks.CompileXaml.LoadAssemblies(ITaskItem[] ReferenceAssemblies) at Microsoft....

Force a tool version with MSBuild from inside the file?

I've moved my project over to .NET 4.0 recently, and am having some trouble running the ASP.NET compiler inside of my build. This doesn't work because MSBuild by default uses an old tools version when running the ASP.NET Compiler. I've been able to address it my specifying the tools version explicitly (yes, I'm running MSBuild 4.0) lik...

How to get NHProf reports in TeamCity running MSBUILD

I'm trying to get NHProf reports on my integration tests as a report in TeamCity I'm not sure how to get this set up correctly and my first attempts are unsuccessful. Let me know if there is any more information that would be helpful... I'm getting the following error, when trying to generate html reports with MSBUILD (which is being ...

Embeding a licenses.licx file into an exe using MSBuild via a NAnt script

We have an automated build setup using TeamCity for our application. This application uses Active Reports 6, which use a license.licx file for licensing. When I build using Visual Studio on the build machine, everything is cool and the license is recognized when I distribute my application to others. The problem is that our build serv...

Xap file contents changes if built in Visual Studio or build server

I'm using MEF with my Silverlight 4 app to dynamically load xap files. To optimize this process, I've removed various assemblies from my xaps since I know they've already been loaded by the base xap. This reduces the size of my dynamically loaded xaps. I accomplished this by setting the "Copy Local" flag for each assembly reference to "f...

What is the MSBuild equivalent to ant's -project-help?

I come from an ant background, and I'm starting to use msbuild. I want to create a .proj file with targets for clean, compile, deploy, etc. In ant, I would expect my user to run ant -project-help to get a list of the targets with their descriptions. There doesn't appear to be anything like this with msbuild, so I was thinking of setti...

Where does MSBuild store it's options, and how can I change them?

We have a large project at work, under source control, including an MSBuild file to run the build. Recently, the build has stopped working on my machine (I get errors saying that 'zzz' is ambiguous in the namespace 'yyy'). The same MSBuild file is working fine on both the build server and my co-workers machines. I have tried cloning a...

MSBuild script fails but produces no errors

I have a MSBuild script that I am executing through TeamCity. One of the tasks that is runs is from Xheo DeploxLX CodeVeil which obfuscates some DLLs. The task I am using is called VeilProject. I have run the CodeVeil Project through the interface manually and it works correctly, so I think I can safely assume that the actual obfuscate ...

SubWCRev.exe in msbuild to find local modifications

hi, i want to execute SubWCRev.exe in msbuild to check for local modifications .if local modifications found then i want to display message on command prompt. please tell me how can i use this. thanks ...

How to use MSBuild to create ClickOnce files that match those created by Visual Studio

I am trying to use MSBuild in a TFS Build file to create click once files for my application. According to MSDN (http://msdn.microsoft.com/en-us/library/ms165431.aspx) it seems that the project file's click once settings should be used unless you override them with property arguments on the command line. However, even though I have spe...

Using TFSBuild to publish ClickOnce files that include prerequisites

I have declared an MSBuild tag in my TFSBuild project in order to publish ClickOnce files for my project. WSE 3.0 and .Net 3.0 are both pre-requisites for the application, so in Visual Studio I have ticked those as pre-requisites. When I build from Visual Studio, it creates a setup.exe file that I can publish to my web site. When you ...

Which tool / technology: System management for databases and dependent services

A follow-up on this system management question: Since I probably will not get much feedback on serverfault I'll give it a try here. My main concern is to reflect the dependencies between the databases, services ans tasks/jobs I'll have to manage. Besides considering Powershell, I even thought about using MSBuild because it would allow...

MSBuild Newbie questions

Hi Guys, I am new to MSbuild so some of my questions could be stupid.Excuse me for that. 1) I created some of the new build definitions on my local machine. Do I need to create them also on my build server. 2) Currently my build is failing.Which log file I need to look to find out more and where to look(location). ...

MsBuild never end

<Target Name="RunWebServer"> <Exec Command='$(WebServer) /port:3811 /path:$(Path)' /> </Target> command is actually this command: "C:\Program Files (x86)\Common Files\microsoft shared\DevServer\9.0"\WebDev.WebServer /port:3811 /path:"D:\PROJEKTI\eMedicine\eMedicine\eMedicine" but when i start build.xml D:\PROJEKTI\eMedicine...

How-To Integrate IIS 7 Web Deploy with MSBuild (TeamCity)

How-To Integrate IIS 7 Web Deploy with MSBuild (TeamCity) ? ...

Visual Studio 2010, how to build projects in parallel on multicore

I have a big solution with more than 40 projects. Almost half of them are test projects. In my project we use both Code Contracts, Code Analysis, Style Analysis. I want to be able to build the projects that are not dependent in parallel on my quad core CPU. How can I setup msbuild to build the projects in parallel? ...

requestvalidationmode causes issue with build script

I added requestvalidationmode=2.0 to my page header. Everything works great. However when I try and build this on my build server it crashes with this message: errorASPPARSE: Error parsing attribute 'requestvalidationmode': Type 'MYASPFORM' does not have a public property named 'requestvalidationmode'. Any ideas on what could be...

What is the impact of upgrading MSBuild to VS2010 for projects targeting .NET Framework 2.0 and 3.5?

I’m working on the build process for a VS 2010 solution and some projects within it target the .NET framework 4.0. As far as I know, to have this type of solution built by TFS 2008 we will have to change the version of the MSBuild.exe file used by the build agent – modifying the TFSBuildService.exe.config file, pointing MSBuildPath entry...

C#: VS.NET: Change name of exe depending on conditional compilation symbol

Can you tell Visual Studio to output a different name of an exe file depending on if a specific conditional compilation symbol is set? ...

What is the difference between 'DependsOnTargets' and 'AfterTargets' ?

I can not distinguish these two. Please help! ...