mono.git
13 years agoReturn a new object in ObjectPool when too much time is spent spinning in Take
Jérémie Laval [Wed, 16 Feb 2011 13:46:01 +0000 (13:46 +0000)]
Return a new object in ObjectPool when too much time is spent spinning in Take

13 years agoRemove duplicate Mono.Softdebugger
Marek Safar [Thu, 17 Feb 2011 09:30:11 +0000 (09:30 +0000)]
Remove duplicate Mono.Softdebugger

13 years agoFix full path file names parsing
Marek Safar [Thu, 17 Feb 2011 09:28:56 +0000 (09:28 +0000)]
Fix full path file names parsing

13 years agoFix ARCH_STORE_REGS on arm to save r0->r12 properly
Geoff Norton [Wed, 16 Feb 2011 21:10:11 +0000 (16:10 -0500)]
Fix ARCH_STORE_REGS on arm to save r0->r12 properly

13 years agoRemove dead code
Geoff Norton [Wed, 16 Feb 2011 20:04:23 +0000 (15:04 -0500)]
Remove dead code

13 years agoAnother make dist fix
Marek Safar [Wed, 16 Feb 2011 19:07:44 +0000 (19:07 +0000)]
Another make dist fix

13 years agoMakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Atsushi Eno [Wed, 16 Feb 2011 15:55:15 +0000 (00:55 +0900)]
MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.

Fixed bug #670539.

13 years agofix the mobile build
Jb Evain [Wed, 16 Feb 2011 15:35:38 +0000 (16:35 +0100)]
fix the mobile build

13 years agoKeep monolite in line with mono 2.4 corlib as I cannot handle two different versions
Marek Safar [Wed, 16 Feb 2011 15:31:05 +0000 (15:31 +0000)]
Keep monolite in line with mono 2.4 corlib as I cannot handle two different versions

13 years agoFix mcs exit code for informative arguments
Marek Safar [Wed, 16 Feb 2011 14:47:23 +0000 (14:47 +0000)]
Fix mcs exit code for informative arguments

13 years agoMake all arrays module specific
Marek Safar [Wed, 16 Feb 2011 14:12:42 +0000 (14:12 +0000)]
Make all arrays module specific

13 years agoDecorate _image_base__ with __MINGW_LSYMBOL
Hib Eris [Fri, 11 Feb 2011 14:29:09 +0000 (15:29 +0100)]
Decorate _image_base__ with __MINGW_LSYMBOL

This fix is needed in compiling for x86_x64.

13 years agoTrack what task is currently executed by a ThreadWorker and add the case for "parent...
Jérémie Laval [Wed, 16 Feb 2011 13:12:28 +0000 (13:12 +0000)]
Track what task is currently executed by a ThreadWorker and add the case for "parent waiting on children task it created" in CheckTaskFitness predicate.

This fixup PLinq processing when it's launched from a Task.

13 years agoCreate PLinq query tasks attached to their eventual task parent by default
Jérémie Laval [Wed, 16 Feb 2011 13:11:42 +0000 (13:11 +0000)]
Create PLinq query tasks attached to their eventual task parent by default

13 years agoWhen choosing the number of Task to create for a PLinq query, check if we are already...
Jérémie Laval [Wed, 16 Feb 2011 12:59:22 +0000 (12:59 +0000)]
When choosing the number of Task to create for a PLinq query, check if we are already in a running Task

13 years agoImplement properly TaskScheduler's FromCurrentSynchronizationContext
Jérémie Laval [Wed, 16 Feb 2011 12:53:27 +0000 (12:53 +0000)]
Implement properly TaskScheduler's FromCurrentSynchronizationContext

13 years agoLess static is good for my health
Marek Safar [Wed, 16 Feb 2011 12:23:36 +0000 (12:23 +0000)]
Less static is good for my health

13 years agoDon't reject serialization map for existing different (but same-purpose) type.
Atsushi Eno [Wed, 16 Feb 2011 09:48:06 +0000 (18:48 +0900)]
Don't reject serialization map for existing different (but same-purpose) type.

13 years agoTo header seems mandatory in April2005, so fill it.
Atsushi Eno [Wed, 16 Feb 2011 09:17:09 +0000 (18:17 +0900)]
To header seems mandatory in April2005, so fill it.

