Microsoft is phasing out the Got Dot Net project.
This site will last until July 2007.
Most of the projects are moving to http://www.codeplex.com
This will break a lot of sample code based upon GotDotNet.
Random outpourings of a software developer
Microsoft is phasing out the Got Dot Net project.
This site will last until July 2007.
Most of the projects are moving to http://www.codeplex.com
This will break a lot of sample code based upon GotDotNet.
This is a collection of Open Source MSBuild tasks.
These are licenced under the BSD.
I have found the following rules make reuse easier:
These simple rules permit reuse of the contained control. Objects developed along these lines are much easier to extend and reuse. It also makes it very quick to rearrange the top level container.
These rules also apply recursively so that a container may be contained in an outer container.
Msbuild is microsofts answer to Ant. This is a build tool for the .Net Platform.
It has the minor benfit of being the native file format of the Visual Studio 2005 project files.
You need the .Net Framework 2 installed and to add the Microsoft Framework to your path statement
Boo is a lightweight .Net language.
Here is a sample that gets a task written in Boo for msbuild:
=== MyTask.boo ===
import Microsoft.Build.Framework
import Microsoft.Build.Utilities
import Boo.Lang
class MyTask(Task):
public override def Execute():
Log.LogMessage(MyProperty)
return true
private _MyProperty as string
MyProperty as string:
get:
return _MyProperty
set:
_MyProperty = value
=== Test.proj ===
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="MyTarget"
InitialTargets="BuildMyTask"
>
<Target Name="BuildMyTask">
<Exec command="booc MyTask.boo -t:library"/>
</Target>
<UsingTask TaskName="MyTask" AssemblyFile="MyTask.dll"/>
<Target Name="MyTarget">
<MyTask MyProperty="Hello!"/>
</Target>
</Project>
===
You also need Boo installed (and on your path).
Copy Boo.Lang into the directory that you created these scripts in.
At the command line type: msbuild
This will build and run the minimal boo task.
I am planning to add a real msbuild task for boo.