Questions tagged [msbuild-4.0]

Third version of the MSBuild build tool (after 2.0 and 3.5), released as part of the .Net Framework 4.0. It is used by default by Microsoft Visual Studio 2010.

Third version of the MSBuild build tool adds support for property functions, new build extension mechanism, inline tasks, project multitargetting and a new API model.

315 questions
11
votes
2 answers

Create separate ClickOnce installs that can be installed together by changing assembly name with MSBUILD

I am using an MSBUILD script to create a publish, it looks something like this: msbuild ".vbproj" /t:Publish /p:Configuration=Release /p:ProductName=" - " …
test
  • 2,589
  • 2
  • 24
  • 52
11
votes
6 answers

Problems with new build server

After moving my build server I get the following error: C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.Common.targets (1682): Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime…
dexter
  • 7,063
  • 9
  • 54
  • 71
10
votes
2 answers

Building C++ project on a PC with Windows SDK 7.1 but without VS2010

I have a C++ project (some sort of a console 32-bit appplication) developed in VS2010, which builds just fine on my PC (Windows 7 32-bit). My PC has Microsoft SDK 7.0A installed, which I think comes bundled with VS2010. I try to build the project on…
AntonK
  • 1,210
  • 1
  • 16
  • 22
10
votes
4 answers

MSBUILD: Build Package including extra files

I've been having some serious challenges over the past week trying to implement the solution located at: http://blog.samstephens.co.nz/2010-10-18/msbuild-including-extra-files-multiple-builds/. It's based off of Sayed's implementation:…
Padawan Learner
  • 103
  • 1
  • 1
  • 6
9
votes
1 answer

How to access the msbuild command line parameters from within the project file being processed?

I need to get access to the msbuild command line parameters (the specified targets and properties in particular) from within the project file being processed in order to pass them down to the Properties of an task. My msbuild file uses a…
arathorn
  • 2,098
  • 3
  • 20
  • 29
9
votes
1 answer

How to debug a project file in MSBuild 12.0 / VS2013?

Tracing a project was easy in MSBuild 4.0 / VS2010, all you had to do was set registry key which enabled an msbuild /debug command line option. The debugger would launch and break at the start of the project file. MSBuild 12 introduces a new…
Paul Williams
  • 3,099
  • 38
  • 34
9
votes
2 answers

Is there a way to make msbuild write error output to stderr?

It appears msbuild writes all output (including error output) to standard output. Is there some way to have it write error output (what's normally output in red) to standard error instead? I'm writing a .NET application with a WPF and console…
Matt
  • 865
  • 2
  • 10
  • 16
9
votes
1 answer

MSBUILD : error MSB1008: Only one project can be specified in teamcity

I am trying to run MSBuild with TeamCity. I have a batch file and I pass into it parameters and the build works. When I try to run through TeamCity I get the error below [13:24:46][MSBuild output] Start MSBuild... [13:24:46][MSBuild output]…
Ismail
  • 923
  • 2
  • 12
  • 29
9
votes
1 answer

MSBuild ItemGroup with condition

I don't know if ItemGroup is the right type to use. I will get 4 different booleans that will be true or false depending on choice. I would like to fill up an ItemGroup with this "strings" depending on the true or false. Is that possible or what…
8
votes
3 answers

VS2010 rebuilds C++ project because of modified irrelevant files

As all of us already know VS2010 has got an major upgrade of its build system, which is based on MSBuild. According to MS representatives (see comments in Visual Studio 2010 always rebuild project after hibernation/restart of computer) MSBuild now…
AntonK
  • 1,210
  • 1
  • 16
  • 22
8
votes
2 answers

How to run application in azure emulator in development mode without visual studio

I need to involve some markup and javascript people to help development team on azure asp.net MVC project. Essentially what I need is for each person to run a local instance of the azure application to be able to make changes to content files…
achekh
  • 1,106
  • 7
  • 20
8
votes
1 answer

Run an MSBuild target only if project is actually built

I have an MSBuild file that builds */.sln files (builds all .sln files that exist). The build uses the Build target, so if no changes were made to input files, no project should be built again. I would like to execute some custom target only if a…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
8
votes
6 answers

SGEN : error : Could not load file or assembly (Exception from HRESULT: 0x8013141A)

VS 2010, win server 2003, .Net 3.5 solution, which were migurated from .Net 1.1 All projects in solution are Delay signed. The soluton can be build successfully for Debug, but always failed for Release with following error. SGEN : error : Could not…
Yadong
  • 411
  • 2
  • 5
  • 15
7
votes
0 answers

MSBuild and PSExec integration issue, no prompt output

We ran into a problem with integrating MSBuild with PsExec. In our scenario, we run PsExec within a msbuild build file. The PsExec command runs another MSBuild file on a remote server to perform a task which we'd like to see its output on ourside.…
Houman
  • 1,381
  • 1
  • 8
  • 10
7
votes
4 answers

how to rename for web deploy?

I have a web application project: As you can see, there are 3 robots.txt files - one for each environment. There're also 3 publish profiles. Now, for each pubxml I want to pick the correct "robots.xxx.txt" file and rename it to "robots.txt".…
niaher
  • 9,460
  • 7
  • 67
  • 86
1
2
3
20 21