Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class SomeObject
- Public Name As String
- End Class
- Private SomeList As List(Of SomeObject) = SomeObject.GetAllSomeObjects()
- Public Function FindFirstItemWithSimilarName(ByVal x As String) As SomeObject
- Return SomeList.Find(Function(p As SomeObject) p.Name.Contains(x))
- End Function
- <property name="nant.settings.currentframework" value="net-2.0"/>
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Text;
- namespace MSBuild
- {
- public class Program
- {
- public static int Main(string[] args)
- {
- for (int argIndex = 0; argIndex < args.Length; argIndex++)
- {
- if (args[argIndex].Contains(" "))
- {
- string quotedArg = string.Format(""{0}"", args[argIndex]);
- args[argIndex] = quotedArg;
- }
- }
- string arguments = string.Join(" ", args);
- // HACK: I should probably change
- // this to automaticlaly
- // determine the path
- Process process = Process.Start("C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe",arguments);
- process.WaitForExit();
- return process.ExitCode;
- }
- }
- }
- <property name="nant.settings.currentframework" value="net-3.5"/>
Add Comment
Please, Sign In to add comment