[MonoDevelop] role of /MonoDevelop/ProjectModel/MSBuildItemTypes xml element?

Lluis Sanchez Gual slluis.devel at gmail.com
Thu Mar 11 18:02:22 EST 2010


El dj 11 de 03 de 2010 a les 16:49 -0600, en/na Vasili I. Galchin va
escriure:
> On 3/11/10, Lluis Sanchez Gual <slluis.devel at gmail.com> wrote:
> > El dc 10 de 03 de 2010 a les 16:01 -0600, en/na Vasili I. Galchin va
> > escriure:
> >> Hello,
> >>
> >>       What is the role of this element?
> >
> > This element registers a new MSBuild project type.
> >
> >>
> >>       How do I generate a guid for a currently unsupported language?
> >
> > If you want to be able to open F# projects created with Visual Studio,
> > you should use the same guid VS is using, which is
> > {F2A71F9B-5D33-465A-A702-920D77279786}.
> >
> > To get this guid, I created a new F# project with VS 2010. In the .sln
> > file, there is one line like this:
> >
> > Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "ConsoleApplication2",
> > "ConsoleApplication2\ConsoleApplication2.fsproj",
> > "{38CFFCBD-67CE-4023-8C35-15DDD8C6A3D4}"
> 
>           ^^^ so do I need one of these for each type of F# project,
> e.g. Console Project, Empty Project, Library Project, etc.? If so what
> the project GUIDs??

No, there is only one GUID per language. Console project, Library
project and all the other will be F# projects and will have the same
GUID and file extension (.fsproj). They are essentially the same, but
they are created using different templates and have different build
settings.

> 
> 
> >
> > The first guid is the id of the project type (F#). That's the one to be
> > registered for F# project types in MD.
> >
> >>
> >>       What is the role of "import" sub element?
> >
> > That 'import' attribute specifies the MSBuild 'targets' file that has to
> > be imported in the .fsproj project file. A 'targets' file contains
> > commands and rules for building a project, so they are
> > language-specific.
> >
> > To be compatible with Visual Studio, it should be
> > "$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0
> > \Microsoft.FSharp.Targets".
> >
> > Lluis.
> >
> >
> >
> >




More information about the Monodevelop-list mailing list