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
2 answers

The same wixproj file only works in VS 2012 IDE, but not in VS command prompt

I am trying the steps on this page. I have installed the wix binaries in a folder on my local machine. So I got a wix installer project created by wix VS 2010 plugin. I can use the VS 2010 IDE to build it and generate the msi file, but I cannot do…
laishiekai
  • 841
  • 1
  • 13
  • 26
0
votes
1 answer

Incremental Build of Nuget Packages

I want to execute an msbuild project which uses batching to determine that one or more csproj projects have been freshly-built, and therefore require fresh nuget packaging. The script I've made so far seems like a reasonable start, but it the…
Brent Arias
  • 29,277
  • 40
  • 133
  • 234
0
votes
1 answer

MSbuild and project optimization

I'm using MSbuild class for compile visual studio 2010 projects from module of my programm. But I can't find how to tell compiler which optimization flags it must use. There is only Optimize property on MSBuild and only tag at .vcxproj file. But I…
3ka5_cat
  • 121
  • 1
  • 12
0
votes
2 answers

Can MSBuild (via Microsoft.Build namespace) load a project from memory?

I'm working on a service that will download a .NET solution from a repository and build it (not unlike a continuous-integration build service). What I want to know is, using MSBuild programmatically via the Microsoft.Build namespace classes, can I…
Adam Maras
  • 26,269
  • 6
  • 65
  • 91
0
votes
2 answers

Msbuild - build with output in diffrent folders

I have right now this in a script and want to have it in a msbuild instead. msbuild /t:Build;PipelinePreDeployCopyAllFilesToOneFolder XXXXX\XXXX.XXX.xxx\XXXXX.XXXX.XXXXX1.csproj /p:Configuration="Release";_PackageTempDir=....\Deploy\XXXX1 msbuild…
user1540911
  • 355
  • 1
  • 2
  • 12
0
votes
2 answers

MS Build Write Lines to File

What is Write Lines to File task in MS Build. I am trying to set up a deploy for an website I inherited. I am not that familiar with the MS Build internals. I am not even sure if this is a common thing for all the projects or if something was…
katie77
  • 1,797
  • 4
  • 25
  • 43
0
votes
1 answer

MSBuild dynamic AssemblyName

How can I change AssemblyName dynamically, based on content of some file? For instance, I have file named "AssemblyBaseName.txt" which contains "Abcd" string I want my assembly DLL/EXE name to be Abcd.Common.dll, where "Common" is constant. I've…
adontz
  • 1,428
  • 16
  • 36
0
votes
1 answer

How to copy files into project with Build action "Content"

We have content (files/folders) created outside of VS2010. Using the project's "BeforeBuild", I'm able to import the files from our temp directory to our project's same directory structure. Once imported, how do we tell VS2010 IDE recognize Build…
osstech
  • 33
  • 1
  • 6
0
votes
1 answer

MsBuild: Add text or custom information to the files

The below code works fine to copy the files from Source to the Destination folder. I want to make the copied files in order for example 1.zip.exe 2.NetFx.exe etc... or I.zip.exe II.NetFx.exeetc.... Basically I want to tell the user to install the…
linguini
  • 1,939
  • 5
  • 49
  • 79
0
votes
3 answers

TFS 2010 Building Sharepoint 2010 Solution With Custom Outputs

I have a very similar question to this SO post: TFS Build 2010 - Custom Binary Location and SharePoint WSP. There's no marked answer, but the only answer provided seemed to be the path to go. I'm building several solutions and need the solutions…
Mike G
  • 1,956
  • 1
  • 30
  • 62
0
votes
1 answer

How can you automatically update a .NET project COM reference?

I have a legacy VB6 COM DLL that's included as a reference in a .NET project. My manual build process looks like this: Build VB6 DLL Copy VB6 DLL to reference directory Register VB6 DLL with regsvr32 In the .NET project, remove the old…
Scott Whitlock
  • 13,739
  • 7
  • 65
  • 114
0
votes
1 answer

UseWPP_CopyWebApplication with web.config transformations

I am trying to build and publish my ASP.NET MVC3 project. I am trying to achieve Web.Release.config transformation using using the MSBuild method I have used the following msbuild command to do the same : msbuild …
Anirban
  • 589
  • 3
  • 16
  • 40
0
votes
2 answers

How to use MSBuild.ExtensionPack

I have to run two targets in parallel to profile iisexpress.exe using OpenCover. The link below relates to the information about the issue I am having. https://github.com/sawilde/opencover/issues/92#issuecomment-5143204 This suggested to me to use…
-1
votes
1 answer

MSBuild and Packages with Content Files

I have a problem with MSBuild an packages. I have an application referencing an package which references a package, which has contentFiles in it like: Main App A -> Assembly B -> Package C with assemblies and content files (exe + json)! These…
Martin.Martinsson
  • 1,894
  • 21
  • 25
-1
votes
1 answer

How to remove the uninstall msi using MSBUILD

Can anyone help me to get the custom script (i.e. using Target) sample to uninstall the msi instance which is already installed on a server using MSBUILD. A sample code example will be more helpful. Thanks & Regards, Santosh Kumar Patro
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
1 2 3
20
21