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
4
votes
1 answer

'dotnet build' error after migrating dotnetcore project to 1.0.4

I've been trying to run the dotnet build command on a migrated .net core project (from 1.0.0-preview2-003131 to 1.0.4). I followed the steps for migrating the project mentioned here, and the solution builds using Visual Studio 2017. However, using…
Shubhang
  • 297
  • 1
  • 5
  • 13
4
votes
1 answer

Showing errors from a build-time tool with source file/line

My project has an MSBuild target which runs a tool which generated some files: If the tool detects some error in…
Jonathan
  • 6,939
  • 4
  • 44
  • 61
4
votes
1 answer

cl.exe hangs indefinitely while being invoked via MSBuild

I am trying to run MSBuild on my (mostly C++) projects (imagine a really humongous code base). Visual Studio 2015 is the toolset in question (Windows 7 SP1 and VS 2015 Update 2). Even with /m:1 (and thereby forcing it to use only one processor) I am…
ForeverLearning
  • 6,352
  • 3
  • 27
  • 33
4
votes
0 answers

How do I define a PropertyGroup with condition on whether an ItemGroup contains a particular item

I'm trying to get Resharper for c++ to work with our internal build system. Resharper needs to have all include folders defined statically (not part of any target), but we set up the include paths in a target which runs before the build. We have a…
Yngve Hammersland
  • 1,634
  • 2
  • 14
  • 28
4
votes
1 answer

How to manage npm install in a system without internet connection

I am facing challenges while creating package for all the clientside components of my project in a system which does not have internet connection (for windows). I have installed NPM for windows in the system. I need to manage the node_modules and…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
4
votes
2 answers

v12.0 folder not found in MSBuild

I am setting up Jenkins with MSBuild. I was getting the below error while building through jenkins MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" …
Midhun Murali
  • 2,089
  • 6
  • 28
  • 49
4
votes
2 answers

"OutputPath property is not set" error occurs only when calling MSBuild in CCNET

I've made an MSBuild project that simply does an msbuild task with our solution file as parameter. I've defined a BeforeBuild target where I set some properties, and a Build target that executes the msbuild task. I've confirmed that no errors…
LostInCCNET
  • 41
  • 1
  • 3
4
votes
2 answers

TeamCity MSBuild 4.0 Help

I need some help with my MSBuild file i created a while ago. All i want to do is build the solution, publish a project inside the solution and than copy the files to a directory At the moment when i set Teamcity to .net 4 msbuild, msbuild 4.0 tools…
Chris Kolenko
  • 1,020
  • 17
  • 32
4
votes
0 answers

dll not being copied to output directory, even with Copy Local flag (true)

We have a project called WWW which references another project in the same solution called Framework. Framework uses a Nuget which has a dependency on another Nuget package called iSynaptic. The Framework.csproj xml says: true
Michael
  • 1,535
  • 2
  • 17
  • 32
4
votes
3 answers

The type or namespace could not be found

I'm currently trying to convert a WiX 3.5 custom actions project in Visual Studio 2008 to WiX 3.7 and Visual Studio 2012 and I'm getting the following exception: The type or namespace name 'MyNamespace' could not be found (are you missing a using…
Seth Moore
  • 3,575
  • 2
  • 23
  • 33
4
votes
1 answer

Encrypting password in a MSBuild file

I want to encrypt the password I am supplying in the following code:
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
4
votes
1 answer

How to access ItemGroup Metadata as properties within MSBuild script

Is it possible using default MSBuild technology to access a listing within an item group as a property in msbuild? I know I can do this in a custom task in C#, but I am trying to use built-in capabilities if possible. Example: I have an item…
Jay
  • 2,644
  • 1
  • 30
  • 55
4
votes
2 answers

MSBuild copies dependencies when absolute path is specified and ignores when relative

I try to build .csproj that references some projects in solution. These references are marked with CopyLocal=False. And this is the desired behavior. I build it for CI using MSBuild, so I set output folder via /p:OutputPath="some output dir". I also…
Dmitrii Lobanov
  • 4,897
  • 1
  • 33
  • 50
4
votes
1 answer

How to use (wix) torch msbuild task?

I am trying to build patches (msp) from Wix. One of the step specifies that i have to use Torch task to create wixmst. I was looking for torch task in Wix.targets. The task exists but there is no documentation for that task. Can any one used torch…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
3
votes
1 answer