13 years agoApril2005 AppSequence needs default constructor for deserialization.
Atsushi Eno [Wed, 16 Feb 2011 09:15:53 +0000 (18:15 +0900)]
April2005 AppSequence needs default constructor for deserialization.

13 years agoxsi:type parsing is wrong in default namespace resolution.
Atsushi Eno [Wed, 16 Feb 2011 09:02:28 +0000 (18:02 +0900)]
xsi:type parsing is wrong in default namespace resolution.

Fixed case #3 in bug #652331.

13 years agoOperation interface methods also have ServiceKnownType attributes.
Atsushi Eno [Wed, 16 Feb 2011 08:07:10 +0000 (17:07 +0900)]
Operation interface methods also have ServiceKnownType attributes.

13 years agoKnownTypeCollection; recursively registered type was not added to the collection...
Atsushi Eno [Wed, 16 Feb 2011 07:04:15 +0000 (16:04 +0900)]
KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state.

13 years agoFixes
Gonzalo Paniagua Javier [Wed, 16 Feb 2011 01:23:14 +0000 (20:23 -0500)]
Fixes

13 years agoRemove a bunch of warnings.
Gonzalo Paniagua Javier [Wed, 16 Feb 2011 00:58:08 +0000 (19:58 -0500)]
Remove a bunch of warnings.

13 years agoMake pdb2mdb work with files in other directories.
Martin Baulig [Tue, 15 Feb 2011 23:39:16 +0000 (00:39 +0100)]
Make pdb2mdb work with files in other directories.

Also added a public static method, so we can also use this as a library.

13 years agoMono.Debugger.Soft.dll is installed for 4.0 also.
Andrew Jorgensen [Thu, 10 Feb 2011 14:36:52 +0000 (07:36 -0700)]
Mono.Debugger.Soft.dll is installed for 4.0 also.

13 years ago[xbuild] Fix bug #671700, resource naming in presence of "Link".
Ankit Jain [Tue, 15 Feb 2011 14:38:05 +0000 (20:08 +0530)]
[xbuild] Fix bug #671700, resource naming in presence of "Link".

AssignTargetPath.cs: If 'Link' metadata is present, then use that
as the target path.

Add relevant test.

13 years agoNew test
Marek Safar [Tue, 15 Feb 2011 14:30:07 +0000 (14:30 +0000)]
New test

13 years ago[671878] Fixes IKVM ordering of catch clauses
Marek Safar [Tue, 15 Feb 2011 14:29:07 +0000 (14:29 +0000)]
[671878] Fixes IKVM ordering of catch clauses

13 years agoFix few warnings
Marek Safar [Tue, 15 Feb 2011 14:08:06 +0000 (14:08 +0000)]
Fix few warnings

13 years agoAsync MessageContract pattern needs more sophisticated contract validity check.
Atsushi Eno [Tue, 15 Feb 2011 14:24:01 +0000 (23:24 +0900)]
Async MessageContract pattern needs more sophisticated contract validity check.

It totally killed discovery.

13 years agoMessage headers are now serialized and deserialized for MessageHeaderDescription.
Atsushi Eno [Tue, 15 Feb 2011 14:14:27 +0000 (23:14 +0900)]
Message headers are now serialized and deserialized for MessageHeaderDescription.

13 years agoFix parameters names inside System.Net.dll for 2.1 profile
Sebastien Pouliot [Tue, 15 Feb 2011 13:35:14 +0000 (08:35 -0500)]
Fix parameters names inside System.Net.dll for 2.1 profile

* System.Net/System.Net.Sockets/SocketException_2_1.cs:
* System.Net/System.Net/WebClient_2_1.cs:
* System.Net/System.Net/WebRequest_2_1.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
* System/System.Net/Cookie.cs:
* System/System.Net/DnsEndPoint.cs:
* System/System.Net/EndPoint.cs:
* System/System.Net/IPAddress.cs:
* System/System.Net/IPEndPoint.cs:
* System/System.Net/SocketAddress.cs:
Remove all red ! from corcompare in System.Net.dll (Silverlight
4 profile) to make it easier to pinpoint other errors/warnings.

13 years agoServiceDescription.cs does not exist in moonlight, so move TypeExtension.
Atsushi Eno [Tue, 15 Feb 2011 13:37:28 +0000 (22:37 +0900)]
ServiceDescription.cs does not exist in moonlight, so move TypeExtension.

