[Mono-list] how to build class library in windows with VS.NET?

=?GB2312?B?0rG+p7XL?= fatfatson at gmail.com
Sun Aug 1 14:43:03 EDT 2010


hi, dear:
  i checked out the latest source form svn, and managed to build the mono
runtime and mcs, with a lot of modifes to the mono/msvc05/mono.sln,
including adding file , editing source code....
  but i really don't know how to build the class library? the reason for why
i have to build it myself is that the latest prebuild binary(2.7.6) 's
corlib.dll can't be loaded by my own mono runtime ...it says a class named
"InternalThread" can't be found...
  i have read this article http://www.mono-project.com/Compiling_Mono_VSNET,
and follow its constructions but failed. when i run
"msvc/setup-solution.bat", it reports lots of error:
  help me....
  thanks very much!


> System.ArgumentException: An item with the same key has already been added.
>    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
>    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
> value, Boo
> lean add)
>    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
>    at SlnGenerator.Add(String library) in
> d:\code\3rd\mono\mono\msvc\scripts\gen
> proj.cs:line 34
> System.ArgumentException: An item with the same key has already been added.
>    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
>    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
> value, Boo
> lean add)
>    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
>    at SlnGenerator.Add(String library) in
> d:\code\3rd\mono\mono\msvc\scripts\gen
> proj.cs:line 34
> System.ArgumentException: An item with the same key has already been added.
>    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
>    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
> value, Boo
> lean add)
>    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
>    at SlnGenerator.Add(String library) in
> d:\code\3rd\mono\mono\msvc\scripts\gen
> proj.cs:line 34
> Error in class/System.Web
> System.IO.DirectoryNotFoundException: Could not find a part of the path
> 'D:\code
> \3rd\mono\mcs\build\deps\net_2_0_System.Web.dll.sources'.
>    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
> access, I
> nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
> FileOptions o
> ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
>    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access,
> FileShare share, Int32 bufferSize, FileOptions options)
>    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
> detec
> tEncodingFromByteOrderMarks, Int32 bufferSize)
>    at System.IO.StreamReader..ctor(String path)
>    at MsbuildGenerator.Generate(XElement xproject) in
> d:\code\3rd\mono\mono\msvc
> \scripts\genproj.cs:line 581
>    at Driver.Main(String[] args) in
> d:\code\3rd\mono\mono\msvc\scripts\genproj.c
> s:line 751
> Error in class/System.Web
> System.IO.DirectoryNotFoundException: Could not find a part of the path
> 'D:\code
> \3rd\mono\mcs\build\deps\net_2_0_System.Web.dll.sources'.
>    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
> access, I
> nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
> FileOptions o
> ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
>    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access,
> FileShare share, Int32 bufferSize, FileOptions options)
>    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
> detec
> tEncodingFromByteOrderMarks, Int32 bufferSize)
>    at System.IO.StreamReader..ctor(String path)
>    at MsbuildGenerator.Generate(XElement xproject) in
> d:\code\3rd\mono\mono\msvc
> \scripts\genproj.cs:line 581
>    at Driver.Main(String[] args) in
> d:\code\3rd\mono\mono\msvc\scripts\genproj.c
> s:line 751
> System.ArgumentException: An item with the same key has already been added.
>    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
>    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
> value, Boo
> lean add)
>    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
>    at SlnGenerator.Add(String library) in
> d:\code\3rd\mono\mono\msvc\scripts\gen
> proj.cs:line 34
> /main = not supported
> Error in class/RabbitMQ.Client/src/apigen
> System.Exception: Exception of type 'System.Exception' was thrown.
>    at MsbuildGenerator.CSCParseOption(String option, String[]& args) in
> d:\code\
> 3rd\mono\mono\msvc\scripts\genproj.cs:line 311
>    at MsbuildGenerator.Generate(XElement xproject) in
> d:\code\3rd\mono\mono\msvc
> \scripts\genproj.cs:line 573
>    at Driver.Main(String[] args) in
> d:\code\3rd\mono\mono\msvc\scripts\genproj.c
> s:line 751
> System.ArgumentException: An item with the same key has already been added.
>    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
>    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
> value, Boo
> lean add)
>    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
>    at SlnGenerator.Add(String library) in
> d:\code\3rd\mono\mono\msvc\scripts\gen
> proj.cs:line 34
> Error in class/System.Web
> System.IO.DirectoryNotFoundException: Could not find a part of the path
> 'D:\code
> \3rd\mono\mcs\build\deps\net_2_0_System.Web.dll.sources'.
>    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
> access, I
> nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
> FileOptions o
> ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
>    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access,
> FileShare share, Int32 bufferSize, FileOptions options)
>    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
> detec
> tEncodingFromByteOrderMarks, Int32 bufferSize)
>    at System.IO.StreamReader..ctor(String path)
>    at MsbuildGenerator.Generate(XElement xproject) in
> d:\code\3rd\mono\mono\msvc
> \scripts\genproj.cs:line 581
>    at Driver.Main(String[] args) in
> d:\code\3rd\mono\mono\msvc\scripts\genproj.c
> s:line 751
> Error in class/System.ServiceModel.Web
> System.IO.DirectoryNotFoundException: Could not find a part of the path
> 'D:\code
> \3rd\mono\mcs\build\deps\net_2_0_System.ServiceModel.Web.dll.sources'.
>    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
> access, I
> nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
> FileOptions o
> ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
>    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access,
> FileShare share, Int32 bufferSize, FileOptions options)
>    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
> detec
> tEncodingFromByteOrderMarks, Int32 bufferSize)
>    at System.IO.StreamReader..ctor(String path)
>    at MsbuildGenerator.Generate(XElement xproject) in
> d:\code\3rd\mono\mono\msvc
> \scripts\genproj.cs:line 581
>    at Driver.Main(String[] args) in
> d:\code\3rd\mono\mono\msvc\scripts\genproj.c
> s:line 751
> Error in class/Mono.CSharp
> System.IO.FileNotFoundException: Could not find file
> 'D:\code\3rd\mono\mcs\class
> \Mono.CSharp\Mono.CSharp.dll.sources'.
> File name: 'D:\code\3rd\mono\mcs\class\Mono.CSharp\Mono.CSharp.dll.sources'
>    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
> access, I
> nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
> FileOptions o
> ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
>    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access,
> FileShare share, Int32 bufferSize, FileOptions options)
>    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
> detec
> tEncodingFromByteOrderMarks, Int32 bufferSize)
>    at System.IO.StreamReader..ctor(String path)
>    at MsbuildGenerator.Generate(XElement xproject) in
> d:\code\3rd\mono\mono\msvc
> \scripts\genproj.cs:line 581
>    at Driver.Main(String[] args) in
> d:\code\3rd\mono\mono\msvc\scripts\genproj.c
> s:line 751
> Can not determine compiler from ./../class/lib/net_2_0/gmcs.exe
> Error: solution is not configured.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100802/1d9ffcbd/attachment-0001.html 


More information about the Mono-list mailing list