[Mono-list] Need help with xbuild.
Ankit Jain
radical at gmail.com
Mon Feb 23 01:48:06 EST 2009
> 1. What's the project file supported by xbuild? Ara there anything manual of
> xbuild?
xbuild from svn currently supports both csproj and sln files. Its
still work in progress,
but you could try it. Just run it as -
xbuild foo.csproj
xbuild foo.csproj /t:Clean -- to run specific targets, like Clean
Or you could try MonoDevelop (www.monodevelop.com), it supports msbuild projects
emitted by VS200X.
-Ankit
>
> 2. Get a exception from prj2make:
>
> ==Foo.cs=======
> using System;
> public class HelloWord{
> public static void Main(){
> Console.WriteLine("Hello .net");
> }
> }
>
> ==Foo.csproj========
> <Project DefaultTargets="Build"
> xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
> <PropertyGroup>
> <OutputType>Library</OutputType>
> <AssemblyName>Foo</AssemblyName>
> </PropertyGroup>
> <ItemGroup>
> <Reference Include="System" />
> </ItemGroup>
> <ItemGroup>
> <Compile Include="Foo.cs" />
> </ItemGroup>
> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
> </Project>
>
> ==cmd========
> D:\E4SL>prj2make Foo.csproj
> EXCEPTION: System.NullReferenceException: Object reference not set to an
> instanc
> e of an object
> at Mfconsulting.General.Prj2Make.SlnMaker.GetCsprojFileVersion
> (System.String
> strInCsprojFile) [0x00000]
> at Mfconsulting.General.Prj2Make.SlnMaker.MsSlnHelper (Boolean isUnixMode,
> Boo
> lean isMcsMode, Boolean isSln, System.String slnFile) [0x00000]
>
> I hope you can help me, and show me a sample for xbuild.
>
> Thanks.
> stan zhang
> --
> View this message in context: http://www.nabble.com/Need-help-with-xbuild.-tp21513686p21513686.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
--
Blog : http://www.ankitjain.org/blog
More information about the Mono-list
mailing list