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.

311 questions
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
  • 24,360
  • 5
  • 60
  • 89
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,707
  • 4
  • 24
  • 40
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,338
  • 13
  • 32
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,931
  • 5
  • 46
  • 76
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,906
  • 1
  • 28
  • 61
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,473
  • 7
  • 59
  • 111
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
  • 14
  • 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

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
  • 5,491
  • 12
  • 48
  • 105
1 2 3
20
21