- ]]>
-
-
- ]]>
-
-
- ]]>
-
-
- ]]>
-
-
- ]]>
-
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
-
-
- ]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]]>
-
-
- ]]>
-
- The
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
-
-
-
-
- ]]>
-
-
- ]]>
-
- Using a changes.xml file with the following contents:
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]]>
-
- You could use the following task definition, which relies on a property "TargetEnvironment" to determine which set of changes to apply:
-
- ]]>
-
- You will need to provide a value of "test" or "prod" to the TargetEnvironment property. The property can be defined in a PropertyGroup section of the MSBuild file, or passed as a command-line parameter.
-
-
-
-
-
-
-/>]]>
-
-
- ]]>
-
- ]]>
-
-
-
-
- ]]>
-
-
- ]]>
-
- $(testDir)\ilmergetest.dll
- $(testDir)\keypair.snk
- $(testDir)\ExcludeTypes.txt
- $(testDir)\ilmergetest.log
-
-
-
-
-
-
-
-
-
-
-
- ]]>
-
-
-]]>
-
-
-
-]]>
-
-
-
-
-
-
-]]>
-
-
- ]]>
-
- ]]>
-
-
-
-
-
-]]>
-
- Above example will display:
- 12 modulo 4 = 0
-
-
-
-
-
-]]>
-
- Above example will display:
- 14 modulo 4 = 2
-
-
-
-
-
-]]>
-
- Above example will display:
- 12 modulo 3.5 = 1.5
-
-
-
- ]]>
-
-
-
-
- ]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]]>
-
- ]]>
-
-
-
-
-
-
-
-
- ]]>
-
- Server=localhost;Integrated Security=True
-
-
-
-
-
- ]]>
-
-
-
-
-
-
- ]]>
-
-
- MSBuild Community Tasks
-
-
-
-
- ]]>
-
-
-
-
-
-
-
-
- ]]>
- Set property "BuildDate" to the current date and time:
-
-
- ]]>
-
-
-
-
-
-
-
-
-
-
-]]>
-
-
-
-
-
-
-
-
-]]>
-
-
-
-
-
-
-
-
-
-
-
-]]>
-
-
-
-/>]]>
-
- ]]>
- the
- The xml files of parameter
- If only one input file is provided,
- merging and wrapping can be omitted
- by setting
- The root tag can be given any number of attributes
- by providing a list of semicolon-delimited name/value pairs
- to parameter RootAttributes="foo=bar;date=$(buildDate)"
-
- Parameter RootAttributes=""
- must be specified explicitely.
-
- The xsl transformation file
- specified by parameter
- The
- The output is written to the file
- specified by parameter
-
-
- $(project)
- $(configuration)
- $(MSBuildProjectFullPath)
- $(MSBuildBinPath)
- $(MSBuildCommunityTasksPath)\$(nunitReportXsl)
-
-
-
-
-
- ]]>
-
-
- This examples shows all available task attributes:
-
-
-
-
-
- ]]>
-
- RootAttributes="foo=bar;date=$(buildDate)"
-
- ]]>
-
- ]]>
-
- ]]>
-
-
-
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
-
-
- ]]>
-
-
-
-
- ]]>
-
-
-
-
-
-]]>
-
- Above example will display:
- Divide 1/2= 0.5
-
-
-
-
-
-]]>
-
- Above example will display:
- Divide 7/3= 2
-
-
-
-
- ]]>
-
-
-
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
-
-
-
-
-
- ]]>
-
-
-
-
- ]]>
-
- ]]>
-
-
-
-
-
-
-
-
-
-]]>
-
-
-
-
-
-
-
-
-
-
-
-]]>
-
-
- ]]>
-
- ]]>
-
- ]]>
- ]]>
-
-
- ]]>
-
- ]]>
-
- ]]>
-
- ]]>
-
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
- ]]>
-
- ]]>
-
-
-
-
-
-
-
- ]]>
-
-
-
-
-
-
-
- ]]>
-
- ]]>
-
-
-
-
- ]]>
-
- ]]>
-
-
-
-
-
-
- ]]>
- Create a zip file using a working directory.
-
-
-
-
-
-
- ]]>
-
- list = new List();
- list.Add("Happy");
- list.Add("New");
- list.Add("Year");
- Console.WriteLine("Hello MSBuild Community Scripting World.");
- foreach(string s in list)
- {
- Console.WriteLine(s);
- }
- }
- ]]>
-
-