[Mono-list] Need help with xbuild.

stan.zhang xinchao.zhang at soyatec.com
Sun Jan 18 20:44:30 EST 2009


I am new for xbuild and mono. Now I have a project in VS2005, and want to
build it in xbuild.

There are some question:
1. What's the project file supported by xbuild? Ara there anything manual of
xbuild?

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.



More information about the Mono-list mailing list