13 years agoFix test failure in SplitOrderedList
Jérémie Laval [Tue, 15 Feb 2011 13:36:27 +0000 (13:36 +0000)]
Fix test failure in SplitOrderedList

13 years agoImplement TaskFactory.FromAsync
Jérémie Laval [Tue, 15 Feb 2011 13:25:25 +0000 (13:25 +0000)]
Implement TaskFactory.FromAsync

13 years agoHide boostrap compiler for people looking for mcs.exe
Marek Safar [Tue, 15 Feb 2011 13:16:06 +0000 (13:16 +0000)]
Hide boostrap compiler for people looking for mcs.exe

13 years agoUpdate mcs translations
Marek Safar [Tue, 15 Feb 2011 13:15:31 +0000 (13:15 +0000)]
Update mcs translations

13 years agoFix monolite make dist
Marek Safar [Tue, 15 Feb 2011 13:14:03 +0000 (13:14 +0000)]
Fix monolite make dist

13 years agoMessageHeaderDescription were not filled in message contract. Reject wrong contracts.
Atsushi Eno [Tue, 15 Feb 2011 13:11:22 +0000 (22:11 +0900)]
MessageHeaderDescription were not filled in message contract. Reject wrong contracts.

13 years agoimplement some ServiceHostBase public methods that already existed internally.
Atsushi Eno [Tue, 15 Feb 2011 13:10:09 +0000 (22:10 +0900)]
implement some ServiceHostBase public methods that already existed internally.

13 years agoAdd Mono.Debugger.Soft.dll to spec
Marek Safar [Tue, 15 Feb 2011 12:11:28 +0000 (12:11 +0000)]
Add Mono.Debugger.Soft.dll to spec

13 years agoBuild monolite from correct location
Marek Safar [Tue, 15 Feb 2011 12:08:36 +0000 (12:08 +0000)]
Build monolite from correct location

13 years agoMerge some useful changes from MD
Marek Safar [Mon, 14 Feb 2011 15:36:12 +0000 (15:36 +0000)]
Merge some useful changes from MD

13 years ago[HttpListener] Close idle connections on Stop()
Gonzalo Paniagua Javier [Tue, 15 Feb 2011 06:48:42 +0000 (01:48 -0500)]
[HttpListener] Close idle connections on Stop()

Idle connections that never received any data or had ever been
associated to a listener are properly closed now when the endpoint is
closed or the last listener they used is closed.
Fixes a bunch of tests in System.ServiceModel.

13 years agoWhen the callback contract type is the same as the contract, do not block replies.
Atsushi Eno [Tue, 15 Feb 2011 06:47:46 +0000 (15:47 +0900)]
When the callback contract type is the same as the contract, do not block replies.

13 years agoEndpointAddress could be empty on opening the factory.
Atsushi Eno [Tue, 15 Feb 2011 06:47:22 +0000 (15:47 +0900)]
EndpointAddress could be empty on opening the factory.

13 years agoPeeDuplex ChannelFactory must be opened in prior to create channels.
Atsushi Eno [Tue, 15 Feb 2011 06:46:41 +0000 (15:46 +0900)]
PeeDuplex ChannelFactory must be opened in prior to create channels.

13 years agoadd private setter for message serialization.
Atsushi Eno [Tue, 15 Feb 2011 06:45:58 +0000 (15:45 +0900)]
add private setter for message serialization.

Not sure if it is hack or required-to-do though.

13 years agoMerge branch 'master' of github.com:mono/mono
Neale Ferguson [Mon, 14 Feb 2011 20:17:07 +0000 (15:17 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years ago[bugfix]667855 - Fix handling of oracle raw data types sanely.
Veerapuram Varadhan [Mon, 14 Feb 2011 19:51:28 +0000 (01:21 +0530)]
[bugfix]667855 - Fix handling of oracle raw data types sanely.

13 years ago[HttpWebRequest] EndGetResponse already does this.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 19:36:14 +0000 (14:36 -0500)]
[HttpWebRequest] EndGetResponse already does this.

13 years ago[HttpListener] UserHostName includes the port.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 19:34:47 +0000 (14:34 -0500)]
[HttpListener] UserHostName includes the port.

13 years agoCorrectly add ObjectPool to the build
Jérémie Laval [Mon, 14 Feb 2011 18:16:51 +0000 (18:16 +0000)]
Correctly add ObjectPool to the build

