RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Copying files
<ItemGroup> <DataToCopy Include="*.cs;*.aspx" /> </ItemGroup> <Copy SourceFiles="@(DataToCopy)" DestinationFolder="SourceCopiedFolder" />
Deleting files
<ItemGroup> <FilesToDelete Include="*.tmp" /> </ItemGroup> <Delete Files="@(FilesToDelete)" />
Creating a new directory
<PropertyGroup> <DirectoryToCreate>NewDirectory</DirectoryToCreate> </PropertyGroup> <MakeDir Directories="$(DirectoryToCreate)" />
Removing an existing directory
<PropertyGroup> <DirectoryToRemove>TempData</DirectoryToRemove> </PropertyGroup> <RemoveDir Directories="$(DirectoryToRemove)" />
Running a custom command
<Exec Command="echo Hello World" />
Displaying a custom message
<PropertyGroup> <CustomMessage>Hello World</CustomMessage> <MessageImportance>Low</MessageImportance> <!-- Low / Normal / High --> </PropertyGroup> <Message Text="$(CustomMessage)" Importance="$(MessageImportance)" /> ...
Running MSBuild on another project / solution
<PropertyGroup> <LinkedSolution>LinkedSolution.sln</LinkedSolution> <BuildType>Build</BuildType> <!-- Build / Rebuild --> <BuildArchitecture>x86</BuildArchitecture> <!-- x86 / 64 --> <BuildConfiguration>Debug</BuildCo...
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website