[Mono-dev] Targets file to aid in Mono development on Visual Studio 2005 Beta 2

Marek Sieradzki marek.sieradzki at gmail.com
Wed Aug 24 03:51:11 EDT 2005

Dnia 23-08-2005, wto o godzinie 16:28 -0700, Mike Hull napisał(a):
> Hello,
> Attached is a file that we use for our cross platform development.  It
> allows us to build a Linux or Mono release from Visual Studio .NET
> 2005 that targets the Mono class libraries including mscorlib in the
> same solution as our .NET 1.1 and .NET 2.0 targets. For those of you
> who are developing cross platform C# and you are using Visual Studio
> 2005 Beta 2 as an IDE, this file will probably be useful. 
> To use it change the line in your csproj file:
> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
> To:
> <Import Project="..\..\Relative\Path\To\Coversant.CSharp.targets">
> This needs to be done in each project file in your solution.  Also you
> may need to adjust the installation path for your mono setup, in the
> targets file. 
> Once this is done, load up your solution/project. You should notice
> under the Solution platforms you have Linux, Mono 2.0, .NET 1.1, and
> Any CPU. 
>       * Linux and Mono are basically the same.  They just differ in
>         the DefineConstants.
>       * .NET 1.1 is to target the old .NET runtime.
>       * Any CPU is your standard .NET 2.0 target.

That file will be useful in XBuild. I was having problems with .targets
file mainly because Microsoft.CSharp.targets is .NET/Microsoft specific.
However it can be used for real things only when XBuild will have
condition support. I'm currently dealing with various tasks like Csc.
You can look into Mono anonymous SVN module 'xbuild'.

Marek Sieradzki <marek.sieradzki at gmail.com>

More information about the Mono-devel-list mailing list