13 years agoUse ObjectPool in SplitOrderedList
Jérémie Laval [Mon, 14 Feb 2011 18:12:13 +0000 (18:12 +0000)]
Use ObjectPool in SplitOrderedList

13 years agoFix wrong CAS check in SplitOrderedList
Jérémie Laval [Mon, 14 Feb 2011 18:11:42 +0000 (18:11 +0000)]
Fix wrong CAS check in SplitOrderedList

13 years agoUse ObjectPool in ConcurrentStack
Jérémie Laval [Mon, 14 Feb 2011 18:10:42 +0000 (18:10 +0000)]
Use ObjectPool in ConcurrentStack

13 years agoUse ObjectPool in ConcurrentQueue
Jérémie Laval [Mon, 14 Feb 2011 18:10:21 +0000 (18:10 +0000)]
Use ObjectPool in ConcurrentQueue

13 years agoAdd concurrent implementation of an ObjectPool to reuse small objects like Node instances
Jérémie Laval [Mon, 14 Feb 2011 18:09:38 +0000 (18:09 +0000)]
Add concurrent implementation of an ObjectPool to reuse small objects like Node instances

13 years ago[HttpListener] These lines were not supposed to be there.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 17:29:26 +0000 (12:29 -0500)]
[HttpListener] These lines were not supposed to be there.

13 years agosupport UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328.
Atsushi Eno [Mon, 14 Feb 2011 16:54:13 +0000 (01:54 +0900)]
support UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328.

13 years agoExtended CloneCopy() test with ReadOnly field
Carsten Schlote [Fri, 12 Nov 2010 15:56:46 +0000 (16:56 +0100)]
Extended CloneCopy() test with ReadOnly field

- It is recommended to set auto-increment fields to ReadOnly. When
  calling Copy() the check for ReadOnly must be omitted, otherwise
  you get an exception.
  The RadOnly attribute is set for the parent "Id" field to test
  proper handling of read-only fields.
- Source reindention and cleanups.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years agoFixes for broken RO check
Carsten Schlote [Thu, 11 Nov 2010 16:35:41 +0000 (17:35 +0100)]
Fixes for broken RO check

- When calling GetChanges() the ReadOnly check for DataCalumns must be
  turned off, as otherwise data of readonly columns can't be cloned
  into new rows for the new created DataSet/dataTable

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years agoRemove
Miguel de Icaza [Mon, 14 Feb 2011 15:03:45 +0000 (10:03 -0500)]
Remove

13 years ago[670974] Use the underlying BaseStream to read bytes instead of trying to peek a...
Miguel de Icaza [Mon, 14 Feb 2011 14:38:02 +0000 (09:38 -0500)]
[670974] Use the underlying BaseStream to read bytes instead of trying to peek a character.

Peeking a character as it turns out is a really bad idea as it involves the encoder
to pull characters.   If the PeekChar happens to read a byte that is part of a
UTF8 string that needs more characters to process we would end up with the reported
crash.

Atsushi Enomoto tracked this down, and the fix is to use the binaryreader.BaseStream
to directly call into ReadByte and Read without ever probing with PeekChar ().   It
is not really possible to use BinaryReader.ReadByte since this one can throw on
end-of-buffer conditions instead of returning -1

