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
0
votes
0 answers

Is there any MsBuild property $(???) for Unit Test executions?

I am trying to assign a condition to a "Target", With the intention of evaluating whether the compilation is produced by the test run or not img Run All Tests img Singel Test But, I do not know what property to use $(?????)
0
votes
1 answer

.Net Build server tests fail because a dependancy can't be found

I'm building a Jenkins build server for a .Net application. It's based on ASP.Net MVC 5, and has tests through NUnit. One of my testing projects Errors out for all the tests on the build server. 1) SetUp Error : project.Test.Area.Test_Name SetUp…
IronSean
  • 1,520
  • 17
  • 31
0
votes
2 answers

Auto-deployment with continuous integration of .NET CORE fails because it cannot modify the file 'xxx.exe'

I have created a new ASP.NET Core Web Application. I'm using TFS (2015 Update 2) MS Build process to build and deploy my application to my Dev/QA server. I'm running my code with a Kesrel/IIS configuration on a window server. My build Steps are:…
0
votes
1 answer

MSBuild isn't resolving the correct path from an imported file

I'm having an issue with MSBuild 4.0 not resolving a path correctly in one of my imported MSBuild files. ProjectOne.csproj at the very beginning of the file imports GenericProject.proj. GenericProject.proj then goes on to import the…
Zerodestiny
  • 196
  • 3
  • 10
0
votes
1 answer

Passing properties to MSBUILD Task

I am trying to call msbuild task for all the project files with properties. I call the msbuild task four times with hardcoded configurations and platform combination. Something like
Kamal Deka
  • 148
  • 1
  • 14
0
votes
1 answer

msbuild copy entire folder with same folder name

I'm trying to copy entire folder located in different places in TFS. I have the following :
danbord
  • 3,605
  • 3
  • 33
  • 49
0
votes
2 answers

Replacing entire node using web.config transforms resulting in error

I can't quite figure out what I'm doing wrong here. I have a node in a web config: ...
Liam
  • 27,717
  • 28
  • 128
  • 190
0
votes
1 answer

MSBuild Copy task + batching on correlation metadata

I am trying to build an MSBuild target that is to take a certain file in a list of directories, and then copy that file with a different name into the same directory. The "destination" name is directly dependent upon the directory. Let's illustrate…
MarioDS
  • 12,895
  • 15
  • 65
  • 121
0
votes
1 answer

Files Include/Exclude based on subfolder name

I have the following file…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
0
votes
3 answers

AllowedReferenceRelatedFileExtensions not working/recognized in build

I am trying to ensure that the .dll.config file generated in a reference project is pulled into the parent project's /bin directory during a build. I've read here and here about using the AllowedReferenceReleatedFileExtension setting in the parent…
Dave Novelli
  • 2,086
  • 4
  • 32
  • 42
0
votes
3 answers

MSBuild How to pass same task to multiple projects

I am wanting to run the same task on multiple projects from one build file without having to copy the task to each project file. I am getting all project files in my solution and:
garethb
  • 3,951
  • 6
  • 32
  • 52
0
votes
4 answers

How to execute a MSBuild copy operation only on the build machine?

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…
Lernkurve
  • 20,203
  • 28
  • 86
  • 118
0
votes
2 answers

NUnit Extension Pack task stop after failed tests

I am running msbuild nunit task from extension pack that has 1 test which fails:
nerlijma
  • 935
  • 1
  • 9
  • 24
0
votes
3 answers

Building a solution with multiple projects and multiple configuration

Visual Studio 2010 Premium, Native WIN32 MFC Project (no .net project in solution). We have a complex solution with 35 projects. We have many clients for that product and what we normally do was to create a separate configuration for each client.…
0
votes
2 answers

Easiest way to deploy my website using Visual Studio 2012 and IIS 6/7

What's the easiest way to deploy my website as part of my build definition? I'm using Visual Studio 2012, TFS 2013. I have PowerShell at my disposal and open to making this an easy process. It would be nice if I can pick any target machine and my…
Rod
  • 14,529
  • 31
  • 118
  • 230