MSBuild Wiki

4/28/2005 11:23:10 PM - Neil
MSBuild Wiki

Recent Changes
Lost and Found
Find References
Highlight Changes

Versions

Versions:

Equivalent Tasks

MSBuild NAnt Description Notes
AL al Wraps al.exe, the assembly linker for the .NET Framework.
AspNetCompiler
AssignCulture
Copy copy Copies a file or set of files to a new file or directory.
CreateItem Populates item lists with the items passed in. This allows items to be copied from one list to another.
CreateProperty property Sets a property in the current project.
Csc csc Compiles C# programs.
Delete delete Deletes a file, fileset or directory.
Error fail Exits the current build by throwing a BuildException, optionally printing additional information.
Exec exec Executes a system command.
FindUnderPath
GenerateApplicationManifest Generates an assembly manifest for a Win32 or ClickOnce application from project items and properties.
GenerateDeploymentManifest Generates a ClickOnce deploy manifest from project items and properties.
GenerateBootstrapper
GetAssemblyIdentity
GetFrameworkPath
GetFrameworkSdkPath
GetLinkedFilesFromResX
LC
MakeDir mkdir Creates a directory and any non-existent parent directory if necessary.
Message echo Writes a message to the build log.
MSBuild Build projects in an application using MSBuild. Note that this task can process not only project files but also Visual Studio solution files.
ReadLinesFromFile
RegisterAssembly Reads the metadata within an assembly and add the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently.
RemoveDir Removes directories from disk and all the files and directories they contain.
RemoveDuplicates
ResGen resgen Converts files from one resource format to another.
ResolveAssemblyReference
ResolveComReferences
ResolveKeySource
ResolveNativeReference
SGen
SignFile delay-sign Signs delay-signed .NET Assemblies, or re-signs existing assemblies.
Touch touch Touches a file or set of files
UnregisterAssembly Performs the reverse of the RegisterAssembly task.
Vbc vbc Compiles Visual Basic.NET programs.
Vjc vjc Compiles Visual J# programs using vjc, Microsoft's J# compiler. You must install the J# redist before you get this task. It is contained inside VisualJSharp.dll
VCBuild Runs vcbuild.exe, which builds Visual Studio Visual C++ projects.
Warning
WriteLinesToFile
asminfo Generates an AssemblyInfo file using the attributes given.
attrib Changes the file attributes of a file or set of files.
available Checks if a resource is available at runtime.
MSBuild call Call a target in the current project.
cl Compiles C/C+ programs using cl.exe, Microsoft's C/C+ compiler.
cvs-checkout Checks out a CVS module to the required directory.
cvs-update Updates a CVS module in a local working directory.
description An empty task that allows a build file to contain a description.
foreach Loops over a set of items.
get Gets a particular file from a URL source.
if Checks the conditional attributes and executes the children if true.
ifnot The opposite of the if task.
include Includes an external build file. In MSBuild use Import
jsc Compiles JScript.NET programs.
lib Run lib.exe, Microsoft's Library Manager.
license Generates a .licence file from a .licx file.
link Links files using link.exe, Microsoft's Incremental Linker.
loadtasks Loads tasks form a given assembly or all assemblies in a given directory or fileset. In MSBuild use UsingTask
mail Sends an SMTP message.
mc Compiles messages using mc.exe, Microsoft's Win32 message compiler.
midl This tasks allows you to run MIDL.exe.
move |Moves a file or set of files to a new file or directory.
nant Runs NAnt on a supplied build file. This can be used to build subprojects.
nantschema Creates an XSD File for all available tasks.
ndoc Runs NDoc to create documentation.
nunit Runs tests using the NUnit V1.0 framework.
nunit2 Runs tests using the NUnit V2.1 framework.
rc Compiles resources using rc.exe, Microsoft's Win32 resource compiler.
readregistry Reads a value or set of values from the Windows Registry into one or more NAnt properties.
regex Sets project properties based on the evaluatuion of a regular expression.
regsvcs Installs or removes .NET Services.
script Executes the code contained within the task.
servicecontroller Allows a Windows service to be controlled.
sleep A task for sleeping a specified period of time
solution Compiles VS.NET solutions (or sets of projects) Use MSBuild to compile VS2005 solutions
style Processes a document via XSLT.
sysinfo Sets properties with system information. MSBuild exposes environment variables by default
tlbexp Exports a .NET assembly to a type library that can be used from unmanaged code
tlbimp Imports a type library to a .NET assembly (wraps Microsoft's tlbimp.exe)
tstamp Sets properties with the current date and time.
unzip Extracts files from a zip file.
xmlpeek Extracts text from an XML file at the location specified by an XPath expression.
xmlpoke Replaces text in an XML file at the location specified by an XPath expression.
zip Creates a zip file from a specified fileset.