13 years agoMerge branch 'master' of github.com:mono/mono
Neale Ferguson [Mon, 14 Feb 2011 14:31:38 +0000 (09:31 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoAdd unwind support to s390x and fix stack unwinding so that exception17 now passes
Neale Ferguson [Mon, 14 Feb 2011 14:31:00 +0000 (09:31 -0500)]
Add unwind support to s390x and fix stack unwinding so that exception17 now passes

13 years agoNew test
Marek Safar [Mon, 14 Feb 2011 13:15:59 +0000 (13:15 +0000)]
New test

13 years ago[671552] Use correct emit method for stobj type
Marek Safar [Mon, 14 Feb 2011 12:42:22 +0000 (12:42 +0000)]
[671552] Use correct emit method for stobj type

13 years agoDo not build in parallel
Miguel de Icaza [Mon, 14 Feb 2011 13:17:25 +0000 (08:17 -0500)]
Do not build in parallel

13 years agoUpdate to the latest IKVM
Marek Safar [Mon, 14 Feb 2011 12:18:58 +0000 (12:18 +0000)]
Update to the latest IKVM

13 years agoComment out test that does not work on linux.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 00:51:23 +0000 (19:51 -0500)]
Comment out test that does not work on linux.

13 years ago[HttpWebRequest] Use the timeout in GetResponse()
Gonzalo Paniagua Javier [Sun, 13 Feb 2011 20:01:29 +0000 (15:01 -0500)]
[HttpWebRequest] Use the timeout in GetResponse()

The timeout was not being used in GetResponse.
Fixes bug #603794.

13 years ago[HttpWebRequest] Avoid nullref on empty cookie header.
Gonzalo Paniagua Javier [Sun, 13 Feb 2011 19:53:08 +0000 (14:53 -0500)]
[HttpWebRequest] Avoid nullref on empty cookie header.

If the Set-Cookie header is empty, the cookie instance is not created.
Fixes bug #670189.

13 years agoDon't assert on broken DM names.
Rodrigo Kumpera [Sun, 13 Feb 2011 18:52:02 +0000 (19:52 +0100)]
Don't assert on broken DM names.

* reflection.c (reflection_methodbuilder_to_mono_method):
Avoid asserting if the method name has invalid surrogates.

Fixes #643372.

13 years agoAdd bad string resistent utf16-utf8 conversions.
Rodrigo Kumpera [Sun, 13 Feb 2011 18:50:28 +0000 (19:50 +0100)]
Add bad string resistent utf16-utf8 conversions.

* object.c: Add _ignore versions of the mono_string_to_utf8
family of functions that work with broken strings by
encoding them on a best effort basis.

13 years agoAvoid an infinite loop on broken utf16.
Rodrigo Kumpera [Sun, 13 Feb 2011 18:48:01 +0000 (19:48 +0100)]
Avoid an infinite loop on broken utf16.

* gutf8.c (g_utf16_to_utf8): Increase the input counter
when encountering broken surrogates head or tails to
make sure we don't end in an infinite loop.

13 years agoMake Int32.Parse respect current culture.
Rodrigo Kumpera [Sun, 13 Feb 2011 18:33:35 +0000 (19:33 +0100)]
Make Int32.Parse respect current culture.

* Int32.cs (Parse): Repect current culture for
positive and negative signs.

Fixes #586085

13 years agoFix sizeof(T) in non-gshared code. Fixes #580189.
Alexandre Mutel [Sun, 13 Feb 2011 15:14:55 +0000 (16:14 +0100)]
Fix sizeof(T) in non-gshared code. Fixes #580189.

13 years agoMerge branch 'bugfix-main-thread-root'
Mark Probst [Sun, 13 Feb 2011 15:10:10 +0000 (16:10 +0100)]
Merge branch 'bugfix-main-thread-root'

13 years agoAdd an assembly version to Mono.Debugger.Soft. Fixes #671536.
Zoltan Varga [Sun, 13 Feb 2011 15:03:54 +0000 (16:03 +0100)]
Add an assembly version to Mono.Debugger.Soft. Fixes #671536.

13 years ago[sgen] Register the main_thread as a GC root. Fixes shutdown crashes.
Mark Probst [Sun, 13 Feb 2011 14:47:50 +0000 (15:47 +0100)]
[sgen] Register the main_thread as a GC root.  Fixes shutdown crashes.

13 years ago[HttpListener] Small improvements
Gonzalo Paniagua Javier [Sun, 13 Feb 2011 13:13:13 +0000 (08:13 -0500)]
[HttpListener] Small improvements

Less allocations in managed and unmanaged code.

13 years ago[HttpListenre] Avoid multiple calls to Close()
Gonzalo Paniagua Javier [Sun, 13 Feb 2011 12:06:55 +0000 (07:06 -0500)]
[HttpListenre] Avoid multiple calls to Close()

HttpListenerResponse could be calling HttpConnection.Close() more than
once.

13 years agoFix reading of cattr arguments of type Type[]. Fixes #670331.
Zoltan Varga [Sun, 13 Feb 2011 03:23:20 +0000 (04:23 +0100)]
Fix reading of cattr arguments of type Type[]. Fixes #670331.

13 years agoAdd solution files
Miguel de Icaza [Sun, 13 Feb 2011 03:09:49 +0000 (22:09 -0500)]
Add solution files

13 years agoVarious updates
Miguel de Icaza [Sun, 13 Feb 2011 03:07:05 +0000 (22:07 -0500)]
Various updates

13 years agoPass warnings
Miguel de Icaza [Sat, 12 Feb 2011 21:30:18 +0000 (16:30 -0500)]
Pass warnings

13 years agoVisual Studio build support: updated the scripts that generate csproj files.
Miguel de Icaza [Sat, 12 Feb 2011 06:31:20 +0000 (01:31 -0500)]
Visual Studio build support: updated the scripts that generate csproj files.

With the new C# compiler, the build complexity is vastly reduced, the new setup
is able to produce many of the csproj files.

The next step is to generate a couple of solutions:

* BootstrapSolution: to build the basic assemblies used to
  build the rest of Mono from a set of basic assemblies.

  This should be run to prepare a tree.

* 2.0 solution: builds the various 2.0 libraries and executables

* 4.0 solution: builds the various 4.0 libraries and executables

Installation: where should the resulting assemblies go once they are built?

Where should the assemblies go after the build is complete?

How do we turn a build into an redistributable package?

13 years ago[gzip] Allow partial flush
Gonzalo Paniagua Javier [Sat, 12 Feb 2011 05:03:33 +0000 (00:03 -0500)]
[gzip] Allow partial flush

When Flush() is called explicitly, do a Z_PARTIAL_FLUSH to force gzip
into giving us whatever is available. Less efficient, but compatible
with MS.

13 years agoUpdate the csproj generator targets
Miguel de Icaza [Fri, 11 Feb 2011 23:47:49 +0000 (18:47 -0500)]
Update the csproj generator targets

13 years ago[Socket] Fix invalid cast
Gonzalo Paniagua Javier [Fri, 11 Feb 2011 23:35:29 +0000 (18:35 -0500)]
[Socket] Fix invalid cast

Fix invalid cast when canceling pending operations due to socket.Close.

13 years agoTabControlPainter.cs: Move up the Text / Image of the selected tab, matching .NET.
Thomas Goldstein [Fri, 11 Feb 2011 23:12:54 +0000 (00:12 +0100)]
TabControlPainter.cs: Move up the Text / Image of the selected tab, matching .NET.

13 years agoTabControlPainter.cs: Horizontally center Text and Image when SizeMode = Fixed.
Thomas Goldstein [Fri, 11 Feb 2011 23:08:01 +0000 (00:08 +0100)]
TabControlPainter.cs: Horizontally center Text and Image when SizeMode = Fixed.

13 years agoFix token generation for TypeBuilder's in another assembly. Fixes #671245.
Zoltan Varga [Fri, 11 Feb 2011 23:14:44 +0000 (00:14 +0100)]
Fix token generation for TypeBuilder's in another assembly. Fixes #671245.

13 years ago[fix] changing Form.Enabled sometimes can change the list of OpenForms, fixes 671098
Miguel de Icaza [Fri, 11 Feb 2011 22:34:23 +0000 (17:34 -0500)]
[fix] changing Form.Enabled sometimes can change the list of OpenForms, fixes 671098

13 years agoCheck filename of assemblies before installing with gacutil.
Andrius Bentkus [Sat, 29 Jan 2011 15:35:46 +0000 (16:35 +0100)]
Check filename of assemblies before installing with gacutil.

gacutil just used the filename (which can be different compared to
the assembly name) in order to install assemblies, though afterwards
entirely relied on the filename to be equal to the assembly name.
In other words, installing assemblies where the filename differed
from the assembly name resulted in an incorrect install: the
files were not visible in the GAC.

Example: gacutil -i mysql.data.dll
Wouldn't return any errors, but the assembly (which is called MySql.Data)
still couldn't be reached.

This patch will check for filename compliance and return an error
if it does not comply, which will look like this:
Failure adding assembly v4/mysql.data.dll to the cache: the filename "mysql.data.dll" doesn't match the assembly name "MySql.Data"

A warning is not sufficient, since it will be impossible to remove
the installed junk with gacutil.

13 years agoAdd Mono.XBuild.Utilities/MSBuildUtils.cs to the build.
Zoltan Varga [Fri, 11 Feb 2011 20:57:25 +0000 (21:57 +0100)]
Add Mono.XBuild.Utilities/MSBuildUtils.cs to the build.

13 years agoPretty print MonoString* too in xdb.
Zoltan Varga [Fri, 11 Feb 2011 20:48:42 +0000 (21:48 +0100)]
Pretty print MonoString* too in xdb.