Compare commits

...
1782 Commits
Author SHA1 Message Date
Rodrigo Kumpera 4d9ada68b5 Make sure we don't corrupt the heap when serializing a unix domain socketaddr.
* socket-io.c (create_object_from_sockaddr): The resulting array size must
	be two bytes larger than the sockaddr one since we always serialize the family
	kind at the beginning.

	This fixes a crash on MD-linux-amd64-mono-sgen-3.0 running unit tests.
2012-11-28 18:23:13 -05:00
Rolf Bjarne Kvinge 2209daad1c Make WaitHandle.Wait* behave the same wrt WAIT_IO_COMPLETION. Fixes #8566.
Make the all check for exceptions if interrupted, and wait again
with a re-calculated timeout if no exceptions were to be thrown.

This fixes a deadlock in WaitAny, because WaitAny wasn't checking
for exceptions, just re-calculating the timeout. It also makes
the methods behave the same wrt other APC reasons.
2012-11-28 01:23:20 +01:00
Rodrigo Kumpera 21fad6dbbd Add test-wrench target to bring runtime tests back to life. 2012-11-27 14:10:24 -05:00
Zoltan Varga 91d176cf85 Disable test_0_stack_unwind () test which fails on x86+llvm (#5432). 2012-11-26 23:17:59 +01:00
Rodrigo Kumpera 5f6941c396 Remove SRE.UnmanagedMarshal dependency from System.Reflection.
* FieldInfo.cs:
	* MonoMethod.cs:
	* ParameterInfo.cs: Remove silly dep on UnmanagedMarshal to use
	MarshalAsAttribute which is what we need in the end.

	* icall.c:
	* reflection.c: Use the custom attribute type instead of the SRE
	one. This allows FULL_AOT_RUNTIME to work with stuff that uses
	MarshalAs.
2012-11-26 16:12:42 -05:00
Rodrigo Kumpera b00aa90454 Remove FieldInfo::UMarshal, which is dead code. 2012-11-26 16:12:42 -05:00
Rodrigo Kumpera da410e5b6e Expose MarshalAsAttribute to the runtime. 2012-11-26 16:12:41 -05:00
Jeremie Laval eefe6041ba [corlib] Pass the right scheduler for worker number calculation. Fix #8559. 2012-11-26 12:13:44 +00:00
Sebastien Pouliot e821bb63f3 Do not send IP address as server_name entries and skip non-fatal (warning) alerts when negotiating. Fix bug #8553 2012-11-22 16:37:34 -05:00
Zoltan Varga e71f58ce14 Fix a buffer overflow in the LLVM backend. Fixes #8502. 2012-11-22 15:07:46 +01:00
Martin Baulig f852f8bc94 [System.Configuration]: Imlement ConfigurationElement.EvaluationContext. 2012-11-21 02:25:53 +01:00
Martin Baulig 2560a7c903 [System.Configuration]: Fix filenames in ExeConfigurationFileMap. 2012-11-21 02:25:29 +01:00
Martin Baulig 2f45a48a30 Fix NTLM related test failures.
* Provide a more descriptive [Obsolete] message for the legacy API.

* Refuse to send the LM response unless explicitly enabled with
  Type3Message.DefaultAuthLevel.  The LM response is only actually
  checked by old, pre-historic servers and sending it exposes the
  user's password to very weak encryption.

* Fix some problems when encoding / decoding problems in Type2Message.

* Type3Message now encodes host and domain name in a case-sensitive
  way, fixes the tests.
2012-11-21 02:24:06 +01:00
Lluis Sanchez 99c7c9db36 Add tests for bug #8468
Conflicts:

	mcs/class/System.XML/Test/System.Xml.Serialization/DeserializeTests.cs
2012-11-20 14:46:12 +01:00
Lluis Sanchez e31afd05fe Fix XML serialization bug
When reflecting a class which inherits serializable members from a
base class, the members of the base class must be serialized using the
namespace set in the subclass unless a namespace has been explicitly
set in the base class. Before the fix, the members were always
serialized using the namespace of the base class, even when not set
(in which case it was using the default empty namespace).

Fixes bug 8468 - XML serialization problem.
2012-11-20 14:43:50 +01:00
Dean Ellis ddaa82c2b7 [Mono] TimeZoneInfo.FindSystemTimeZoneById returns null
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=7966

If we cannot find the requiested time zone we should throw a
TimeZoneNotFoundException rather than returning null.
2012-11-19 21:41:01 +00:00
Zoltan Varga 408a3390e0 Check for nullref exceptions in ves_icall_System_Buffer_BlockCopyInternal () since it is called directly without going through the managed wrapper. Optimize the MONO_CHECK_ARG() macros a bit. 2012-11-18 03:11:58 +01:00
Jeremie Laval d2a82c2743 [corlib] Fix unobserved exception being mistakenly propagated to finalizer thread when using ContinueWhenAll.
The problem was that we internally use Task.WhenAll inside TaskFactory.ContinueWhenAll to merge the given tasks into one that we can Continue on to run the passed arguments.

However, the behavior of WhenAll is to collect the exceptions that happened on its parent tasks and to set the aggregate on itself which was not catched by our continuation internally, leading to the exception remaining unobserved and escalating to the finalizer thread.
2012-11-15 15:02:17 +00:00
Sebastien Pouliot a214478534 Add test case from bug #8366 (it was fixed in master, not in 2-10) 2012-11-14 11:26:08 -05:00
Gonzalo Paniagua Javier cdd5f81df6 Hook ProopertyNotified event on data sources
Patch by Rasmus Toftahl Olesen that fixes bug #585577.
2012-11-14 09:27:32 -05:00
Martin Baulig d9732ffa79 Support [OnSerializing] in System.Runtime.Serialization.Json.
This fixes a problem that has been reported on stackoverflow:
http://stackoverflow.com/questions/13362906/onserializing-method-not-called-in-mono-3-0-1
2012-11-13 23:22:21 +01:00
Paolo Molaro 309f5d989c Confirmed fix from Marek for #xambug 8320.
The memberref table is not a valid option for computing the
MemberRefParent tag size.
2012-11-13 17:22:05 +01:00
Sebastien Pouliot 9550a304a6 Only send server_name extension for TLS (not SSLv3). Fix for #8312 2012-11-13 09:31:43 -05:00
Martin Baulig 8a2a992c48 Implement NTLMv2 Session and NTLMv2 Authentication.
By default, we use NTLMv2 Session if the server supports it
and fall back to LM and NTLM.

The default behavior can be configured with the static
Mono.Security.Protocol.Ntlm.Type3Message.DefaultAuthLevel
property.

To use NTLMv2, you must explicitly set this to
NtlmAuthLevel.NTLMv2_only.

This is similar to the LAN Manager Authentication Level on
Windows (http://msdn.microsoft.com/en-us/library/ms814176.aspx).
2012-11-09 17:15:47 +01:00
Rodrigo Kumpera a0f2930ea5 When inflating a (M)VAR make sure we're not using a broken type.
*class.c (inflate_generic_type): When inflating (M)VAR we must
	check if the replaced type is not void or typedbyref as both can
	later lead to all sorts of nasty crashes or memory corruption.
2012-11-01 18:05:48 -04:00
Alan McGovern 117caa26b6 [corlib] Remove the DebuggerDisplay attribute from KeyValuePair and DictionaryEntry
This attribute gives us a horrible debugging experience when the
'Value' of the KeyValuePair is null. By using this attribute, the
user is told that the KeyValuePair itself is null when they inspect
something like 'new KeyValuePair<string, string> (null, null)'.
This is very confusing.

We should just let the ToString method be invoked, which returns a
nicely formatted string. This is also the behaviour observed when
debugging using Visual Studio.
2012-11-01 17:14:23 +01:00
Zoltan Varga 139d505ed5 Avoid throwing exceptions from WeakReference.IsAlive after finalization when the underlying GCHandle is already finalized. Fixes #8072. 2012-11-01 16:16:00 +01:00
Zoltan Varga 7dda372ef0 Properly inflate arrays of generic parameters in resolve_object (). Fixes #7964. 2012-11-01 15:51:58 +01:00
Martin Baulig 4025e280a3 [#7637][Web]: This is supposed to fail prior to .NET 4.0.
Fixes my previous commit 1ccb01e.
2012-10-29 15:51:38 +01:00
Martin Baulig 63506fa47c [#7637][Web]: Support empty write streams. 2012-10-27 01:17:34 +02:00
Martin Baulig a32f625ee5 [6329][Web]: Fixed abort race condition in WebConnection.ReadDone().
ReadDone() now passes the 'WebConnectionData' instance to GetResponse()
and 'readState' has been moved into 'WebConnectionData'.

Abort() can now reset 'Data' while ReadDone() still uses the old
instance, but learns about the abort request from 'data.ReadState'.
2012-10-27 00:59:31 +02:00
Martin Baulig 1d9b4ba977 Emit WebAsyncResult's callback on same thread on sync completion.
This fixes System.Net.Http.HttpClientTest.Send_Content_Put ().
2012-10-27 00:59:10 +02:00
Zoltan Varga c8376af1a0 Clear sb->cached_str in mono_string_utf8_to_builder () so if the same stringbuilder is passed to two pinvoke calls, the modifications made by the second are visible in the result of sb.ToString (). Fixes #7980. 2012-10-26 04:14:53 +02:00
Atsushi Eno ca949036f8 fix bug #7957: empty dictionary should not be read siblings as content. 2012-10-24 12:00:56 +09:00
Martin Baulig 96cd4cf98b [#7258][Web]: Fix proxy authentication for non-ssl sessions
Thanks a lot to Christian Gan for this patch :-)
2012-10-24 01:25:48 +02:00
Martin Baulig ebdd362914 Fix CookieParserTest.TestExpires().
DateTime.MinValue.ToUniversalTime() != DateTime.MinValue
if you're living east of Greenwich.
2012-10-23 07:31:20 +02:00
Martin Baulig 3f06859a91 Test; fixed the mono-mac-2.10 buildbot. 2012-10-23 06:00:42 +02:00
Martin Baulig 0d1297095c Test; trigger buildbot run. 2012-10-23 03:56:51 +02:00
Martin Baulig 771b5f6e3e Test; testing buildbot. 2012-10-23 00:52:20 +02:00
Jeffrey Stedfast 67c3717890 [xbuild] PCL targets needs to load MonoAndroid targets file from MSBuildExtensionsPath
Fixes bug #7905
2012-10-22 12:32:14 -04:00
Martin Baulig 5e29582df8 [#7258][Web]: Check 'Connection: close' header.
When receiving a 407 in CreateTunnel(), check whether the server
asks to close the connection.

Thanks again to Christian Gan for this patch.
2012-10-21 21:31:32 +02:00
Martin Baulig d470f01a0b [#7599][Web]: Use original uri to compute service point hash.
Use the original request Uri, not the proxy address, to compute
the service point hash.
2012-10-21 21:31:22 +02:00
Zoltan Varga 3aa1d61880 Make comparison of array types in mono_metadata_class_equal () go through do_mono_metadata_type_equal (), so arrays of generic parameters are handled correctly. Fixes #7848. 2012-10-19 17:15:34 +02:00
Martin Baulig c3743734be [#7258][Web]: Support multiple proxy auth methods.
* AuthenticationManager.EnsureModules(): Swap the order of the
  modules, putting the strongest ones first.

* WebConnection.CreateTunnel(): Pass the proxy's address to
  AuthenticationManager to support CredentialsCache.  Only attempt
  one single authentication method.

I've done some extensive testing with different squid configurations
(digest only, ntlm only, digest and ntlm, ntlm and digest) and the
.NET runtime only attempts one single authentication method.

If you provide credentials like this:

	var proxy = new WebProxy (proxyUrl, false);
	proxy.Credentials = new NetworkCredential ("user", "pass", "domain");

then these must match the server's first authentication method.

You can also use a CredentialsCache like this:

	var ntlm_cred = new NetworkCredential ("u1", "p1", "d1");
	var digest_cred = new NetworkCredential ("u2", "u3", "d2");

	var cc = new CredentialCache ();
	cc.Add (proxy_uri, "NTLM", ntlm_cred);
	cc.Add (proxy_uri, "Digest", digest_cred);

	var proxy = new WebProxy (proxy_uri, false);
	proxy.Credentials = cc;
2012-10-19 04:21:21 +02:00
Christian Gan 62e090c406 [#7258][Web]: Implement NTLM proxy authentication.
This is mostly Christian Gan's patch for the bug report, I only
did a few minor tweaks to it.  Thanks a lot for helping me out
with this.  Martin.
2012-10-19 04:20:57 +02:00
Martin Baulig 9101c02a74 [#7258][Web]: Fix proxy authentication for secure connections.
In WebConnection.CreateTunnel():

* Support multi "Proxy-Authentication" headers from the server.

* Pass a fake HttpWebRequest with method "CONNECT" to
  AuthenticationManager.Authenticate(); the HTTP method is part
  of the digest response.

* Add "Proxy-Connection: Keep-Alive".
2012-10-18 05:53:09 +02:00
Bojan Rajkovic 045289564b Revert "Bug 2663: Regular Expression Bug Fixes"
This reverts commit dc6efdab29. This
patch completely regressed performance for regexes in the same class
as the regexes it fixed. Xamarin bug #6198 details the regressions,
and I've confirmed that reverting this commit fixes the 2 order of
magnitude performance drop (with the patch, the test takes almost 7
seconds, without it, it takes .07 seconds). The bug still needs to be
fixed, but this is not the right fix.
2012-10-17 13:21:18 -04:00
Sebastien Pouliot 892654f252 Add support for 'server_name' extension in the TLS client hello message. Fix for #7664 2012-10-17 11:27:14 -04:00
Martin Baulig 96f958e38c mono_lookup_pinvoke_call: Correctly handle full path names.
* Fix the prefix matching code: if the dllmap path is "/path/foo",
  we want to look for "/path/libfoo", not "lib/path/foo".

* Check for @executable_path, @loader_path and @rpath on OS X.
  (see http://stackoverflow.com/questions/12834141/setting-path-of-the-native-library-for-dllimport-on-mono-for-mac/).
2012-10-13 02:10:55 +02:00
Martin Baulig 787fc121d6 [WCF,Serialization] Improve and fully implement support for collection types.
* System.Runtime.Serialization/XsdDataContractImporter:
      Check ImportOptions.ReferencedCollectionTypes to determine the proxy type.

* System.ServiceModel.Description/MetadataImporter.cs:
      Very simply implementation of the 'State' property.

* System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:
      Use it here.

* Test/Resources/WSDL: Added some sample .wsdl files for the new tests; adding
      these as resources to the test dll.

* Test/System.Runtime.Serialization: Added WsdlHelper.cs,
      XsdDataContractImporterTest2.cs and XsdDataContractExportTest2.cs
2012-10-11 14:13:49 +02:00
Martin Baulig cbec3d742a [WCF]: Fix WSDL import of methods with complex return types.
There is no bug report, the problem has been reported here:
http://stackoverflow.com/questions/12551090/monotouch-wcf-service-reference-cs-errors/12669880

DataContractSerializerMessageContractImporter.IsOperationImported()
did not check the method's return value, so it failed to recognize
methods such as

	[OperationContract]
	DateTime GetDate ();

as already being imported.  This caused the method to be imported with
both the DataContractMessageContractImporterInternal and the
XmlSerializerMessageContractImporterInternal, but the latter does not
resolve type references, see the FIXME in that class.

I also added a new test case for this.
2012-10-11 14:13:25 +02:00
Sebastien Pouliot 838b66aafa [OSX][iOS] Ensure 'sectrust' is released even if we deny the request 2012-10-09 19:46:37 -04:00
Sebastien Pouliot 23692ff63d Provide a non-null X509Chain in the callback for MonoTouch (useful for custom validations) but we are not fully building it (since we do not use the output) and this can be done if customization is required 2012-10-09 19:46:21 -04:00
Rodrigo Kumpera 4a5a65cbe9 Make sure that the unsafe array store intrinsics emit a write barrier.
* method-to-ir.c: Array.UnsafeStore and Array.SetGenericValueImpl must
	emit a write barrier for reference types.
2012-10-03 12:28:38 -04:00
Rodrigo Kumpera acc97565c9 Disable the type check on reference type array stores.
* method-to-ir.c (emit_array_store): We can avoid the type check
	on stores to reference arrays as it turns out List<T> is not
	covariant to its element type as I previously thought so.
2012-10-02 16:14:44 -04:00
Rodrigo Kumpera 167af9a1b9 List<T> accessors now use Array.Unsafe(Load|Store). 2012-10-01 15:16:54 -04:00
Rodrigo Kumpera 5ee66e1983 Implement Array.UnsafeLoad and Array.UnsafeStore. Both functions ignores bounds check when possible.
* Array.cs: Add UnsafeLoad and UnsafeStore functions that don't perform bounds check.
	The JIT will generate, when possible, direct a load/store. Right now the only case we can't
	handle are stores to reference arrays.

	Reference arrays are covariant on their element type which means that we must perform a runtime
	type check on stores to preserve type safety. Since the type check is usually must more expensive
	than the bounds check we simply ignore this for now.

	The reasoning behind this decision was that given our initial target are corlib's collections and
	they are too covariant to their element types they do need too a runtime type check on stores to ensure
	correctness.
2012-10-01 15:15:24 -04:00
Rodrigo Kumpera c8200121e5 Extract the array store code to separare function. 2012-10-01 15:03:37 -04:00
Zoltan Varga 117a60e03d Fix some sign extension issues in the 2 dimensional array access implementation on 64 bit platforms. Fixes #7438. 2012-09-29 02:22:07 +02:00
Martin Baulig 8182c8c908 [#7424]: Fix regression in same-origin-check for Cookies.
Disable same-origin checks when the cookie does not have a domain
and we default to the Uri's hostname.
2012-09-27 04:08:47 +02:00
Sebastien Pouliot 98e4842eb1 Fix CFB mode for Rijndael when data is not a multiple of block size 2012-09-26 20:37:56 -04:00
Martin Baulig 0fa7cd1607 [#7200]: WebRequest returns result in another thread.
This is a partial revertion of master commit #9069d07, which was
backported into mono-2-10 in commit #bfa23f8.

I only reverted the change in line 716, keeping the rest of the
commit in place.
2012-09-27 02:21:33 +02:00
Martin Baulig d775e2b2c4 Fix my 512fc194, which broke the build. 2012-09-27 00:16:11 +02:00
Martin Baulig 512fc1943e Fix #5899: WebClient.*Async() now correctly builds the query string.
I also added 'async_thread.IsBackground = true'.

These methods could also use some more love; I filed a new bug #6904
about that.

Conflicts:

	mcs/class/System/System.Net/WebClient.cs
2012-09-26 16:08:59 -04:00
Martin Baulig e0d162c5f3 [#7299][Serialization]: Fixed and improved collection serialization.
* Implement "Interchangeable Collections" and Collection Interface Types.
  (see http://msdn.microsoft.com/en-us/library/aa347850.aspx)

* Add element type check for arrays.

* Identify custom collection types (must have a public parameterless
  constructor and an "Add" method with the correct argument type) and
  distinguish them from types which implement one or more of the
  collection interfaces without being a custom collection type.

* Add some checks for [CollectionDataContract].

* Added some NUnit tests for that.
2012-09-26 15:39:43 -04:00
Martin Baulig d9ba2c3f81 Fix #275: "net.tcp://localhost:<port>/<path>" should listen on IPAddress.Any. 2012-09-26 15:27:56 -04:00
Martin Baulig ee5cb70e09 Fix #5655: Always send HTTP headers for WebDAV methods. 2012-09-26 15:27:46 -04:00
Zoltan Varga 6cd6738b10 Fix the computation of TLS reference bitmaps (#6755) properly by using a 'numbits' variable instead of the confusing 'max_bits' variable. 2012-09-26 17:21:16 +02:00
Duncan Mak 1c1e95ef26 Fix typo 2012-09-24 13:21:00 -04:00
Jonathan Pryor 5e16340a14 [mdoc, .xsd] Allow the <returns/> element to contain <c/> elements.
It's frequently useful (and accidentally used) to have <c/> within
<returns/> blocks:

	<returns>
		<c>-1</c> at end of stream; otherwise the number of bytes read.
	</returns>

Allow this to validate.
2012-09-24 12:47:33 -04:00
Martin Baulig e79dc9ab02 Only set Cookie.Port if Cookie.Version == 1.
Background:

* Cookie.Port's property setter sets Version to 1, thus forcing strict
  RFC 2109 compliance.  This is also what the .NET runtime does when
  assigning this property.

* When parsing the result of a web request, .NET 4.5 only sets Cookie.Port
  when the Set-Cookie: header contains "Version=1".

* Google Chrome does not check cookie ports at all.
2012-09-22 02:27:38 +02:00
Martin Baulig 04914757fc [#6041][WebServices]: Don't crash if an operation doesn't have <wsdl:output>. 2012-09-22 02:25:22 +02:00
Martin Baulig 47f41c2dcb [#4511][WCF]: Fix DuplexClientBase channel initialization.
For duplex channels, the ClientRealProxy needs to support both
IClientChannel and IDuplexContextChannel.
2012-09-22 02:25:15 +02:00
Rolf Bjarne Kvinge 9e961425a3 Marshal sockaddrdl manually, since it contains a variable-length byte array. Fixes #7329. 2012-09-21 02:06:56 +02:00
Martin Baulig eb689f02ef [WCF] Fix relative endpoint addresses that start with a '/'.
For instance:

	ServiceHost host = new ServiceHost (typeof (Foo), new Uri ("http://localhost/echo"));
	var b = host.AddServiceEndpoint (typeof (Foo), new BasicHttpBinding (), "/b");

should resolve into 'http://localhost/echo/b'.
2012-09-19 07:17:53 +02:00
Martin Baulig 7fb4041c2f [#1340][WCF]: Fix null reference when using invalid HTTP methods. 2012-09-19 07:17:45 +02:00
Martin Baulig c16c0b31d2 [#7177][WCF]: Correctly handle derived FaultExceptions. 2012-09-19 07:17:14 +02:00
Martin Baulig 68117e0098 [#5935][BinaryFormatter]: Fix serialization of generic arrays. 2012-09-19 07:17:05 +02:00
Martin Baulig 9983d67f87 [#6187][WCF]: Fix contract interface inheritance. 2012-09-18 05:21:50 +02:00
Martin Baulig 9d52a8ce00 [#6489][SoapFormatter]: Reset culture before raising events. 2012-09-18 02:59:39 +02:00
Martin Baulig 8a921615b2 [#6515][WCF]: Enable custom headers for NET_2_1.
This allows

	HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
	request.Headers.Add ("Foo", "Bar");

	OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);

The code was already there, but disabled for the NET_2_1 profile.
2012-09-17 17:34:02 +02:00
Rolf Bjarne Kvinge 3651d5c250 TimeZoneInfo.Local must be cached, otherwise reference comparisons fail later on.
This fixes an issue reported here: http://lists.ximian.com/pipermail/monotouch/2012-September/011784.html
2012-09-17 12:06:06 +02:00
Martin Baulig 9c5a1b6ffa [#6201][WCF]: Don't crash if we don't have a client certificate. 2012-09-15 21:16:16 +02:00
Duncan Mak b6441229fa Revert "Use the full path to MonoPosixHelper in mono's config file."
This reverts commit 406140257b.
2012-09-14 16:40:04 -04:00
Sebastien Pouliot 9b545aaabf [OSX] Reset errors to 0 if the OS tells us that (1) the chain is ok, (2) the certificate usage is for SSL server and (3) the server identity is confirmed (2+3 were part of an earlier fix). Without this reset we depended on the mono certificate store as an extra condition (which would requires mozroots to be executed and we want to avoid this 'duplicated' requirement and trust OSX). This does not affect iOS where no mono stores exists. 2012-09-13 20:49:15 -04:00
Jonathan Pryor 329c0ffe11 [M4A] Clear RemoteCertificateChainErrors if Android validates the chain.
The problem: Mono for Android 4.2.5 horribly broke SSL support:

	http://lists.ximian.com/pipermail/monodroid/2012-September/012213.html

Why? Because of ad89f72f (kinda): As Mono for Android doesn't provide
or use its own set of SSL root certificates (opting instead to just
let Android worry about it), the `chain.Build()` method will ALWAYS
result in SslPolicyErrors.RemoteCertificateChainErrors being returned
from GetErrorsFromChain().

The world before ad89f72f "masked" this because errors & status11 were
always cleared if Android accepted the chain; however, clearing these
out masked other bugs, such as #5706 (in which https://74.125.224.134
is accepted as valid when it can't be valid, by definition).

The fix is to clear out SslPolicyErrors.RemoteCertificateChainErrors
if Android accepts the certificate chain. Any other errors are left
unchanged, thus keeping #5706 fixed.
2012-09-13 14:56:29 -04:00
Rolf Bjarne Kvinge f58f8b8a14 Add support for armv7s. 2012-09-13 13:17:21 +02:00
Martin Baulig c2b8bc30cb Fixed and improved Mono's Cookie implementation.
* Updated the tests to reflect .NET 4.5's new improved behavior.
* Fixed subdomain matching rules.
* Added some very simple sanity checks, such as same origin and
  public suffixes.

This is far from perfect, but the tests now pass with .NET 4.5
and this also fixes a Monotouch bug from one of our customers.

TODO:

* Using 'Cookie.Version = 1' (RFC 2109 compliance) apparently got
  broken in .NET 4.5; I disabled the corresponding tests / made
  them use the default 'Version = 0' where possible.

* Same origin has not been tested for security (it previously
  didn't exist at all) and we should probably use the list at
  publicsuffix.org; but .NET 4.5 also allows you to set a cookie
  .co.uk (haven't tested their web stack, thoug - it's possible
  that they have additional checks there).
2012-09-13 02:20:06 +02:00
Duncan Mak 313118e1d7 Include gdiplus in mono/config. 2012-09-12 16:20:27 -04:00
Duncan Mak 406140257b Use the full path to MonoPosixHelper in mono's config file. 2012-09-12 16:20:26 -04:00
Jérémie Laval d9a1d9e930 [System.Core] Check for canceled operation when invoking inner call 2012-09-12 15:49:43 +02:00
Mark Probst 13371cd7a2 [sgen] Provide a function to wait for bridge processing to finish. 2012-09-11 21:31:15 +02:00
Atsushi Eno e53fc0c952 in MONODROID profile, TimeZoneInfo should not return null entry. 2012-09-11 21:54:57 +09:00
Rolf Bjarne Kvinge 246a0a2fa4 Add an unhandled exception hook embedders can use to report unhandled exceptions as they wish. 2012-09-10 23:27:51 +02:00
Sebastien Pouliot 18a260bc95 Add two-keys triple-des test case (works with Mono but not with CommonCrypto, see #6968) 2012-09-07 09:17:36 -04:00
Atsushi Eno 099d197b21 add Android-specific ping path. 2012-09-07 17:35:11 +09:00
Jérémie Laval 356de4b625 [System.Core] Fix compare bug in PLinq's Contains implementation 2012-09-06 13:24:05 +01:00
Jérémie Laval 75d8f4b63c [System.Core] Remove Max/Min generic indirection 2012-09-06 10:26:46 +01:00
Jérémie Laval 28b9e04fd9 [System.Core] Remove generic indirection for Count/LongCount 2012-09-05 16:40:41 +01:00
Jérémie Laval 3d71903120 [System.Core] Fix issue in Join where some data might have been dismissed by accident
Conflicts:
	mcs/class/System.Core/Test/System.Linq/ParallelEnumerableTests.cs
2012-09-05 15:39:44 +01:00
Jérémie Laval f656531304 [System.Core] Fix ICE for older library lacking contravariance
Conflicts:
	mcs/class/System.Core/System.Linq.Parallel.QueryNodes/QueryGroupByNode.cs
2012-09-05 14:40:51 +01:00
Jérémie Laval 3176523609 [System.Core] Remove a source of generic indirection for GroupBy 2012-09-05 14:39:31 +01:00
Jérémie Laval f8f1d60790 [System.Core] Fix possible state corruption in ReaderWriterLockSlim. Fix #6635.
The problem was triggered in a situation where threads were competing for the write-lock and were using timeout:
   - thread t1 takes the lock (state = RwWrite)
   - thread t2 tries to take the lock but fails because of t1, it registers it interest (state = RwWrite | RwWait) and goes to sleep
   - thread t3 tries to take the lock but failes because of t1 and don't register any interest because t2 did it already (state = RwWrite | RwWait)
   - t1 releases the lock, waking up t2 and t3 which race for it with t3 winning the race (state = RwWrite)
   - t2 tries to go back to sleep but has overrun its timeout so it exits.
   - with t2 exiting, it tries to remove previously registered interest (state = RwWrite - RwWait -> corruption).
2012-09-04 18:54:04 +01:00
Jérémie Laval 89e884094a [System.Core] Returns false in SequenceEqual when the two sequences size are different 2012-09-04 16:36:47 +01:00
Jérémie Laval 63c200e3d3 [System.Core] Remove generic indirection 2012-09-04 16:06:13 +01:00
Jérémie Laval 85f30d851a [System] Fix timeout in BlockingCollection. Fix #6732. 2012-09-04 14:45:05 +01:00
Jérémie Laval db95d188fb [System.Core] Remove generic indirection in ParallelExecuter.Process 2012-09-04 13:56:20 +01:00
Jérémie Laval f510c462ea [System.Core] Remove generic indirection for ToDictionary 2012-09-04 12:15:08 +01:00
Jérémie Laval 5f536b5b42 [System.Core] Remove generic indirection for ToArray 2012-09-04 12:15:05 +01:00
Jérémie Laval 942199fc89 [System.Core] Remove generic indirection for ToList 2012-09-04 12:15:00 +01:00
Jérémie Laval f21ee49072 [System.Core] Remove a source of generic indirection 2012-09-03 19:34:32 +01:00
Zoltan Varga 9757685b36 Fix an off-by-one in the computation of the TLS reference bitmaps. Fixes #6755. 2012-08-30 22:00:05 +02:00
Alan McGovern e30f1ec9c0 [Microsoft.Build.Tasks] Don't throw if duplicate dependencies are found
We should use the dictionary setter instead of the Add method so that
we do not get an exception if the same Nth order dependency is found
multiple times
2012-08-30 01:24:02 +01:00
Alan McGovern c6be26d5ea [Microsoft.Build.Tasks] Fix several bugs in ResolveAssemblyReference
XBuild was adding both the primary references and nth-order references
to the ResolvedFiles output variable. This meant that dependent assemblies
were being added to the commandline passed to the compiler which caused
all sorts of issues.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=6708 and adds
tests to cover the changes to ensure they are correct.
2012-08-29 14:48:54 +01:00
Andreia Gaita e0871deeba [MSBuild] Fix wildcard parsing such as Include="dir\**"
The directory scanner was failing if the wildcard was the last item
on the path. Fix it, and also fix the excluded items detection to
make sure it checks the full path as well (paths may or may not be
rooted). Add a test for this.
2012-08-29 14:48:48 +01:00
Alan McGovern a51d8788e3 [Microsoft.Build.Tasks] Fix some simple caching to improve build times
Large projects now have significantly less overhead when calculating
assembly references and referencing gac assemblies.
2012-08-29 14:48:42 +01:00
Alan McGovern 14ae191489 [Xbuild] Use OrdinalIgnoreCase not InvariantCultureIgnoreCase
It's chewing up a fair bit of CPU time and buys us nothing. We only care
about ordinal ignore case for these scenarios.
2012-08-29 14:48:37 +01:00
Alex Earl 8edc967a26 Fix unit test for OverwriteReadonlyFiles 2012-08-29 14:48:32 +01:00
Slide d8d87e6613 [xbuild] Add 'OverrideReadOnlyFiles' property to Copy task.
Also, fixed Bugzilla 2239 where the copy task does not
behave the same as msbuild when a file being copied is
ReadOnly. msbuild resets the attributes of the file to
Normal in this case.
2012-08-29 14:48:26 +01:00
Zoltan Varga 0a3afd84a5 Avoid returning a 0 exit code from xbuild if one of the projects in an .sln file fails to build 2012-08-29 14:48:20 +01:00
Ankit Jain b57b90e3b9 [xbuild] Pick the correct base path for target frameworks.
Don't depend on Environment.GacPath to figure out the framework
base path ("..../xbuild-frameworks"). This broke on fedora, where
it mapped to $prefix/lib/mono instead of $prefix/lib64/mono .
Which caused framework assemblies to be picked from "lib" instead
of "lib64".
2012-08-29 14:48:14 +01:00
Rolf Bjarne Kvinge bede03d5fd Microsoft.Build.Tasks: vbnc2 must be used for the 2.0 profile 2012-08-29 14:48:09 +01:00
Zoltan Varga ba69969a33 Emit line number table in the sdb debug log. 2012-08-28 19:59:16 +02:00
Zoltan Varga 8153b50ff3 Add a MONO_SDB_ENV_OPTIONS env variable to allow passing extra options like loglevel to sdb. 2012-08-28 19:53:01 +02:00
Paolo Molaro 87b321f611 Avoid direct access to /dev/shm on some platforms. 2012-08-27 10:16:21 +02:00
Sebastien Pouliot b24e740510 [M4A] Do not reset 'errors' and 'status11' when a certificate is trusted. Fix last part of #5706 2012-08-23 16:41:28 -04:00
Sebastien Pouliot 4b9e7cafc6 [OSX|iOS] Do not reset 'errors' and 'status11' when a certificate is trusted. Use the OS to validate the certificate (as valid for SSL server usage) and for the host name checks. Fix parts of #5706 2012-08-23 16:41:19 -04:00
Sebastien Pouliot 78320b9187 Fix binding (type) and value error (true) that could lead to error #5 (kSecTrustResultRecoverableTrustFailure) for valid certificates. Fix bug #4001 2012-08-23 10:48:28 -04:00
Jeffrey Stedfast ef7e7ce38d [xbuild] Fixed Microsoft.Portable.CSharp.targets to use smcs
Fixes bug #6649
2012-08-22 13:45:01 -04:00
Petr Onderka e8a6fe06ca new CancellationTokenRegistration().Dispose() shouldn't throw
Conflicts:

	mcs/class/corlib/Test/System.Threading/CancellationTokenTests.cs
2012-08-20 01:30:01 +01:00
Petr Onderka d7dcebde97 Check key for null in ConcurrentDictionary 2012-08-20 01:30:01 +01:00
Alan McGovern b98640fe96 [System.Xml.Linq] Add error checking to the XElement constructors
Added matching tests.
2012-08-16 15:25:36 +01:00
Zoltan Varga f3d493d315 Free the newly added assembly->remapped_tokens hashtable. 2012-08-16 02:47:46 +02:00
Zoltan Varga d9e782e1f0 Handle ConstructorBuilders in fixup_cattrs () correctly. Fixes #689533 (nemerle build). 2012-08-16 02:41:00 +02:00
Miguel de Icaza 207b46dca9 Revert 4e5e52a298, which was pull request 242, which was novell bugzilla #689533
This patch miscompiled attributes like this:

                [EditorBrowsable (EditorBrowsableState.Advanced)]
                [Export ("init")]
                public  CAKeyFrameAnimation () : base (NSObjectFlag.Empty)
                {
                        if (IsDirectBinding) {
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
                        } else {
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
                        }
                }

In particular the [Export ("init")] method to be compiled like this:

    // method line 6274
    .method public hidebysig specialname rtspecialname
           instance default void '.ctor' ()  cil managed
    {
        .custom instance void class [System]System.ComponentModel.EditorBrowsableAttribute::'.ctor'(valuetype [System]System.ComponentModel.EditorBrowsableState) =  (01 00 02 00 00 00 00 00 ) // ........

        .custom instance void class MonoMac.CoreGraphics.CGImage::'.ctor'(int32, int32, int32, int32, int32, class MonoMac.CoreGraphics.CGColorSpace, valuetype MonoMac.CoreGraphics.CGImageAlphaInfo, class MonoMac.CoreGraphics.CGDataProvider, float32[], bool, valuetype MonoMac.CoreGraphics.CGColorRenderingIntent) =  (01 00 04 69 6E 69 74 00 00 ) // ...init..

Notice the "CGImage" attribtue instead of the ExportAttribute
2012-08-14 17:00:31 -04:00
Sebastien Pouliot 59f8ccff70 Add MD4, SHA384 and SHA512 signature verification to X.509 certificates
* X509Certificate.cs: Add MD4 (if available), SHA384 and SHA512
RSA signature verification
2012-08-14 13:27:02 -04:00
Sebastien Pouliot c41f66b93f Avoid throwing (just return false) when verifying an RSA certificate with dsaSHA1
* X509Certificate.cs: Do not throw a CryptographicException for "unknown
hash algorithm" when asked to verify a RSA certificate with dsaSHA1 since
this can happen when a bad/incomplete chain is being tested.
2012-08-14 13:27:02 -04:00
Sebastien Pouliot 5ff0bf12d2 Add support for validating RSA-based X.509 certifcates using SHA256
* X509Certificate.cs: Add mappings for 1.2.840.113549.1.1.11
2012-08-14 13:27:01 -04:00
Sebastien Pouliot c672257edb Do not throw in IsSelfSigned on non-RSA based certificates
* X509Certificate.cs: Handle DSA or DSA paramaters-only certificates
in IsSeldSigned
2012-08-14 13:27:01 -04:00
James Bellinger aa99529c2d Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously this method was returning in GetFields (declaration) order. It now returns sorted by the unsigned value of the enum as is correct.
Ran into this while calling Type.GetEnumNames and Type.GetEnumValues.
To my surprise the pairs didn't match up. Anyway, here's a fix.
2012-08-14 17:17:07 +01:00
Zoltan Varga 67f377f0b7 Fix debugger invokes which return pointer types. Fixes #4214. 2012-08-14 01:32:08 +02:00
Juho Vähä-Herttua ecb05bdde0 Fix HMACSHA384 and HMACSHA512 for key length of [65, 128] bytes. 2012-08-13 14:10:19 -04:00
Sebastien Pouliot 7d4183e828 Add test cases from #6510 2012-08-13 14:10:18 -04:00
Jonathan Pryor 0bb4db9401 Pass SSL certificate chain, not just collection, to Mono.Android.dll
Fixes BCL half of: https://bugzilla.xamarin.com/show_bug.cgi?id=6501

Today I learned that the SSL certificate collection (as held in
X509CertificateCollection) is a potentially unordered sequence of SSL
certificates, which not all versions of Android will validate.

The fix is to use the properly ordered SSL certificate chain (as held
in X509Chain), and have Android validate that.
2012-08-13 13:50:53 -04:00
Sebastien Pouliot 879adcdfab Wrap potential exceptions (like #6425 NRE) inside an (expected) WebException 2012-08-10 16:54:24 -04:00
Rolf Bjarne Kvinge c1288989c9 [Sqlite] Rework type mapping between sqllite and .net using sqlite's substring matching. Hopefully this will fix #5577 for good. 2012-08-09 15:06:59 +02:00
Jonathan Pryor 77f1b3fe63 Add note that UnixDirectoryInfo.Create() follows umask. 2012-08-07 15:42:06 -04:00
Alan McGovern 777753a5c5 Bump mono-2-10 to have a version number of 2.10.10 2012-08-02 15:00:22 -04:00
Paolo Molaro b0e367c025 Fixes xambug#2965: enqueue the correct worker instance (change from Tammo Hinrichs). 2012-08-02 20:03:55 +02:00
Rodrigo Kumpera ef23d8545e Disable native trace collection and spew on desktop. 2012-08-02 13:44:02 -04:00
Jonathan Pryor 6671c332e6 Enable IPv6 support under Android.
Android now supports IPv6.

Reverts: 55a3c344
2012-07-31 07:38:01 -04:00
Jeremie Laval e9c2847e83 [System] Check for Abort state when poping so that we can retry 2012-07-25 17:38:32 +01:00
Jeremie Laval 98835184b2 [corlib] Dont use blocking wait call in CancellationTokenSource test 2012-07-25 16:10:28 +01:00
Jérémie Laval 39109fbb04 [corlib] Remove now unneeded line 2012-07-25 16:10:00 +01:00
Jérémie Laval 1e221161b7 [corlib] Also unregister linked tokens when the proxy CancellationTokenSource becomes cancelled. 2012-07-25 15:49:55 +01:00
Jérémie Laval fd30c84ca4 [corlib] Linked token callback to the proxy CancellationTokenSource shouldn't throw ODE in concurrent situations.
Conflicts:

	mcs/class/corlib/System.Threading/CancellationTokenSource.cs
2012-07-25 15:47:53 +01:00
Jérémie Laval 9e1c3635ff [corlib] Dispose linked tokens connections when disposing the resulting CancellationTokenSource
Based on baulig's patch: https://github.com/baulig/mono/commit/3ee4f7600b8efe61f7a701a93fffed8373b7b4b3

Conflicts:

	mcs/class/corlib/System.Threading/CancellationTokenSource.cs
2012-07-25 15:45:24 +01:00
Jeremie Laval 9c30bb3bbc [System] Optimize ConcurrentBag, implement TryPeek and add unit tests
Initially reported by linquize

Conflicts:

	mcs/class/System/Test/System.Collections.Concurrent/CollectionStressTestHelper.cs
2012-07-25 14:41:09 +01:00
Marek Habersack 412fb275d3 Fix the build 2012-07-25 08:44:12 -04:00
Marek Habersack 049bb49f1c Update to fix for Novell bug #739119 2012-07-25 08:43:55 -04:00
Marek Habersack 04245de5c4 Fix for Novell bug #739119 2012-07-24 19:06:19 -04:00
Alex Rønne Petersen 7770151c3d Merge pull request #405 from linquize/patch-2
Fix typo in OldValue/NewValue for mono-2-10
2012-07-23 21:00:04 -07:00
linquize a54a85a407 Fix typo in OldValue/NewValue in System.ComponentModel.Design/ComponentChangedEventArgs.cs 2012-07-24 11:57:07 +08:00
Miguel de Icaza 1a303bc70c Render obsolete attributes on members 2012-07-23 21:36:37 -04:00
Rodrigo Kumpera 6954c0c4ac Switch the unhandled exception spew to use the new native backtrace when available. 2012-07-20 14:48:23 -03:00
Rodrigo Kumpera 7e8a4d5ef0 Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility available to managed land. 2012-07-20 14:48:23 -03:00
Rodrigo Kumpera 24ec24deb7 Add new mono_exception_get_native_backtrace function that stringify the native backstace with managed and native frames. 2012-07-20 14:48:22 -03:00
Rodrigo Kumpera bcbc8bbfcc Fill Exception::native_trace_ips when doing exception handling. 2012-07-20 14:48:22 -03:00
Rodrigo Kumpera d0f5ade677 Add field to Exception to hold the unmanaged backtrace. 2012-07-20 14:48:21 -03:00
Alan McGovern 04495073c1 Update the tests to do actual verification
Ensure the elements really are added twice.
2012-07-20 17:37:00 +01:00
Alan McGovern 2cd3d8204c Use the result of XUtil.ToNode when emitting events
Sometimes the value the user passes in is converted to an XNode. In
these cases we need to use that XNode when emitting the change events.
Added a test covering this change.
2012-07-20 17:36:52 +01:00
Alan McGovern 5d636d18d6 Emit change events for modifying XElement.Name
Added additional tests for this too.
2012-07-20 17:36:44 +01:00
Alan McGovern 31bbdabec6 Add some tests to verify behaviour of Annotations 2012-07-20 17:36:36 +01:00
Alan McGovern 35b5d4b419 Implement XObjectChange.Value for XAttribute
We now emit the correct Changing/Changed events when modifying the
value of an XAttribute. Added tests covering the changes.
2012-07-20 17:36:14 +01:00
Alan McGovern 94cd06fc6a Begin fixing the XObject.Changing and XObject.Changed events
Add tests to ensure the event is correctly emitted and correctly propagated
up the tree for the basic Add and Remove operations. Fixed the implementation
accordingly.
2012-07-20 17:36:08 +01:00
Alan McGovern 8a82e90853 [System.Xml.Linq] Fix some bugs in the tests
Ensure we normalize both the expected and actual output
so they have the same line endings.
2012-07-20 17:35:57 +01:00
Marek Safar 873a572022 Use correct iterator return type for XPathEvaluate. Fixes #5902 2012-07-20 17:35:49 +01:00
Marek Safar 65a50bb3c1 Add new test 2012-07-20 17:35:40 +01:00
Marek Safar d950656d72 Add missing CreateReader method 2012-07-20 17:35:30 +01:00
Marek Safar 51cc05438e Fix some parameters names 2012-07-20 17:35:06 +01:00
Atsushi Eno b68627cdb8 Do not call WriteString() for whitespace XText. 2012-07-20 17:33:45 +01:00
Atsushi Eno 58b45ea45c Fix bug #2146 - create snapshot copy of nodes before removal in Remove<T>(). 2012-07-20 17:33:26 +01:00
Atsushi Eno 7d514aaf91 Fix bug #2383 patch by Weeble - in XPathExtensions.Evaluate(), return IEnumerable of the underlying object, not XPathNavigator, for node-set values. 2012-07-20 17:33:08 +01:00
Atsushi Eno 27767b384f XDocument could also be filled IXmlLineInfo. 2012-07-20 17:32:11 +01:00
Miguel de Icaza 3dd75ec4a9 Add solution files 2012-07-20 17:30:31 +01:00
Miguel de Icaza 72a62a0e17 mono_lookup_pinvoke_call: prevent leak by keeping a global MonoDl handle for the internal module.
From now on, we will keep a global handle for lookups performed against the "__Internal"
library name.   This will prevent multiple P/Invoke calls from calling mono_dl_open with
filename == NULL for each call.

Since Mono never calls mono_dl_close on P/Invoke lookups, this should not pose a problem.
2012-07-18 22:33:23 -04:00
Rodrigo Kumpera 5f32625301 When calculating allowance, don't blindly cast from double to uint as it might not saturate the result.
* sgen-gc.c (try_calculate_minor_collection_allowance): For workloads with very high
	survival rates the calculated allowance_target can overflow a mword on 32bits systems.
	Given this behavior is unspecified and we've been bitten by it, let's take the safe
	side and manually saturate it.
2012-07-17 14:06:27 -03:00
Marek Habersack 8f5b1a0454 Merge pull request #385 from symform/mono-2-10
Mono 2 10
2012-07-17 03:14:03 -07:00
Gonzalo Paniagua Javier 70d63aa739 GetResponse() returns 0 when it need more data, not -1
GetResponse() returns 0 to signal that it needs more data to complete
	while -1 signals an error processing the data.
2012-07-16 13:53:21 -04:00
Gonzalo Paniagua Javier bfa23f8cd0 Backport from master 2012-07-13 19:34:36 -04:00
Rodrigo Kumpera 249ff94c35 Fix the layout of InternalThread and make sure we won't bump into it. Fix a linux crash.
* appdomain.c: Bump corlib version and add a canary to make sure
	we don't backport layout changes blindly.
2012-07-12 17:10:05 -03:00
Rodrigo Kumpera 0b95cbb8d9 Disable mdb by default as it breaks sgen builds. This has gone unoticed for close to two years now. 2012-07-10 15:33:17 -03:00
Michael Goff 65f7b4a137 Fix for bug #4896: Incorrect routing of catchall parameter
https://bugzilla.xamarin.com/show_bug.cgi?id=4896
2012-07-09 15:41:08 -07:00
Gonzalo Paniagua Javier 5c610044b0 HtmlEncode the path
Fixes Novell bug #769799.
2012-07-06 13:43:45 -04:00
Rolf Bjarne Kvinge 618657c3a5 Rework RectangleF.Contains to not do equality comparison on floating point values. Fixes #5985. 2012-07-05 14:55:09 +02:00
Alan McGovern 5c612297d4 [Microsoft.Build.Tasks] Remove an overly verbose informational message
This warning really pollutes the monodevelop build, so lets nuke it
for now.
2012-07-04 15:45:33 +01:00
Rodrigo Kumpera a47e41749e Use isfinite instead of finite as newer xcode removed it. 2012-07-02 11:22:57 -03:00
Rodrigo Kumpera a2634730e3 Add test for pinned gc handle. 2012-07-02 11:22:56 -03:00
Rodrigo Kumpera 9fba74a47b Fix a pair of bugs in the gchandle code.
* gc.c: Make sure pinned handles actually pin on sgen.
	* gc.c: Use gc_memmove and gc_bzero when dealing with memory
	that has managed references.
2012-07-02 11:22:56 -03:00
Rolf Bjarne Kvinge a1e30ace6f Make mkbundle bundle assemblies a lot faster.
Preallocate the 256 different lines we might write to the assembly file
instead of allocating several strings for every line.

With compression mkbundle is about twice as fast now (since compression
speed hasn't changed), without compression it's 5-10x faster, depending
on the number of assemblies to embed.
2012-07-02 15:46:17 +02:00
Zoltan Varga 2c7ff47245 Remove some assembly from mkbundle which doesn't work on osx 64 bit. 2012-06-30 00:46:33 +02:00
Rodrigo Kumpera 8ac076956b Make the thread abort code multi-thread safe. 2012-06-29 15:32:27 -03:00
Rodrigo Kumpera e4afc97bdd With Socket:Dispose from using Thread.Abort to less agressive alternative.
* Socket_2_1.cs: When closing a socket we need to abort any
	pending syscalls to that socket. For most syscalls the kernel
	does it for us. But accept/connect on linux requires extra
	love.

	We previously used Thread.Abort to implement that, but this
	is a pretty radical solution with very complicated ramifications.
	So instead now we use a new icall cancel_blocking_socket_operation
	that makes sure we only abort the syscall and do nothing else.

	This reduces the trouble surface a lot given how tricky
	Thread.Abort is.
2012-06-29 15:32:24 -03:00
Rodrigo Kumpera 33bec03932 Async close on mac raises ECONNABORTED for connect(). 2012-06-29 15:29:37 -03:00
Rodrigo Kumpera 4bffb9fe56 Add new cancel_blocking_socket_operation icall to Socket.
* socket-io.c: Add cancel_blocking_socket_operation icall
	to Socket so we can abort socket syscalls on other threads
	when we decide to close a socket.
2012-06-29 15:29:13 -03:00
Rodrigo Kumpera f3c60e7b0c New field InternalThread::ignore_next_signal. Bump corlib version due to layout change. 2012-06-29 15:10:37 -03:00
Rodrigo Kumpera 3e78c22f48 Fix race condition in static's inialization of mono_message_init.
* object.c (mono_message_init): Make sure the static field
	we test fo check for initialization is the last to init or
	we risk an abort due to others been null.
2012-06-29 12:52:55 -03:00
Gonzalo Paniagua Javier 02dd6e7f7b Attempt to fix #1553
This should prevent a popular exception to happen again.
2012-06-28 22:20:10 -04:00
Martin Baulig 371d7369a7 Include quotation marks in cookie value. 2012-06-26 15:27:40 -04:00
Martin Baulig 6feffe1373 Correctly parse cookies.
* System.Net/CookieParser.cs: Replace GetNameValue() with Parse(),
  support multiple cookies, errors and "expires=Day, ...".

* Test/System.Net/CookieParserTest.cs: New nunit test suite for that.
2012-06-26 15:27:12 -04:00
Martin Baulig b3d9be482e Fix DateTime.ToFileTimeUtf (bug #5697). 2012-06-26 15:22:53 -04:00
Rolf Bjarne Kvinge 60a2e2d0b5 Sqlite: Map BOOLEAN to System.Boolean. Fixes #5768. 2012-06-25 11:56:16 +02:00
Zoltan Varga 73cc5917ee Disable LLVM for methods with very long basic blocks. Fixes #5714. 2012-06-24 21:26:25 +02:00
Zoltan Varga de3f5e1538 More fixes for passing/receiving nullables in sdb. Fixes #4659. 2012-06-19 22:50:24 +02:00
Zoltan Varga 5dc6c75b62 Allow setting nullable values in sdb. Fixes #4385. 2012-06-19 22:50:24 +02:00
Marek Safar 4fa036cf0f Fixes a warning 2012-06-19 13:01:17 -04:00
Rob Wilkens dc6efdab29 Bug 2663: Regular Expression Bug Fixes
What this fixes:
IF you were checking a regex which contained something like "(A|AB)C" and then you
checked something like "ABC" against it, it would fail previously, because its
first trip thru the regex it would match "A" first and short circuit out of the
"or" (|)  then next try to match "C" but find "B" and fail.  In this case, it should
be obvious that it needs to, after it fails, go back and try "AB" rather than "A"
and that's where this patch comes in.

Brief summary of each change in order that "git diff --staged" is giving them to
me:

This first one summarizes the background of goal of project:
New Function: EmitJumpTest
For when we are evaluating Alternatives (or's) we now want to be able to go back
and try or paths we haven't already tried if and only if we fail.  This alternate to
EmitJump instead of jumping to target if we have a match immediately, will
on first attempt do the jump, but later if we have already tried this jump
combination, it will jump to ElseTarget, which is the equivalent of this test
failing on subsequent attempts with the same combination of 'or's passing.

RxCompiler:
EmitJumpTest isn't implemented for RxCompiler because i didn't have sample
code to test it on, so it falls back to a regular jump, nothing changes in
RxCompiler in other words other than having this required fucntion front.

arch.cs:
New OpCode added for JumpTest (see EmitJumpTest above)

compiler.cs:
EmitJumpTest added here for regular compiler, it now takes two arguments (two
items on stack) first was the standard where to jump to address, the second
argument is where to jump to in case where we have already tried this
combination)

interpreter.cs:

JumpTestEntry - What we keep track of to know if we've been here before, for
now i presumed just 'pc' (program counter') and 'ptr' (pointer - where we are)
were enough to tell us if we've been to this particular spot before.

Eval has been moved into Eval_Real

Eval if it gets called with parameters indicating we've already been here
(i.e we're being called recursively) just passes the call directly to eval_real
as-was.

Otherwise eval will loop on eval_real while we fail and haven't tried every
possible path through all the or's. (Note: The special case of where we're
running a 'test' (i.e. checking !(a|b|c) rather than just matching (a|b|c)),
and if we're running a test, we turn off JumpTestTracking while it's in its
recursive section.  The reason for this is because while we can rightly check
all the options of (a|ab|abc)  first for a then try again with ab then try again
with abc, we cannot do the same for a not (i.e. !(something or something else)
is really (not something AND not somtehing else), and it is not (not something
or not something else))

JumpTestList tracks our current run's JumpTest calls...
TriedCombo's tracks all the combos (all the JumpTestList results) that we've
already tried.

All calls to anything which calls Eval were modified to call eval passing
the optional new parameters that we now need, and remember if we call
eval with those parameters having a value, it will just forward the call
to Eval_Real.

This included modifying TryMatch because it calls Eval.

OpCode.JumpTest handler was added, what it does is first check if we need
to ByPass to jump to 'else' right away, which again happens when we're in
a test recursive call (Checking not, for example).
Next, it will create and populate a new JumpTestEntry with the current values.
It then calls CheckComboMatch() which sees if we match a combo already on file.
If we don't have a Match we jump to the first label (at pc+1) which is the
regular jump call.  If we have a match, though, it will jump to the else label
which is now at (pc+2).

CheckComboMatch had to be broken up into two functions because it was going
too deep in terms of nesting.  What it does by now should be somewhat understood
it will see if we have a match between our current run and previous runs, and
if we have a match, it returns true.  If we don't have a match, it returns
false.  I have some doubts about whether this function is 100% correct, there
may remain a bug or two, but it does pass all the "System" unit tests which
includes all the regular expression tests, plus it works for all the tests
in the bug report, so i have little reason to mess with it.

syntax.cs:
Here's where i modified so that when evaluating alternatives ("or"s or "|"s)
we instead call EmitJumpTest rather than just a regular EmitJump.

RegExBugs.cs:
This is the unit test (a bunch in one) which fails on mono without this patch
but succeeds with it
commit 48027ac2bdd9b60d18985ec2537eb188607f8164 1 parent 91c4180d55

This patch was originally submitted under another branch which had a bunch of
unrelated commits in it.  I'm hoping if i did this right, these changes stand
alone.
2012-06-19 13:01:08 -04:00
Rolf Bjarne Kvinge 32f743c2e0 Sqlite: Map GUIDBLOB to System.Guid. Fixes #5577. 2012-06-19 16:13:10 +02:00
Gonzalo Paniagua Javier 5c5be866e2 Aborting a pending request closes the socket now
Aborting an HttpWebRequest whose request stream is not closed yet will
	now close the underlying socket properly.
	Fixes bug #5710.
2012-06-18 22:52:36 -04:00
Rodrigo Kumpera 3d3fe6afab Improve Delegate::Combine error message. 2012-06-18 12:14:01 -03:00
Atsushi Eno 2f90a22a0b doh, miscopied file names. 2012-06-12 19:03:25 +09:00
Atsushi Eno 2908d55286 Those new hacky RabbitMQ sources files need to be included in dist. 2012-06-12 18:58:44 +09:00
Atsushi Eno 4ab341d0a5 attempt to fix parallel build in RabbitMQ dir.
Its' nasty, but who cares? (if whoever does, fix it.)

Conflicts:

	mcs/class/RabbitMQ.Client/docs/specs/Makefile
2012-06-12 17:56:00 +09:00
Atsushi Eno 1f7f0ad019 bring back code contracts to mobile profiles. 2012-06-12 15:59:52 +09:00
Miguel de Icaza bb04c29fd0 Merge pull request #317 from viniciusjarina/fix_4794_mono-2-10
Fix 4794 mono 2 10
2012-06-07 17:59:13 -07:00
Zoltan Varga bca3e7d60a Fix sorting of ulong[] arrays among others when using the non-generic Sort() overloads. 2012-06-07 15:45:52 -04:00
Marek Safar 1d09e181e0 Merge pull request #254 from viniciusjarina/fix_build
Fix broken test
2012-06-07 01:24:05 -03:00
Dave Ferguson 22b4ec0f7a - Fix bug 4794 by searching the SerializationMap with both type and
qname in all but several cases (see bug report comments)
- Add separate list for known types to mimic behavior of the .NET
  runtime

- Make previous test fixtures public so that the unit tests will be run

- Remove unused private method

- Add unit test for bug 4794
2012-06-07 01:23:38 -03:00
Atsushi Eno 14b6329657 Use non-prefixed namespace output for element when applicable. Fixed bug #5519. 2012-06-07 13:05:23 +09:00
Sebastien Pouliot 30d72c0558 Propagate all errors to the (old) ICertificatePolicy or (newer) callback. Fix bug #5546 for iOS 2012-06-06 21:12:23 -04:00
Lluis Sanchez 07ce8e4dd2 Improve date serialization compatibility with third party web services
Make XmlCustomFormatter.cs more liberal about the date formats it accepts.
Many third party web services do not format date exactly at 'yyyy-mm-dd'.
The Microsoft implementation is more liberal about accepting other formats
and so the current Mono implementation breaks projects that consume third
party web services when they are ported to Mono.
Based on a patch by Aaron Roydhouse.
2012-06-05 12:31:20 +02:00
Jonathan Pryor 0253a59dff [corlib] Allow SynchronizationContext.Current to work on MfA
For the main (UI) thread, make SynchronizationContext.Current return
the Android.App.Application.SynchronizationContext property.
2012-06-01 12:52:20 -04:00
Rodrigo Kumpera 28cc5ba1ec Implement better pointer spew for the new heap verifier. 2012-06-01 12:06:29 -03:00
Zoltan Varga c895ea21a5 Add an aot option to override the value of readonly static fields.
If the static constructor of a type has been run, the JIT can perform
some optimizations based on the actual value of static readonly fields.
This isn't possible in AOT mode, since the code won't be ran before compile
time: this option allows to set any number of static readonly fields to
a constant value so that the compiler can perform the same kind of
optimizations.
2012-06-01 12:48:09 +02:00
Zoltan Varga b8d1e49bb7 Revert "Add an aot option to override the value of readonly static fields."
This reverts commit 0127f24037.

Revert this as an experiment to see if it fixes #5429.
2012-06-01 10:55:07 +02:00
Zoltan Varga ba75d15c99 Merge pull request #311 from symform/mono-2-10
Mono 2 10
2012-05-31 17:50:12 -07:00
Michael Goff 0cd9bea4a6 Incorrect comment syntax was breaking compile time configure check for large file support 2012-05-31 15:11:00 -07:00
Jeffrey Stedfast c70e6210b9 Fixed regressions in Microsoft.Build.BuildEngine 2012-05-31 14:04:46 -04:00
Vinicius Jarina 3d6c70d28e Fix issue #242 DataContractSerializer fails to deserialize List<T> properties 2012-05-30 23:36:46 -04:00
Zoltan Varga 656b00c8ca Fix a race in mono_aot_find_jit_info (). 2012-05-30 23:38:21 +02:00
Zoltan Varga 736efd75e0 Resurrect the remote csharp repl on 2.10. 2012-05-30 02:19:18 +02:00
Rodrigo Kumpera 27943b1dda Fix major whole-heap verification if the nursery end up partially cleaned. 2012-05-29 18:14:44 -03:00
Sebastien Pouliot 86e85ff5d4 Remove dependency on System.ServiceModel.Web (and it's own dependency) when using System.Json is enough 2012-05-29 14:54:28 -04:00
Rodrigo Kumpera 5fd37f3212 Add new whole heap verifier that can catch a whole lot more problems than previous tools did.
* sgen-gc.c Add verify-before-allocs and verify-before-collections experimental
	options to perform heap verification at the many different points in the app.

	This does check all pointers in the heap, so it's much much slower than
	the previous option.
2012-05-28 17:31:13 -03:00
Jeremie Laval 9ec0bb7319 [corlib] Fix ConcurrentStack.TryPopRange and add tests. Fix #5304 2012-05-28 11:31:09 +01:00
Jeremie Laval 18c6ae3023 [corlib] A CancellationTokenRegistration instance should always have a working GetHashCode method
Reported by knittl
2012-05-28 11:08:46 +01:00
Zoltan Varga 0127f24037 Add an aot option to override the value of readonly static fields.
If the static constructor of a type has been run, the JIT can perform
some optimizations based on the actual value of static readonly fields.
This isn't possible in AOT mode, since the code won't be ran before compile
time: this option allows to set any number of static readonly fields to
a constant value so that the compiler can perform the same kind of
optimizations.
2012-05-27 04:05:05 +02:00
Marek Safar 225b611bd1 Fix Guid::CompareTo. Fixes #4721 2012-05-26 08:40:41 +01:00
Sebastien Pouliot 799028878b Add newer (SL5) types to mobile profile. Fix bug #5337 2012-05-25 19:55:56 -04:00
Marek Safar 4f44c7b885 Remove System.Threading.LockRecursionException from mobile System.Core. Fixes #5192 2012-05-25 19:55:56 -04:00
Rodrigo Kumpera 04440004f5 Small improvements to the concurrent queue.
* mono-cq.c (mono_cq_add_node): Add a store store fence
	between the two stores as they can be observed OOO.

	* mono-cq.c (mono_cq_create): Use precise roots for head
	and tail.
2012-05-25 10:54:03 -03:00
Sebastien Pouliot eeabf86973 Avoid having LockRecursionException in both mscorlib and System.Core for the MOBILE profile. Fix bug #5311 2012-05-24 22:12:56 -04:00
Miguel de Icaza 36b479bdd9 Merge pull request #280 from symform/mono-2-10
Modified the large file support check to do a compile-time check instead of a run-time check
2012-05-24 13:53:04 -07:00
Rodrigo Kumpera 236b31961b Use new mono_gc_(memmove|bzero) in places messing with managed memory. 2012-05-23 16:08:28 -03:00
Rodrigo Kumpera 90355d32d3 Fix a bunch of data races. 2012-05-23 16:08:28 -03:00
Rodrigo Kumpera 9d59f5b1d9 Fix mono-cq under sgen.
* mono-cq.c: Don't store to managed fields directly, use
	MONO_OBJECT_SETREF. Don't memset a block of memory with
	roots, use mono_gc_bzero.

	This fixes random crashes in my sgen_par_tlab branch.
	Hopefully all of them.
2012-05-23 16:08:28 -03:00
Rodrigo Kumpera b1ba3a716d Backport gc_memmove and gc_bzero with all fixes together. 2012-05-23 16:08:27 -03:00
alexrp a0139172d7 mono/metadata/gc.c: Fix warning due to declaration after statement. 2012-05-23 15:28:26 +02:00
Sebastien Pouliot 3cbbaecc07 Fix IsolatedStorageFile directory creation/deletion with rooted paths. Fix bug #5011 2012-05-22 14:37:39 -04:00
Rodrigo Kumpera 215f7744f6 Replace some g_assert with g_error. 2012-05-22 13:20:17 -03:00
Gonzalo Paniagua Javier f537b39bfa .NET 4.0+ flushes the request stream when content length is not set
Fixes bug #4640
2012-05-22 05:41:35 -04:00
Rodrigo Kumpera 2f739140ce Fix a very rare hang on sgen.
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	When suspending threads, if a given thread was suspended on
	a gc unsafe point we restart it until it land on a safe zone.

	Since we restart the thread, it might die before we get the chance
	to suspend it again, we take this into account except when waiting
	for acks. We mistakenly waited for the same number of acks of the
	restart step. It could have been reduced if a thread died.

	This bug is very very hard to hit as it only happens on linux,
	requires that a thread on an unsafe point dies right after been
	restarted and it must not be a managed thread as those must take
	the GC lock while cleaning up.

	This sums up to a mostly theoretical bug that someone might
	have observed once in the wild. We're better fixing it now
	since further optimization work might make it easier to hit.
2012-05-21 12:39:46 -03:00
Rolf Bjarne Kvinge d819ff3031 Fix typo 2012-05-21 13:25:07 +02:00
Rodrigo Kumpera 698a0b1b7f Avoid a deadlock when waiting for pending finalizers.
* gc.c: If the finalizer thread is delay started
	we must ensure that we don't block waiting for finalizers
	until it is live.

	This is required as the delayed start could happen in
	the blocked thread - and deadlock us.
2012-05-18 17:34:18 -03:00
Rodrigo Kumpera 5e727c96e6 Make asserts more usefull. 2012-05-18 17:34:01 -03:00
Rolf Bjarne Kvinge 1631b25a22 Sqlite: Map DATETIME to System.DateTime. Fixes #5078. 2012-05-18 14:31:11 +02:00
Marek Safar 8ef4c5b84b Fix datetime miliseconds parsing. Fixes #992 2012-05-18 13:45:47 +02:00
Sebastien Pouliot ed4e6b9b35 Add fix and test case from bnc #650402 2012-05-16 16:53:22 -04:00
Rolf Bjarne Kvinge f1ba0b3467 Sqlite: Close the command before the connection when CommandBehavior.CloseConnection is specified. Fixes #5058. 2012-05-16 22:20:06 +02:00
Jeremie Laval 98b272411e [corlib] Fix NullRef when using dispose a CancellationTokenRegistration when the initial source has been disposed
Conflicts:

	mcs/class/corlib/Test/System.Threading/CancellationTokenSourceTest.cs
2012-05-16 11:54:57 +01:00
Sebastien Pouliot 666e804ca5 newer nunit does not require a [TestFixture] attribute and made those fixture fail. Making them abstract fix this 2012-05-14 09:17:14 -04:00
Atsushi Eno 47df5f6a86 Make use of GetPrefixOfNamespace() in XElement.ToString(). Fixed bug #3972. 2012-05-14 18:32:13 +09:00
Atsushi Eno 2baf26aaf0 Fix bug #2564 - give .NET compatible namespace prefixes for XElement with namespace that XAttribute provides.
This makes XElement.WriteTo() pretty much slower.
2012-05-14 18:31:48 +09:00
Atsushi Eno fcc5484999 Add Xml declaration even for such document that lacks XDeclaration.
Fixed bug #4850.
2012-05-14 17:28:52 +09:00
Atsushi Eno b67f32d308 XNodeNavigator could be used for a node tree without XDocument, so make it work for such case.
Fixed bug #4690, patch by eb1 sil.org.
2012-05-14 16:32:19 +09:00
Atsushi Eno f327e874af In XNodeNavigator, do not start text node skip from current node.
Fixed bug #4739, patch by eb1 sil.org.
2012-05-14 16:25:08 +09:00
Zoltan Varga 964997a025 Fix byref stringbuilder marshalling. Fixes #5007. 2012-05-14 02:42:14 +02:00
Zoltan Varga 9d104c58f8 Implement out support in byref string marshalling. Fixes part of #5007. 2012-05-14 02:41:36 +02:00
Vinicius Jarina 867ff15e3d Added new test 2012-05-11 10:56:56 -04:00
Vinicius Jarina 663a84c6e1 Fix XML serialization of DateTimeOffset?. Fixes #3258
The nullable DateTimeOffset was not properly handled when serialized.
The deserialization changed to work with DateTimeOffset?.
Avoided "i:type" attribute when serializing Nullable type.
2012-05-11 10:55:14 -04:00
Vinicius Jarina c38ef96f9f Removed code commented 2012-05-11 10:55:10 -04:00
Rolf Bjarne Kvinge c57521f7fb If the dllname for a dllimport is a full path, try that exact path before anything else. Fixes #4678. 2012-05-11 01:06:52 +02:00
Sebastien Pouliot 2a9bec8482 Add System.Windows.Input.ICommand which is part of 4.5 and the portable class libraries
Conflicts:

	mcs/class/System/System.dll.sources
2012-05-10 08:53:25 -04:00
Sebastien Pouliot 9ff4fe6fa1 Add some stubs for methods required by the portable class library profiles 2012-05-10 08:46:19 -04:00
Rodrigo Kumpera e60e2c11ba Make INodeVisitor methods nonvirtual by augmenting nodes with interfaces. 2012-05-10 10:55:51 +01:00
Jérémie Laval 2c29ba21d2 Fix overflow checking in PLinq Range operator 2012-05-10 10:55:51 +01:00
Jeremie Laval d030330913 Bring in CountdownEvent optimizations/fixes from master 2012-05-10 10:55:51 +01:00
Konrad M. Kruczynski 22d4fae2e0 Another fix and unit test added.
Now all three possible cases are tested (and working).
2012-05-10 10:55:51 +01:00
Konrad M. Kruczynski 00cd968f98 Fixes as per the Rodrigo's comment.
Wait now throws an exception in case of cancellation token was
cancelled.
2012-05-10 10:55:50 +01:00
Konrad M. Kruczynski 9ce01415e1 Fix for bug in ManualResetEventSlim.
The problem occured when one waited for an event with the
cancellation token and the wait was successful but not
immediate. In that case Wait returned false instead of true,
because of wait handle number mismatch. Also the unit test was
added.

Conflicts:

	mcs/class/corlib/Test/System.Threading/ManualResetEventSlimTests.cs
2012-05-10 10:55:50 +01:00
Jeremie Laval 27c014e63c Update Cancellation plumbery to bring back fixes from master 2012-05-10 10:55:50 +01:00
Jérémie Laval d73722f5d7 Fix wrong CAS check in SplitOrderedList 2012-05-10 10:55:50 +01:00
Jeremie Laval 4d439e7a6b Sanitize Task plumbery from master.
Some fix/enhancements were disseminated in master and had never been brough back to 2-10
2012-05-10 10:55:49 +01:00
Jeffrey Stedfast ca4d43ff20 Added call to GC.SupressFinalize() in CFObject.Dispose() 2012-05-09 14:48:14 -04:00
Sebastien Pouliot 1a9f426523 Add a few bits that the Portable profiles includes (already in master) 2012-05-09 14:07:53 -04:00
Sebastien Pouliot b950fd3bff Small adjustments needed for Profile[1-4] of the Portable Class Libraries.
Conflicts:

	mcs/class/System.XML/System.Xml/XmlReaderSettings.cs
2012-05-09 14:01:04 -04:00
Sebastien Pouliot e637067028 Thread.Finalize is needed in Profile3 of the Portable Class Libraries. 2012-05-09 14:00:01 -04:00
Sebastien Pouliot c89dc66024 BinaryWriter.Dispose is needed in Profile[1-4] of the Portable Class Libraries. Fix bug #4871
Conflicts:

	mcs/class/corlib/System.IO/BinaryWriter.cs
2012-05-09 13:59:22 -04:00
Jeffrey Stedfast 94a56041f4 [MacProxy] Fixed refcounting and got rid of unneeded attribute flags 2012-05-09 10:46:34 -04:00
Jeffrey Stedfast 8227961a41 WebRequest.GetDefaultWebProxy() must not assume the type of the system proxy. 2012-05-08 19:07:20 -04:00
Jeffrey Stedfast 7c89a8fe75 [System.Net.WebRequest] Implemented new and improved proxy support on Mac/iOS 2012-05-08 18:40:36 -04:00
Rodrigo Kumpera b02f9ac6bb When cleaning up the finalizers of a domain, do it in a way that reduces the chance of leftover objects.
* gc.c (finalize_domain_objects): When cleaning up a domain, we run two kinds of finalizers,
	those that have already been queued and those for objects that remain alive.

	A common problem we need to deal is that some finalizers allocate other finalizable objects
	when doing seeminly trivial operations such as String.IndexOf - which might require the Thread
	object of the finalizer thread to be instantiated.

	We handle those new objects by draining the registered finalizers set until none shows up. This fails
	if we run the queued finalizers after that.

	The order onto which finalizers are run on domain unload is unspecified and the new behavior can
	be argued to be more natural.
2012-05-07 13:52:43 -03:00
Rodrigo Kumpera 528213d413 Fix a warning. 2012-05-07 12:19:53 -03:00
Rodrigo Kumpera 969f4f3c19 Fiz a domain unload race regarding finalizable objects.
* sgen-gc.c (mono_gc_clear_domain): It's possible to have a finalizable object
	survive mono_domain_finalize and leak into mono_domain_free, so we make sure this
	won't crash by removing from the fin hashtable all objects that belong to the
	doomed domain.
2012-05-07 12:19:39 -03:00
Gonzalo Paniagua Javier 80801f6d22 Do not raise the client cert callback twice.
Reverts my own patch from 2009.
2012-05-01 15:16:38 -04:00
Gonzalo Paniagua Javier 906ca96d65 Add support for client certificates to HttpListener
Fixes bug #3969.
2012-05-01 15:15:46 -04:00
Gonzalo Paniagua Javier 5da868cbe5 Do not attempt to write 0 bytes.
Fixes bug #4669.
2012-04-27 15:45:48 -04:00
Gonzalo Paniagua Javier fd8b0c3f82 Do not send all the DNs on the server upon establishing a connection. 2012-04-27 15:45:40 -04:00
Jeffrey Stedfast 532aecf0ce [xbuild] We still need to throw if we fail to import something. 2012-04-26 13:53:19 -04:00
Michael Goff 1de3e266c1 Modified the large file support check to do a compile-time check instead of a run-time check so that cross compile does the right thing. 2012-04-26 09:49:41 -07:00
Jérémie Laval 361c5c49f3 Fix constructor call in QueryConcatNode 2012-04-25 19:31:08 +01:00
Rodrigo Kumpera ab93d7d14f Make sure no live object is left unscanned before we process disappearing links & finalizable objects. 2012-04-25 00:18:18 -03:00
Rodrigo Kumpera 8e0dc5abc9 Add regression test for #3903. 2012-04-24 16:42:35 -03:00
Rodrigo Kumpera 27f313cfd9 Use MonoClass::element_class for non array types when computing array interfaces. Fixes #3903.
* class.c (get_implicit_generic_array_interfaces): When computing the interfaces
	of Array::InternalEnumerator<T> don't use element_class for array types as we
	only want to do that to drop from enum to base type and uint->int.

	Fixes #3903.
2012-04-24 16:42:28 -03:00
Gonzalo Paniagua Javier bf3a705d0d Avoid deadlocking when getting the ServicePoint
SSL connections were deadlocking when getting the service point for the
	connection in the last few releases of 2.10.x and in master.

	Fixes bug #4599.
2012-04-24 04:55:20 -04:00
Sebastien Pouliot 8ba548ded1 Fix leak when an error message is returned from sqlite3_exec 2012-04-23 13:42:30 -04:00
Sebastien Pouliot 5abd53db85 Fix leak by releasing the certificate elements from the CFArray since it was created with a null CFArrayCallBacks 2012-04-23 13:42:28 -04:00
Zoltan Varga 6a99950558 Avoid setting thread->abort_exc in mono_raise_exception (), it was already done. Fixes #4413.# 2012-04-23 15:18:46 +02:00
Duncan Mak 606afdf3ed Fix SetElementValue, fixes #4211. 2012-04-20 17:31:45 -04:00
Gonzalo Paniagua Javier 4b51c2dd29 Avoid key duplication error from bogus ContentType
Fixes bug #4542.
2012-04-20 13:58:38 -04:00
Rolf Bjarne Kvinge 69abed92c0 Fix XmlAttributes to ignore all XmlAttributes if XmlIgnore is present 2012-04-19 23:06:25 +02:00
Rolf Bjarne Kvinge c6fef95efb Ignore XmlIgnore attributes when importing members in XmlReflectionImporter. Fixes #4367. 2012-04-19 23:06:23 +02:00
Jeffrey Stedfast 10980e09d6 [Mono.CompilerServices.SymbolWriter] Fixed Cecil ctor in MonoSymbolFile.cs 2012-04-18 17:40:17 -04:00
William Holmes 48dd92e4d7 Fixing some problems with my previous commit.
threadpool.c (async_invoke_thread) :
	1) Decrease the thread pool waiting count if the dequeue was successful.
	2) Do not call dequeue_or_steal while gc skip thread is true.
2012-04-18 17:14:37 -03:00
Gonzalo Paniagua Javier 4b7ab75409 Merge pull request #275 from bholmes/wsq-deadlock-12-04
Work Stealing Queue Deadlock fix.
2012-04-18 14:01:38 -04:00
Jeffrey Stedfast acb2b75103 [xbuild] Add a Microsoft.Portable.CSharp.targets file
Conflicts:

	mcs/tools/xbuild/Makefile
2012-04-17 17:02:51 -04:00
Jeremie Laval c657ebe342 Improve ManualResetEventSlim consistency with new algorithm
Conflicts:

	mcs/class/corlib/System.Threading/ManualResetEventSlim.cs
2012-04-16 17:16:35 +01:00
Zoltan Varga 02e06a619a Fix setting of byref variables in sdb. Fixes #4362. 2012-04-16 17:36:52 +02:00
Jeremie Laval c61bbdc80e Remove NET_4_5 parts that were introduced by cherry-pick 2012-04-16 16:00:31 +01:00
Jeremie Laval 004c18a1fc Don't overwrite the current variable without first saving its value in case a Task is executed inline inside another task
Conflicts:

	mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
2012-04-16 15:58:16 +01:00
Jeremie Laval ea3791d7f7 Fix Task child waiting for RunSynchronously
Conflicts:

	mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
2012-04-16 15:42:34 +01:00
Jeremie Laval 2d833c991d Change how parent is selected during Task creation and do not force continuation's parent as they are not necessarily the same as their ancestor
Conflicts:

	mcs/class/corlib/System.Threading.Tasks/Task.cs
2012-04-16 15:40:44 +01:00
Jeremie Laval 82785d6e98 Correctly propagate faulted status and exception from child to parent in attached case
Conflicts:

	mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
2012-04-16 15:06:29 +01:00
Jeremie Laval 110087a8e5 Use .NET 4.5 implementation of Task's WhenAll/WhenAny for TaskFactory's ContinueWhenAll/ContinueWhenAny
The diff noise in Task.cs is just moving WhenAllCore and WhenAnyCore outside of their NET_4_5 region

Conflicts:

	mcs/class/corlib/System.Threading.Tasks/Task.cs
	mcs/class/corlib/System.Threading.Tasks/TaskContinuation.cs
2012-04-16 14:54:08 +01:00
Jeremie Laval ad4ae8a0a0 Better argument checking in TaskFactory's ContinueWhen* methods 2012-04-16 14:33:51 +01:00
Jeremie Laval 0c03eca2a5 Add unit test for bug #2007 2012-04-16 14:33:09 +01:00
Gonzalo Paniagua Javier a73443e3c9 Remove HasCacheControl from here too (fixes the build) 2012-04-14 22:29:07 -04:00
Gonzalo Paniagua Javier 348c273c5f Fix issues with caching
When the 't' parameter was specified, we returned a 304 if the
	timestamp matched the assembly timestamp, even if the client
	needed the entire body. We were also setting the 304 response
	cachebility as public to further mess things up.

	Fixes the treeview in the class status pages.
2012-04-14 15:27:11 -04:00
Sebastien Pouliot f1b6f91b8e Parse floating point values with negative exponent correctly. Fix bug #4415 2012-04-13 09:01:57 -04:00
Jeffrey Stedfast 727ada784e [xbuild] Don't evaluate an import unless the file actually exists
Fix for bug #4365.
2012-04-10 15:24:53 -04:00
Zoltan Varga 6b1609e62b Allow setting the name of threadpool threads. Fixes #4269. 2012-04-09 08:36:42 +02:00
Zoltan Varga 551ae5de33 Fix the domains of the objects returned by AssemblyMirror.GetAssemblyObject ()/TypeMirror.GetTypeObject (). Avoid caching empty strings in AppDomainMirror.FriendlyName. Fixes #4223. 2012-04-07 06:06:02 +02:00
Jonathan Pryor 9a8c51583e [System] Fix MacOsNetworkInterface.ImplGetAllNetworkInterfaces()
On my (cursed?) MacBook Pro, calling
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
results in an exception:

	System.ArgumentException: length
		at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0
		at System.Net.NetworkInformation.MacOsNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in <filename unknown>:0
		at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in <filename unknown>:0

Some printfs later, and we see why:

	Array.Copy(array.Length=12, 3, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 4, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 4, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 3, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 3, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 3, array.Length=8, 0, 4)
	Array.Copy(array.Length=12, 4, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 8, array.Length=6, 0, 6)
	# BOOM!

(Apparently I have 8 interfaces: lo0, gif0, stf0, en0, en1, fw0, p2p0,
and vboxnet0.)

The problem is readily obvious: we're trying to read 6 bytes of data
when only 4 are available, and Array.Copy() complains appropriately.

The fix -- which looks to almost contradict a02076ba -- is to use
`sockaddrdl.sdl_data.Length - sockaddrdl.sdl_nlen` instead of
`sockaddrdl.sdl_data.Length - macAddress.Length` (or sdl_alen).
sdl_nlen is the offset into the source sockaddrdl.sdl_data array, and
in this case sockaddrdl.sdl_alen (the length of the destination
macAddress) isn't the same as sockaddrdl.sdl_nlen, hence the breakage.
2012-04-05 16:17:28 -04:00
Jonathan Chambers f5fe12c2f1 Merge pull request #251 from TalAloni/mono-2-10
Mono-2-10: VS2010 Compilation fix
2012-04-05 11:45:56 -07:00
Rolf Bjarne Kvinge 6a9a0cdf4a Ensure we get the correct StartWWAN overload. 2012-04-04 16:03:03 +02:00
Sebastien Pouliot 58daced21c Ensure a default key is available, if none is set, when using ARC4Managed 2012-04-03 10:00:10 -04:00
Sebastien Pouliot 331ead550d Apply SHA256 optimizations (single buffer allocation, inlining and better locality) to SHA224 so their performance match 2012-04-03 09:59:56 -04:00
Rolf Bjarne Kvinge a4c85814d8 Fix mono_path_canonicalize to not canonicalize the root directory to an empty string 2012-03-31 00:13:53 +02:00
Rolf Bjarne Kvinge e5428b29c0 Fix g_strreverse to handle empty strings 2012-03-30 13:43:28 +02:00
Rolf Bjarne Kvinge 13f5dc80f4 Log profiler: don't ignore return values from select, in particular not EINTR. 2012-03-29 19:14:48 +02:00
Rolf Bjarne Kvinge 9d103ff7c1 Add most of the Debug class (with related tracing types) to the mobile build. Fixes #3754. 2012-03-29 17:53:23 +02:00
Atsushi Eno 0f4561c272 (monodroid) Do not crash with LogcatTextWriter.Write(null). 2012-03-29 18:22:16 +09:00
Zoltan Varga 42da58a46e Fix the 2.10 build. 2012-03-29 09:04:17 +02:00
Zoltan Varga 4f546f89c4 Register vtables in runtime data structures after they have been completely initialized, since other threads can access them without locking. Fixes #3676. 2012-03-29 08:52:30 +02:00
Gonzalo Paniagua Javier 946353acc4 Welcome to the future 2012-03-28 22:51:35 -04:00
Sebastien Pouliot 6c1b6a9c69 Adjust unit tests wrt Gonzalo fix for NTLM - commit 214741630f 2012-03-28 13:22:40 -04:00
Sebastien Pouliot 2c869a025b Fix tests where a DSA CA certificate expired at the end of 2011 2012-03-28 13:21:58 -04:00
Rodrigo Kumpera bb664acf16 Use g_error instead of fpritnf so target like android see it. 2012-03-27 15:51:26 -03:00
Sebastien Pouliot 90fd4771cb Fix bug #4101 when using a deep hierarchy of directories in isolated storage.
Conflicts:

	mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs
2012-03-27 08:40:14 -04:00
Sebastien Pouliot d2d85aa4b0 Move RijndaelTransform code from RijndaelManaged.cs to RijndaelManagedTransform.cs to ease code reuse 2012-03-26 15:05:44 -04:00
Gonzalo Paniagua Javier 890722aa51 Merge pull request #256 from flow3r/patch-1
Binding socket with specified IP address if possible.
2012-03-24 12:17:07 -04:00
Rodrigo Kumpera 9885438b4b It turns out the bridge code needs to distinguish bridges on a per-object basis.
* sgen-bridge.c: In additin to the per-class bridge check, restore the
	per object one. The per-class one still a major win as it allows clients
	to do the more expensive checks upfront.
2012-03-23 16:58:36 -03:00
Rodrigo Kumpera 913882f280 Improve Missing Field error message. 2012-03-23 16:02:35 -03:00
Sebastien Pouliot 28f09f89a2 Fix FindBySubjectName to find anything in the subject name (except the oid acronyms). Fix bug #3897 2012-03-23 11:52:20 -04:00
Sebastien Pouliot 88cb0bab07 Ignore two more tests with [Category(NotWorking)] for NET_2_1/nunitlite 2012-03-23 10:14:17 -04:00
Sebastien Pouliot 8f1b2d3cde Fix ArgumentOutOfRangeException in PKCS1MaskGenerationMethod + unit tests. Fix bug #3777 2012-03-23 09:56:43 -04:00
Sebastien Pouliot 6e7c741e82 Match IDisposable with 4.0 changes in System.Security.Cryptography
* AsymmetricAlgorithm.cs:
* CryptoAPITransform.cs:
* DeriveBytes.cs:
* FromBase64Transform.cs:
* HashAlgorithm.cs:
* PasswordDeriveBytes.cs:
* Rfc2898DeriveBytes.cs:
* RijndaelManagedTransform.cs:
* SymmetricAlgorithm.cs:
* ToBase64Transform.cs:
	Adjust changes to IDisposable wrt 4.0

Conflicts:

	mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs
2012-03-22 20:56:28 -04:00
Sebastien Pouliot 2a0885838d Fix finalizer where a NRE can occur if the ctor fails to complete
Conflicts:

	mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs
2012-03-22 20:40:58 -04:00
Sebastien Pouliot d3fdf77682 Fix old test cases so it's easier to reuse for the mobile profile / nunitlite
Conflicts:

	mcs/class/corlib/Test/System.Security.Cryptography/DSACryptoServiceProviderTest.cs
2012-03-22 20:39:57 -04:00
Gonzalo Paniagua Javier 6b3c55549a Trigger the UploadProgressChanged event wen uploading a file.
Fixes bug #3100.
2012-03-22 00:25:18 -04:00
Rodrigo Kumpera fa176583f4 Improve io-layer error logging. 2012-03-20 13:47:00 -03:00
TalAloni b4c9977966 x64 compilation fix: by default, compile only the necessary projects (and avoid trying to compile additional projects that can't be successfully built ATM) 2012-03-20 13:00:10 +02:00
TalAloni dc4fd8cc77 Fix compilation: Add target platform preprocessor-definition to x64 Release 2012-03-20 12:53:36 +02:00
TalAloni 515def4985 Fix VS2010 compilation 2012-03-20 12:50:03 +02:00
TalAloni 16fc03984c Add target platform preprocessor-definition to x64 Release 2012-03-20 12:43:43 +02:00
TalAloni 1e91630811 Disable treating compiler warnings as errors 2012-03-20 12:40:25 +02:00
Rodrigo Kumpera 1b88db4c3f Merge pull request #165 from TalAloni/mono-2-10
Mono-2-10 Bugfixes
2012-03-19 16:10:05 -07:00
Miguel de Icaza cae83d6486 Update email address for licensing Mono in LICENSE file 2012-03-19 15:46:34 -04:00
Miguel de Icaza 2a371aa90a (write_serial): fix the variable holding the return value of write(2) which is a ssize_t, not a size_t. This fixed a problem where we would not exit the loop, as negative values would never be set, fix from GitHub.com's konrad-kruczynski 2012-03-19 11:39:02 -04:00
Gonzalo Paniagua Javier 6c037f1efd Redirect right after NTLM authentication works now
Fixes bug #3894.
2012-03-18 17:45:37 -04:00
Gonzalo Paniagua Javier 0d604357b5 Last commit was not entirely correct... 2012-03-16 00:32:03 -04:00
Zoltan Varga dea6c80669 Fix the previous change again. 2012-03-15 22:25:01 +01:00
Zoltan Varga 24590e07e3 Fix build on platforms without MONO_ARCH_HAVE_TLS_GET defined. 2012-03-15 22:24:44 +01:00
Gonzalo Paniagua Javier fe7aede2b9 Merge pull request #241 from viniciusjarina/fix2843
Fix bug 2843 (Deserialization Nullable user-type) + Unit tests
2012-03-14 18:22:17 -04:00
Gonzalo Paniagua Javier bad8aa46b6 If we read an entire chunk, return it in the next read operation
When waiting for the chunk trailer, we can return the data read
	so far.
2012-03-13 12:00:16 -04:00
Rolf Bjarne Kvinge 982ba3238d Include System.Collections.Generics.SortedSet in the mobile profile. Fixes #3827. 2012-03-13 12:38:04 +01:00
Rolf Bjarne Kvinge 537fdd06c2 Mono.Data.Sqlite: Add support for TIMESTAMP / UnixEpoch column. Fixes #638. 2012-03-13 12:38:03 +01:00
Rolf Bjarne Kvinge 765a04a438 Mono.Data.Sqlite: Fix type name comparison to compare the entire name, not just a substring. 2012-03-13 12:38:03 +01:00
Rodrigo Kumpera 120ef23972 Properly handle ASLR randomization of the main thread stack on darwin. 2012-03-12 19:51:05 -03:00
Rodrigo Kumpera e1a19266d4 Merge pull request #210 from symform/mono-2-10
Fixed a race condition in WebConnection that was causing it to throw NullReferenceException on Close/Dispose
2012-03-12 08:04:44 -07:00
NN 4e5e52a298 Make code behaving like .Net.
The original discussion is here:
https://bugzilla.novell.com/show_bug.cgi?id=689533
And this is the proposed patch:
https://bugzillafiles.novell.org/attachment.cgi?id=426501
2012-03-11 21:40:33 +01:00
Zoltan Varga d9d2965c29 Fix the previous patch. 2012-03-11 18:30:41 +01:00
Zoltan Varga e92c10fa70 Move the thread attach code for native-to-managed wrappers to method_to_ir (), instead of emitting it by hand for each architecture. Also make it save/restore the current domain. Fixes #3623. 2012-03-11 18:30:18 +01:00
Rodrigo Kumpera fb8e168214 Add new mono byte code for memory barriers 2012-03-11 18:21:31 +01:00
Marek Safar 3adb9e170d Fix sbyte/short parse of hexadecimal values. Fixes #981 2012-03-10 12:15:29 -05:00
Sebastien Pouliot daafc06b54 Tests from bug #3677 (works on master, fails in MonoTouch) 2012-03-10 11:21:08 -05:00
Zoltan Varga 721d15749a Add basic quoting support to MONO_ENV_OPTIONS. Fixes #792. 2012-03-10 16:44:54 +01:00
Gonzalo Paniagua Javier f1ffa65963 Add another default format
Patch by Tom Hindle.
	Fixes bug #3392.
2012-03-09 23:45:31 -05:00
Zoltan Varga 520065c164 Fix LLVM type mapping so classes and generic instances are mapped to the same type. 2012-03-09 00:09:13 +01:00
Rodrigo Kumpera fae1eca260 Under full-aot process the types of method arguments that are called from other methods. Fixes #3735.
* aot-compiler.c: If we call a sharable generic method that takes a parameter that
	isn't shareable we must include that type or we risk failing at runtime.

	Fixes #3735.
2012-03-08 19:43:08 -03:00
Gonzalo Paniagua Javier e040f44cb1 Initialize struct 2012-03-08 14:36:48 -05:00
Gonzalo Paniagua Javier 30399887c6 Just in case... 2012-03-08 14:36:47 -05:00
Gonzalo Paniagua Javier 1e3c3b8e01 Remove warning 2012-03-08 14:36:47 -05:00
Gonzalo Paniagua Javier 5e64449222 ReadTimeout and WriteTimeout
They were returning a 0 timeout when it should be Infinite.
2012-03-08 14:36:47 -05:00
Gonzalo Paniagua Javier bb82257c88 Fix multiple async accepts
Running multiple BeginAccepts or AcceptAsync at the same time on the
	same socket requires serialization.
	Fixes bug #3805.
2012-03-08 14:36:47 -05:00
Atsushi Eno 5843173415 Fix XLinq decimal value formatting to become invariant. Fixed bug #3634. 2012-03-08 09:21:38 -05:00
Miguel de Icaza 1653431720 Add iOS FileProtection attributes to the Connection String 2012-03-08 09:21:26 -05:00
Gonzalo Paniagua Javier b1994d8062 Fix rethrow of the interrupted exception
Fixes bug #2483.
2012-03-06 20:58:09 -05:00
Jonathan Pryor 3d2dd9849a [MonoPosixHelper] Allow MmapFlags.MAP_ANON use on OS X.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=3419

The problem is that OS X defines MAP_ANON but not MAP_ANONYMOUS, AND
MAP_ANON and MAP_ANONYMOUS have the same value. Furthermore,
create-native-map doesn't have any special support for constants with
the same value, so it emits the validation independently.

The result is that the following fails on OS X:

	$ csharp -r:Mono.Posix.dll
	csharp> int r;
	csharp> using Mono.Unix.Native;
	csharp> NativeConvert.TryFromMmapFlags(MmapFlags.MAP_ANONYMOUS, out r);
	false
	csharp> r;

The (hackish) fix is to provide MAP_ANONYMOUS on OS X, thus allowing
the existing validation logic to work as expected.
2012-03-06 11:39:40 -05:00
Jeremie Laval fb903e8283 Correct CancellationTokenSource locking. Fix #3756.
Conflicts:

	mcs/class/corlib/System.Threading/CancellationTokenSource.cs
2012-03-06 10:23:43 +00:00
Miguel de Icaza ebc7339be1 Revert the change to syslog message formatting, as JonP's code already does escaping in managed code, see: https://github.com/mono/mono/commit/f49164bf7658855390b2c19574b170f8728a99ff#commitcomment-1044747 2012-03-05 16:44:10 -05:00
Miguel de Icaza 3f3fb33fab Fix the previous patch 2012-03-05 16:42:56 -05:00
Miguel de Icaza 68af170e2e [registry] fix for #3632 2012-03-05 16:42:56 -05:00
Eberhard Beilharz 4c6c0e20d4 Xamarin-2938: Fix Screen.FromControl
We have to convert the location of the control to screen coordinates
so that we end up with the correct screen in a multi-monitor setup.
This patch fixes Screen.FromControl, Screen.FromHandle, and
Screen.GetWorkingArea.

Change-Id: I6c4fd65833d012e832d97d610c79abc792e57adf
2012-03-05 16:42:55 -05:00
Miguel de Icaza c084f978ff Backport fix for 2893 2012-03-05 16:42:55 -05:00
Gonzalo Paniagua Javier a4a87c8cab [HttpWebRequest] Support 4.0 Date property. 2012-03-04 23:07:10 -05:00
Gonzalo Paniagua Javier 0d1abfb610 2 fixes for NTLM authentication
-Set the correct flags when the domain is not set. This fixes
	authentication with an empty or null domain name.
	-Allow domain\user and domain/user as the user name and set domain and
	user accordingly.
2012-03-03 16:46:43 -05:00
Rodrigo Kumpera 02a2af110f Fix a mach race condition between a thread triggering a NRE and another aborting the former. 2012-03-02 15:09:01 -03:00
Jeremie Laval b33e723d66 Fix #3639
The search code was taking care of hash collision for different objects inside the collection but it didn't handle properly the case where the supplied search key has the same hash than a different object inside the collection.
2012-03-01 13:06:11 +01:00
Zoltan Varga a267f24095 Wrap exceptions thrown by property getters into TargetInvocationExceptions even when using the optimized getter delegates in PropertyInfo.GetValue (). Fixes #3690. 2012-02-29 23:52:54 +01:00
Marek Safar 2f94e74f3d Merge pull request #230 from linquize/branch_3c098eb0
Include all TDS collation mappings generated from CultureInfo
2012-02-29 00:28:49 -08:00
Gonzalo Paniagua Javier c8517d7fa5 Add MinimumLength when formatting 2012-02-29 01:39:28 -05:00
Jonathan Pryor e8c7245f02 [System.Data.Services.Client] Compile in string resources.
System.Data.Services.Client uses System.Resources for localization
purposes (even though only one language is provided...). Consequently,
to get _useful_ strings (read: error messages) out of
System.Data.Services.Client, System.Resources needs to be able to find
them, such that the following works:

	$ csharp -r:System.Data.Services.Client;
	Mono C# Shell, type "help;" for help

	Enter statements below.
	csharp> using System.Resources;
	csharp> using System.Data.Services.Client;
	csharp> var a = typeof(SendingRequestEventArgs).Assembly;
	csharp> var r = new ResourceManager("System.Data.Services.Client", a);
	csharp> r.GetString("AtomMaterializer_PropertyNotExpectedEntry");

If `r.GetString()` fails, it'll throw an exception instead of
returning a useful string, which is bad. Unfortunately, it failed.

To fix this, we use `resgen` to compile
Client/System.Data.Services.Client.txt into a .resources file and
compile the .resources file into the assembly with `gmcs -resource:`,
which allows the above `csharp` fragment to work w/o throwing (and
thus allows OData users to get useful, meaningful error messages).
2012-02-28 20:25:51 -05:00
Zoltan Varga aeddfd7be1 Increase generic trampoline sizes on amd64 to avoid an assertion introduced by 948f06a03f. 2012-02-28 18:54:31 +01:00
Linquize e8c16f5c2a Add all collations generated from CultureInfo.GetCultures(CultureTypes.AllCultures) 2012-02-28 23:38:24 +08:00
Zoltan Varga 3c098eb04f Add stack alignment checking to the amd64 trampolines and align the stack properly in the handler block trampoline. Fixes #2642. 2012-02-27 17:23:50 +01:00
Gonzalo Paniagua Javier 74ec9d9f0e DELETE can have a request stream
Fixes bug #3276.
2012-02-27 10:54:38 -05:00
Peter Johanson 68725d92b2 Fix Bug #658, allowing uri templates with no text preceding a wildcard. 2012-02-19 12:47:23 -05:00
Sebastien Pouliot 71625b8c65 merge 2012-02-17 13:27:21 -05:00
Sebastien Pouliot c4f072207f Add warning and unit tests about RegionInfo fields ordering. Fix for #3476 2012-02-16 20:46:51 -05:00
Sebastien Pouliot 0b709ededd Ensure match between native/managed fields representation so we retrieve the right values 2012-02-15 16:55:52 -05:00
Atsushi Eno fd5b65341b It seems I rather needed to edit Makefile, not Mono.CSharp.dll.sources. 2012-02-15 17:41:26 +09:00
Atsushi Eno dd52f53e14 Add Microsoft.CSharp.dll to monodroid build. 2012-02-15 14:51:43 +09:00
Atsushi Eno 33d298c365 add dlr part to monodroid build. 2012-02-14 12:47:20 +09:00
Gonzalo Paniagua Javier bb45dcf362 Fix race condition
Our synchronized Hashtable "set" method is not really locking...
2012-02-13 11:00:01 -05:00
Sebastien Pouliot 277d9a5498 Just like Flush catch more than IOException on Write overloads, e.g. UnauthorizedAccessException can occur too (ref: assistly #7431) 2012-02-13 10:48:56 -05:00
Jeffrey Stedfast a0888a74e9 Fixed System.Text.Encoding.GetEncoding (string name) to work for UTF-16LE. 2012-02-11 21:02:17 -05:00
Jérémie Laval 26d2e2b38e Fix AggregateException.GetBaseException behavior 2012-02-11 22:15:25 +01:00
Gonzalo Paniagua Javier f6c1bdaf1c Chunked read error reporting improvement
Reset the chunked read variables before reading the chunk size and
	provide a better error in case of a protocol problem.
2012-02-10 02:16:39 -05:00
Rolf Bjarne Kvinge 70a5c958bf Add an explicit ctor reference to a ctor used by reflection for MonoTouch. 2012-02-08 01:01:56 +01:00
Martin 98756a4400 Commit 6a9937d216 is not correct. WebClient.Proxy should return WebRequest.DefaultProxy if WebClient.Proxy has NOT been set before. 2012-02-05 11:57:29 -05:00
Martin f2f52e643a Fixes some naming conventions. 2012-02-05 11:57:14 -05:00
Martin 1e233bb9c1 Behaviour of using proxies in WebClient is different compared to .NET
(1) Consider the following example code:

	WebClient client=new WebClient();

If you examine the client.Proxy property when running this code in .NET you will see, that the Proxy property reflects the current system proxy settings. However, Mono initializes the Proxy property in OpenRead()

(2) Mono's implementation of the WebClient.Proxy property described in (1) has a disadvantage. To understand that, consider der following example code:

	WebClient client=new WebClient();

	client.Proxy=null;

Explicitely setting the Proxy property to null ensures that .NET does not use any proxies when calling further methods of the client object. My patch provides exactly this functionality for Mono's WebClient when using the http or ftp protocol. This functionality can be very interesting for a lot of scenarios.
2012-02-05 11:56:35 -05:00
Sebastien Pouliot c41a25b8eb Add WebClient.Proxy unit test 2012-02-05 11:56:17 -05:00
Jérémie Laval 00f3d0cc6e Rework Parallel.Invoke and add tests 2012-02-05 16:27:16 +01:00
Zoltan Varga 753b1e7e31 Fix Parallel.Invoke () with only one action. Fixes #3225. 2012-02-04 23:21:03 +01:00
Michal Srb 41b13429a4 Avoid NullReferenceException in Mono.Unix.UnixDriveInfo.GetDrives () when fs_file is null. Fixes #3219. 2012-02-04 15:09:36 +01:00
Rolf Bjarne Kvinge 16fca92c58 System.ServiceModel: Make FaultContractInfos available (and therefore deserialized correctly) in mobile profiles. Fixes #1437 and 2859. 2012-02-04 03:04:36 +01:00
Jérémie Laval 27d1f326ef Fix Task AttachedToParent behavior. Fix bug #2777 part1.
The problem was two folds. First, a parent task wasn't correctly waiting on the inner task continuations that were setup. Second, the way the Task parent field was re-used with a continuation collided with the parenting behavior of AttachedToParent (if the continuation was also created that way), the fix is to have two Task fields to differentiate between the two cases.
2012-02-03 15:42:26 +01:00
Jérémie Laval c285077b5e Fix RunSynchronously behavior with children Task. Fix bug #2777 part 2. 2012-02-03 15:40:01 +01:00
Rodrigo Kumpera 1dc4b77819 Use the bridge callback to speedup bridge object detection. 2012-02-02 18:32:18 -02:00
Rodrigo Kumpera ccfe8bdfdb The bridge callback now is per-class and not per-object. Introduce versioning to reduce the chance of breakage. 2012-02-02 18:30:04 -02:00
Rodrigo Kumpera 78f855037a Make more bits in the vtable available to the GC.
* class-internals.h (MonoVTable): There's a spare nimble after
	those one bits flag fields. We reserve those leftovers to our
	GCs to use.
2012-02-02 18:07:53 -02:00
Mark Probst feb8a124aa [sgen] Option for an allowance limit.
The metric for deciding when to trigger a major collection assumes
that there's unlimited memory, so it does, especially since it's
probably buggy and certainly not very smart, sometimes allow too much
allocation to happen.  This new option is a way to tell SGen where to
draw the line.  Note that memory will still be allocated, it's just
that once the limit is overstepped, major collections happen more
frequently to keep memory usage down.
2012-02-01 20:00:02 -02:00
Sebastien Pouliot 2af9b70055 Floating point numbers needs to be encoded using the invariant culture. Fix bug #3137 2012-01-30 18:44:41 -05:00
Rolf Bjarne Kvinge f178794cdd AOT: add support for calling pinvoke methods directly, instead of going through dlsym. 2012-01-30 14:46:54 +01:00
Rodrigo Kumpera c903915555 Guard against lazy initialization of idepth. 2012-01-29 13:02:04 -02:00
Rodrigo Kumpera e9493ca335 Last round of fullaot fixes for lazy init'ng supertypes. 2012-01-29 13:02:04 -02:00
Zoltan Varga ea60aab12f Disable some TLS fallback code on ppc as it does not work. Fixes #2717. 2012-01-28 18:00:28 +01:00
Zoltan Varga 096fce594c Fix infinite loop in TestDriver.cs when using the -v option. 2012-01-27 15:54:58 +01:00
Rodrigo Kumpera 52af8b7d5f Fix aot miscompilation due to the lazy supertypes initialization. 2012-01-26 17:27:35 -02:00
Zoltan Varga 770b7b9c4c Fix support for synchronized methods + ldftn. Fixes #3088. 2012-01-26 20:14:24 +01:00
Rodrigo Kumpera 3f97001899 Fix consumers of supertypes information to account for lazyness.
* class-internals.h (mono_class_has_parent): Convert this macro into
	an inline function that guards against non initialized supertypes info.

	Fix random breakage all over the place.
2012-01-25 14:14:03 -02:00
Zoltan Varga 3e7cd1f126 Fix the previous commit. 2012-01-24 06:52:17 +01:00
Zoltan Varga c1330622d6 Add a nunit-console4 script. Fixes #2156. 2012-01-24 06:49:38 +01:00
Zoltan Varga ea14d7909a Allow assemblies without AOT images in full-aot mode if they don't have any methods. 2012-01-24 03:06:24 +01:00
Rodrigo Kumpera 8a724d071c A regression test for bxc #795. 2012-01-23 23:44:26 -02:00
Rodrigo Kumpera f36e8fb25b Be lazy'er when setting up supertype information. Fixes bxc #795
* class.c (mono_class_setup_parent): We can't setup supertypes here
	since we might be initializing our parent as well, which will cause
	the current type to have broken values.

	Since we're lazier, we need to check for it in more places.

	Fixes bxc #795.
2012-01-23 23:34:35 -02:00
Rodrigo Kumpera 962f399b66 Lazily nit mono_class_setup_supertypes correctly. 2012-01-23 23:11:58 -02:00
Zoltan Varga eb37e977e3 Fix the setting of sp in mono_monoctx_to_sigctx () on arm. Fixes #2775. 2012-01-22 21:48:37 +01:00
Zoltan Varga 80bba25a4c Fix the build. 2012-01-22 12:01:10 +01:00
Zoltan Varga e4cf743462 Implement GetFolderPath(Environment.SpecialFolder.UserProfile) on unix. Fixes #2873. 2012-01-22 10:38:21 +01:00
Gonzalo Paniagua Javier 650bb6d628 Avoid warnigs.
This appears to fix #1885 on osx.
2012-01-21 03:49:54 +01:00
Zoltan Varga 66d1911dd9 Fix a crash if a BeginInvoke is not found by the AOT compiler. Fixes #2996. 2012-01-21 01:09:48 +01:00
Zoltan Varga c22a66450a Fix an out-of-bounds write in the llvm backend initialization code. 2012-01-20 18:05:31 +01:00
Kevin Houlihan 597bbeb80e Change to ensure that correct BufferHeight and BufferWidth are returned after terminal resize.
Console.BufferHeight and Console.BufferWidth were returning incorrect values after a terminal window resize on Linux (bug 874). I added CheckWindowDimensions calls to the getters of these properties to ensure that the values are up to date.
2012-01-20 06:37:12 +01:00
Zoltan Varga bded18f3d3 Fix Type.GetType () when an assembly resolver is used without a type resolver. Fixes #644. 2012-01-20 06:33:08 +01:00
Jonathan Pryor 51e38b504b [System.ServiceModel] Don't try to deserialize void messages.
Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=1164

The breakage reported in #1164 was caused by commit 106fdeb4, which
fixed bxc206. The problem is that in fixing bxc206, response messages
of a type having a MessageContractAttribute custom attribute were
changed to have a `void` return type, according to the
MessageDescription's Body.ReturnValue.Type property.

This fix is correct, in that it's what .NET does, but it broke XML
deserialization which expected the "actual" return type to exist, not
`void`.

Case in point: the added IService1.EndJSMGetDatabases() method will
have a MessageDescription with a Body.ReturnValue.Type=typeof(void).
The problem is that deserializing this message will fail:

	System.Runtime.Serialization.SerializationException: Deserializing
	type 'System.Void'. Expecting state 'EndElement'. Encountered state
	'Text' with name '' with namespace ''.

Obviously this is not good. ;-)

The fix is simple: don't use the MessageDescription's ReturnValue if
it's `typeof(void)`.

There are two added wrinkles:

 1. Writing a test case for the above.

 2. The test case broke with another error: a NRE within
    BaseMessagesFormatter.MessageObjectToParts(). This is because
    when ContractDescriptionGenerator.GetMessage() sets the
    ReturnValue for a response message, it doesn't set
    MessagePartDescription.MemberInfo.
    BaseMessagesFormatter.MessageObjectToParts(), meanwhile, was
    checking the ReturnValue's MemberInfo...which was null.

    Add a null check here so that the actual bug can be tested.
2012-01-20 00:20:13 -05:00
Jonathan Pryor e35c4d694b [System.ServiceModel] Speed up Bug652331_2Test test execution.
For reasons I currently can't explain, the Service1Client test type
appears to support having only one async operation "in flight" at a
time. As a result of this, calling multiple Async methods on the
Service1Client instance, as was done previously, would result in not
all of the event handlers being invoked, and the test timing out
after 60s instead of exiting quickly because all event handlers had
been raised.

I don't understand enough of WCF & this code to say why Service1Client
can have only one async operation in progress at once, but making this
change so that each async operation operates on a separate instance
speeds up the Bug652331_2Test execution from 60s to 5s.
2012-01-20 00:20:05 -05:00
Zoltan Varga 19e67c0dc6 Avoid passing a Module to the GetSigHelper methods (), which can happen if an ILBuilder is used from a dynamic method. Fixes #1900. 2012-01-20 05:57:09 +01:00
Zoltan Varga 37db673795 Fix -O=shared support in mono_delegate_ctor (). 2012-01-20 02:35:49 +01:00
Gonzalo Paniagua Javier 363d32c7dc UploadFile+PUT does not wrap the file in a multipart envelope
When using PUT as the method to upload a file using WebClient, the file
	is uploaded as-is, without the multipart boundaries, headers,...
	Fixes bug #2970.
2012-01-19 12:34:52 -05:00
Miguel de Icaza 33ce03c03b Fix my last commit 2012-01-19 00:09:54 -05:00
Miguel de Icaza 58ab8f2f10 Prevent race conditions for this cached variable, by using a temporary variable, fixes #2952 2012-01-18 11:19:25 -05:00
Rolf Bjarne Kvinge f6252f4659 DateTime.FromFileTimeUtc should return a DateTime with DateTimeKind.Utc. Fixes #2936. 2012-01-18 00:45:34 +01:00
Rolf Bjarne Kvinge bd747ae200 System.Data: DataTable.ImportRow should be able to handle columns with different types. Fixes #2926. 2012-01-17 22:16:18 +01:00
Rolf Bjarne Kvinge 5092bb1023 threadpool: Disable the gc for threadpool threads while waiting for work. Fixes #2619 2012-01-17 17:22:39 +01:00
Rolf Bjarne Kvinge b371946d24 sgen: Add support for disabling the gc for a thread 2012-01-17 17:22:35 +01:00
Zoltan Varga 719aac656e Avoid passing methodspec tokens to mono_aot_get_method_from_token (). 2012-01-16 23:16:57 +01:00
Zoltan Varga 21c1183934 Fix delegate invokes in shared mode. 2012-01-16 23:16:11 +01:00
Miguel de Icaza 9bca0865a2 Implements TimeZoneInfo.Local for Windows
Fixes #2791, contributed by Jonathan Shore <[email protected]>
2012-01-15 15:10:55 -05:00
Tristan Caulfield 019ede8079 * fix tasklets crash on x86 2012-01-14 19:04:51 +01:00
Zoltan Varga b6c6e42ba3 Respect the SizeConst parameter to UnmanagedType.ByValTStr. Fixes #2567. 2012-01-14 18:58:46 +01:00
Miguel de Icaza e6b0567e92 Apply fix for 2839 from Michael Mudge 2012-01-13 18:59:10 -05:00
Miguel de Icaza 6ffbd41bf3 Remove the limit on the buffer size, the spec actually calls for supporting messages of up to 0xffffffff bytes in size 2012-01-13 16:49:48 -05:00
Rolf Bjarne Kvinge 3610139238 sgen: report LOS objects pinned by interior pointers as roots to the profiler 2012-01-13 14:54:11 +01:00
Sebastien Pouliot 50268828dd Bring TaskExtensions to the mobile profile. Fix bug #2769 2012-01-12 16:35:57 -05:00
Sebastien Pouliot f49c83779d Do not build a managed X509Chain in MonoTouch and simply ask iOS about the chain. Other SSL related checks about the leaf certificate are still required/done. Avoid many internal exceptions since Mono's machine store does not exists inside iOS devices (note: already part of MonoTouch since 4.3) 2012-01-12 15:48:11 -05:00
Gonzalo Paniagua Javier d7465a722f Heavy IO load might cause obj to be NULL
Fixes novell bug #704264.
2012-01-12 12:05:52 -05:00
Zoltan Varga d3a95fa616 Implement mono_gc_set_stack_end () for Boehm/null GC to remove the #ifdef HAVE_SGEN_GC dependency from driver.c. 2012-01-12 00:09:04 +01:00
Rolf Bjarne Kvinge 575a460fc3 Set the end of the stack for the main thread
This helps the GC by minimizing the stack area to scan, while at the
same time reducing the chance of false positives when scanning the stack
for managed objects since we know no managed object can live on the
stack above the main function. This improves memory usage for the test
case in #2619 quite much (but that particular bug isn't fixed by this).
2012-01-12 00:08:59 +01:00
Miguel de Icaza ce3fc24bc2 Fix x #2191
From Federico Di Gregorio <[email protected]>, allow leading sign
2012-01-11 16:08:55 -05:00
Zoltan Varga ecd2f2d1b8 Disable shared mode for non-corlib and inflated methods since appdomain unloads can invalidate them. 2012-01-11 21:40:32 +01:00
Rodrigo Kumpera 8e8b2f3392 Fix enter/exit critical region visibility. 2012-01-11 13:03:39 -02:00
Rodrigo Kumpera 7c8bf76693 Aleviate fencing on critical regions and allocation.
* sgen-gc.c: Critical regions only requires proper visibility
	on the enter side. On the exit side all we need to make sure is
	ordering.

	* sgen-gc.c: Allocation don't need to have all stores imediatelly
	visible, only properly ordered when it happens.
2012-01-11 13:03:39 -02:00
Rodrigo Kumpera d4956e2f14 Storing the vtable pointer on the object header requires release semantics 2012-01-11 13:03:38 -02:00
Rodrigo Kumpera acc499e32d Replace an explicit memory barrier with mono_atomic_store_release. Thanks from x86-land. 2012-01-11 13:03:38 -02:00
Rodrigo Kumpera ce8a66c3f3 Complete acquire/release ops. Make acquire/release have ECMA sematics. 2012-01-11 13:03:37 -02:00
Rodrigo Kumpera c13b7ea6c1 Fix release semantics to make sure it flushes the store buffer on ia32/amd64.
* mono-memory-model.h: Release semantics must cause the store buffer
	to be flushed on x86. Add variants of atomic_store that only provides
	sequencing with previous stores.
2012-01-11 13:03:36 -02:00
Rodrigo Kumpera a57bf2d262 Extract the code to emit a memory barrier. Add a memory_barrier_kind field to MonoInst::backend. 2012-01-11 13:03:35 -02:00
Rodrigo Kumpera 8d8b6c57e2 Add the basics for memory model aware fencing.
* mono-memory-model.h: New header that exports the basics
	to will enable us to apply fencing only on archs that need it.
2012-01-11 13:03:35 -02:00
Zoltan Varga 28a571c022 Don't compile dynamic methods in shared mode. 2012-01-10 22:54:26 +01:00
Gonzalo Paniagua Javier 81061e629a Use the right socket for the data stream
This fixes bug active data connections.
	Fixes xamarin bug #1294.
2012-01-10 16:35:12 -05:00
Rodrigo Kumpera 6acec36426 Fix the iteraction between bridge and major evacuation on a minor overflow major collection.
* sgen-gc.c: The bridge code is split into 3 steps, one done when we collect finalizable objects,
	one done before we restart the world and the last right after.

	The first step can be executed twice if an overflow major collection happens. We handled this
	situation by avoiding duplicates in the registration code.

	This works fine except if a registered bridge object is moved by the second collection, which can
	happen when defragmentation kicks in.

	Instead of fixing those pointers, which is quite tricky, we move hash building to happen in the second
	step and discard all elements on the registered bridge array before each collection.  Since all bridges
	collected by the first collection will be collected again on the second, we can do it.
2012-01-10 19:17:25 -02:00
Zoltan Varga fd984e3fe6 Fix an IndexOutOfBounds exception in the sdb packet writer. 2012-01-10 22:16:39 +01:00
Gonzalo Paniagua Javier 5b344f2b89 Don't send the buffered request until GetResponse is called
Allows changing some header values after writing the request until the
	call to (Begin)GetResponse()
2012-01-10 15:59:57 -05:00
Zoltan Varga 66c3f85e2c Add memory barriers to interlocked operations on ARM, since the runtime code depends on it. 2012-01-10 17:43:19 +01:00
Zoltan Varga 997cff0cd7 Allow enum->basetype argument conversion in CreateDelegate(). Fixes #794. 2012-01-07 00:41:37 +01:00
Zoltan Varga b487294279 Call mono_create_jit_trampoline_in_domain () in mono_resolve_patch_target () so shared methods don't end up calling trampolines in another domain. 2012-01-06 22:36:01 +01:00
Zoltan Varga 2f985da336 Fix stack alignment calculation in mono_arch_setup_async_callback () on amd64. 2012-01-06 03:59:47 +01:00
Rodrigo Kumpera a987217a4e Avoid doing IL lookup in the native crash handler. 2012-01-05 21:32:46 -02:00
Rodrigo Kumpera eb601dd083 Add regression test for bxc #1147. 2012-01-05 09:50:54 -02:00
Rodrigo Kumpera 0a7a137703 Properly initialize a rgctx template. Fixes bxc #1147.
* mini-generic-sharing.c (mono_class_get_runtime_generic_context_template):
	When initializing a new rgctx template, we fill it with its parent
	slots.

	When the parent is a non generic class extending a generic class,
	has multiple templates and, finally, the first template has more
	slots that the rest, we would fill more entries than we should
	and later cause an assertion when trying to use those extra slots.

	To fix that we handle it just like a generic parent class and
	count the number of slots each template has.

Fixes bxc #1147.
2012-01-05 09:50:53 -02:00
Jonathan Pryor 84b4051951 [System.ServiceModel.Web] Fix JSON array deserialization for NET_2_1
Fixes DataContractJsonSerializerTest.DeserializeArray() in the NET_2_1
profile, which is also the MonoTouch and Mono for Android base.

The problem is JsonSerializationReader.DeserializeGenericCollection:

	Type listType = collectionType.IsArray ? typeof (List<>).MakeGenericType (elementType) : null;
	var c = (IEnumerable) TypeMap.CreateInstance (listType ??  collectionType);
	// `c` is a List<T>
	...
	ret = collectionType.IsArray ? ((ArrayList) c).ToArray (elementType) : c;
	// yet we cast `c` to an ArrayList?!

This dies with an InvalidCastException on Mono for Android/MonoTouch,
as List<elementType> is not an ArrayList. The solution is to further
separate out the code paths, ensuring that NET_2_1 avoides the cast.
2012-01-04 22:33:35 -05:00
Jonathan Pryor 69eb3f4713 [System.ServiceModel.Web] Support null as value for DateTime? field.
Fixes assistly #5863.
2012-01-04 16:35:42 -05:00
Sebastien Pouliot 2e069b5e19 backport CryptoConfig changes/fixes from master 2012-01-04 11:30:50 -05:00
Rodrigo Kumpera 79a17fef30 Checking if a type is a reference must be gsharing aware.
*  mini-generic-sharing.c: Add mini_type_is_reference
	that returns true for VAR and MVAR if compiling under
	gsharing.

	* method-to-ir.c: Replace usage of mono_type_is_reference
	with mini_type_is_reference.

	* mini-gc.c: Ditto.

	* mini.c: Ditto.

	With the old behavior, the JIT could interpret a (M)VAR
	variable and not been a reference type. This is an issue
	for sgen as we could forgot to emit some write barriers
	or generate the proper stack map.
2012-01-04 05:45:07 -02:00
Jonathan Pryor a7c3740f5f Merge commit a04edc9d from mono/master
Clone input collection for ObservableCollection<T>. Fixes #2169

The commit has been modified from a04edc9d to remove the added unit
tests, as these cause merge conflicts with the mono-2-10 branch (as
the mcs/class/System/Test/... tests don't exist in mono-2-10).
2012-01-03 22:06:30 -05:00
symform 2ddb080ec5 Fixed a race in System.Net.WebConnection that was causing it to throw NullReferenceException on Close/Dispose 2012-01-03 17:15:06 -08:00
Miguel de Icaza 6799a27a6b XmlSerializer: Add support to serialize nullable types when the XmlElement has explicity set the DataType
The existing code had a special code path for handling nullables that
ignored the DataType component.

This patch splits the nullable test away, allows the specified XmlDataType
to be probed and then performs the standard type lookup mechanism.

This allows this:

        [XmlElement ("MyNullableTime", DataType="time", IsNullable=true)]
        DateTime? myTime;

To be serialized as a "time" instead of a "datetime".

Fixes bug #329
2012-01-03 19:38:45 -05:00
Miguel de Icaza ac4d41c3ee Allow trailing commas on Json objects 2012-01-03 19:38:31 -05:00
Zoltan Varga 8701ca9df5 Initialize the out arguments at the beginning of mono_lookup_pinvoke_call (). 2012-01-03 20:41:31 +01:00
Rodrigo Kumpera 26877fb8d4 Properly align calls to mono_jit_thread_attach from wrappers. Fix pinvoke3 OSX with -O2. 2012-01-03 18:00:40 +01:00
Miguel de Icaza 65a7f84678 Fix history navigation 2011-12-26 08:25:52 -05:00
Zoltan Varga 4be815a64b Allow the placement of breakpoints in wrappers using --break. 2011-12-25 15:09:27 +01:00
Zoltan Varga 550c5a630e Fix localloc on MIPS. 2011-12-24 14:35:01 +01:00
Miguel de Icaza e0c41f35c2 Fix move-forward-word by also considering symbols as punctuations (before we could not move-forward 'a>b') 2011-12-22 19:35:37 -05:00
Sebastien Pouliot 0bf1517c97 Do not add the Create flag when ReadOnly is used. Fix http://stackoverflow.com/q/8602726/220643 2011-12-22 10:16:56 -05:00
Jeffrey Stedfast aed10e3f8d [MSBuild.Tasks] Backport other fixes for RemoveDir from master. 2011-12-20 17:37:06 -05:00
Jeffrey Stedfast 9f32d73ebc [MSBuild.Tasks] Fixed RemoveDir to be recursive.
Fix for bug #2576.
2011-12-20 17:31:43 -05:00
Rolf Bjarne Kvinge d30b7de6ca Fix gdb backtraces on OSX.
We can't redirect output from gdb: since gdb will suspend us we won't
be able to read from the pipe we've redirected output to, and we'll
end up deadlocking if gdb outputs a lot of data (see bug #2548).
2011-12-20 11:21:44 +01:00
Rolf Bjarne Kvinge fed99b7ac7 sgen: Don't report all pinned roots as stack roots. 2011-12-20 02:29:37 +01:00
Sebastien Pouliot 083c82f1cc Provide total, not the number of bytes read, in DownloadData. Fix bug #2482 2011-12-19 14:12:18 -05:00
Rolf Bjarne Kvinge 6922ed8629 Disable gdb backtracing until #2548 has been fixed. 2011-12-19 18:52:35 +01:00
Zoltan Varga cd3c79413a Fix List.LastIndexOf () on empty lists. Fixes #2558. 2011-12-19 12:21:58 +01:00
Duncan Mak bc36fbe193 Bump version number to 2.10.8.1. 2011-12-16 11:48:30 -05:00
Rodrigo Kumpera 53d8062782 Fix sgen 2011-12-16 12:03:18 -02:00
Duncan Mak 44983be8f2 Fix typo from commit b4c110c. 2011-12-14 15:51:15 -05:00
Duncan Mak 015444e23d Bump version number to 2.10.8 2011-12-14 14:07:23 -05:00
Rolf Bjarne Kvinge f4433694ac [System.Web.Services] Make sure we don't keep results forever when doing async requests. Fixes #2473. 2011-12-13 23:12:32 +01:00
Gonzalo Paniagua Javier a02076baf6 Fix MAC address for Mac/iOS
The position of the first byte to copy was wrong.
	Fixes bug #2012.
2011-12-13 10:27:57 -05:00
Marek Safar 0a3a379ee0 Fixes NRE when checking most specific type of default parameters. Fixes #2465 2011-12-13 10:10:18 +00:00
Jeffrey Stedfast fbbe941b69 [GetTimeZoneData icall] Fixed logic for zones where there is only a start date
Thanks to Kirill for this patch.

Bug #2223.
2011-12-09 11:57:10 -05:00
Rodrigo Kumpera 61963ca6b1 Fix another case where bridge would not be triggered. 2011-12-08 16:16:33 -02:00
Paolo Molaro 50cc972397 Do the multiplication/division with floating point numbers in time calculations on win32. 2011-12-08 10:01:10 +01:00
Rodrigo Kumpera 340361ff91 Fix severe breakage of sgen bridge code. 2nd and 3rd step where not been called anymore. 2011-12-07 21:12:01 -02:00
Rodrigo Kumpera de6a0113fb Avoid an assert in bridge code when doing a major collection due to minor overflow. Fixes bxc #2349 and bxc #2091.
* sgen-bridge.c:
	* sgen-gc.c: After we split bridge processing in two, one step with world stopped and
	another with world running, we introduced the following regression:

	A minor collection starts and find an young bridge object ready to be processed.
	Major heap overflows and a major GC is triggered. The object mentioned above will
	remain collectible and will be queued for processing again.
	Since we do the first step in finish_gray_stack, it will be done twice in the above
	scenario. This will cause an assertion due to duplicate entries in the hashtable.

	The solution is to split the step that is performed with world stopped into another two.
	One that happens during collections, that can be done multiple times per duty cycle and
	another one that is done only once before we restart the world.

	This split has the minor advantage of reducing duplicated work for the dfs1 step. Nothing big
	as this is one of the fastest steps.
2011-12-07 15:25:12 -02:00
Rodrigo Kumpera 636f9ec0b9 Remove some dead code 2011-12-07 15:22:52 -02:00
Paolo Molaro e5e8c141c5 Fix overflow in the win32 monotonic time (xambug #183). 2011-12-07 15:05:00 +01:00
Rodrigo Kumpera 764f9cbd32 Use mono-tls for the current domain.
* domain.c: Use mono-tls for the current domain variable.
	Sgen depends on this so it has to be lock free and the
	io-layer version is not.

	Fixes bxc #2326
2011-12-06 09:12:48 -02:00
Rodrigo Kumpera a96b9dd614 Move current thread to use mono-tls. 2011-12-06 01:57:52 -02:00
Rodrigo Kumpera b4c110c021 Backport utils/mono-tls.h. 2011-12-06 01:57:51 -02:00
Duncan Mak 1f505f2ebb Add TimeZoneInfo.MonoTouch.cs so that it's included in dist 2011-12-05 20:28:03 -05:00
Zoltan Varga 3e62b6e207 Fix infinite recursion introduced by the previous patch. 2011-12-05 06:01:06 +01:00
Zoltan Varga 83e5c48472 AOT the cctor of generic classes which are referenced by SFLDA patches and superclasses of generic instances. Fixes #2155 2011-12-05 05:53:10 +01:00
Duncan Mak abc05b767c Bump to 2.10.7 2011-12-02 15:26:04 -05:00
Jb Evain 7019e2b39f Test for assignability of arrays to generic interfaces. Fixes #2304. 2011-12-02 16:46:09 +01:00
Paolo Molaro 137efe9736 Fixed complex value type scan (xmarin bug#228). 2011-12-01 17:53:52 +01:00
Marek Safar 4752df3669 Fix Array::Contains for null items via ICollection<T>. Fixes #2260
Conflicts:

	mcs/class/corlib/System/Array.cs
2011-11-30 13:52:58 +00:00
Sebastien Pouliot a2d3a480e9 Ensure that [Parameterized]ThreadStart code is always wrapped in a NSAutoreleasePool for MonoTouch. Fix bug #1999 2011-11-29 19:56:00 -05:00
Jeffrey Stedfast e79c9e9135 [monodoc] Removed debug spew 2011-11-29 16:14:06 -05:00
Miguel de Icaza bd511fa11e Fix the build, add declaration for SeqPoint 2011-11-28 04:38:37 -05:00
Zoltan Varga f8539f3cf6 Add a heuristic to insert_breakpoint () to avoid 'Unable to insert breakpoint' errors in some cases, since the set of IL offsets in the debug info doesn't completely match what the JIT generates. Fixes #407. 2011-11-26 18:09:17 +01:00
Zoltan Varga 614da57287 Save the stack space used by arguments into MonoJitInfo to avoid calling mono_arch_get_arg_info () during stack walking, since it is not signal safe. Fixes #2190. 2011-11-24 20:06:33 +01:00
Miguel de Icaza c8778b1133 Extend JsonSerializerReader to support nullables and parse a wider range of Date formats, fixes x#163 2011-11-24 01:32:05 -05:00
Zoltan Varga f3692b8819 Always free _WapiFileShare entries using _wapi_free_share_info (), otherwise zeroed out entries remain in the hash table when shared handles are disabled. Fixes #2170. 2011-11-24 02:38:49 +01:00
Rodrigo Kumpera ae25c90d61 Correctly calculate the number of cards to be marked.
* sgen-cardtable.c (sgen_card_table_mark_range): The number of
	pages to be marked must be correctly calculated to avoid the case
	when the in-card offset of the start address is bigger than
	of the end address and cause the last card to be skipped.

	Fixes #1917
2011-11-23 20:56:59 -02:00
Zoltan Varga ff47ddc6db Fix a crash introduced by 64d35e3940. Fixes #2150. 2011-11-22 23:00:21 +01:00
Rodrigo Kumpera 88ac3e5d4d Scan all ephemeron arrays during nursery collections.
* sgen-gc.c (mark_ephemerons_in_range): All ephemeron arrays
	must be scanned during a nursery collection since we ignore
	them during remset processing for a good reason.

	In the future we should use cardtable information to avoid
	scanning the whole thing.

	Fixes bxc #1175.
2011-11-22 17:25:43 -02:00
Neale Ferguson 9746e8d9f8 Implement serialization 2011-11-22 10:12:41 -05:00
Jonathan Pryor 10bcc0d354 [MonoDroid] Only alias stdout/stderr on Android devices.
Mono for Android uses Mono 2.10 + smcs to build code, which thus uses
an smcs built against the Mono for Android profile assemblies, which
would thus be built with MONODROID defined. Thus (understandably) dies
at runtime with a DllNotFoundException, as liblog.so can't be found.

Fix smcs.
2011-11-21 18:46:13 -05:00
Jonathan Pryor cf3562d2c8 [MonoDroid] Fix the libmono build.
7e49d08a nee 2763aae9c doesn't build because <fcntl.h> is missing:

	mono/utils/mono-proclib.c:517: error: 'O_RDONLY' undeclared (first use in this function

Fix the build.
2011-11-21 12:53:46 -05:00
Jonathan Pryor 2388926d50 [corlib] On Android, alias stdout/stderr to logcat.
In Mono for Android, stdout and stderr (file descriptors 1 and 2) are
only visible when debugging within MonoDevelop and/or Visual Studio,
which is rather annoying.

This was changed in Mono for Android 1.9.2, by using Console.SetOut()
and Console.SetError() to send stdout/stderr message to both
stdout/stderr and to the Android Debug Log (`adb logcat`), allowing
e.g. Console.WriteLine() output to be viewed outside of a debugger.

Problem: in order to capture user-generated messages at their earliest
point, Console.SetOut()/etc. must be called at the earliest point in
Mono for Android initialization, even if Console.WriteLine() is never
used. Worse, this adds ~180ms of startup overhead on a Nexus One.

The fix here is to move the std*/logcat duplication logic into
mscorlib.dll, so that we can configure things within the
System.Console static constructor. This moves the initialization
penalty onto users of System.Console (instead of all users).
2011-11-21 09:30:59 -05:00
Zoltan Varga d6be15f97b Don't allow compiling with stock LLVM versions, only the Mono LLVM repo at https://github.com/mono/llvm is supported. 2011-11-20 20:17:03 +01:00
Zoltan Varga ad8e7c929f Free debug info for dynamic methods by storing it in malloc-ed memory instead of the normal debugger tables. Fixes #731579. 2011-11-20 14:10:20 +01:00
Rolf Bjarne Kvinge 1638105782 [System.Data] Fix sorting in DataView when changing sort value/default sort several times. 2011-11-16 16:01:38 -05:00
Jérémie Laval ad939942b5 Fix previous commit 2011-11-16 13:21:46 -05:00
Jérémie Laval e2110645f1 [MonoDroid] Query hardware CPU count for Environment.ProcessorCount 2011-11-16 11:18:38 -05:00
Rodrigo Kumpera 55f3721a38 Add JIT counters to the local set of counters we support. 2011-11-15 21:41:25 -02:00
Alan McGovern 82d9fb288c [io-layer] Use lstat as a fallback for stat in SetFileAttributes
Make SetFileAttributes consistent with GetFileAttributes - if
stat fails and ENOENT try to use lstat in case it's a dangling
symlink.
2011-11-11 16:55:41 +00:00
Neale Ferguson 9196c64c2a Fixes bug 1916 - incorrect appending of string to buffer when remaining buffer size is less than string size. 2011-11-10 18:42:33 -05:00
Jérémie Laval 3dfc36e4ac Add missing Task_T_Test file 2011-11-10 23:37:38 +01:00
Miguel de Icaza 044461a63b Add locking around the ServiceModel.Logger, fixes a race reported on the mono-devel list 2011-11-09 23:14:49 -05:00
Rolf Bjarne Kvinge fd05675b35 Log profiler: fix comment typo 2011-11-09 00:15:48 +01:00
Sebastien Pouliot 2e9eca05b9 fix typo in monotouch build 2011-11-08 15:57:34 -05:00
Zoltan Varga eefdcf1d3a Fix profiler build if boehm is disabled. 2011-11-08 17:47:16 +01:00
Sebastien Pouliot 8546da29ca Workaround AOT limitation for bug #1443. Patch by Rodrigo Kumpera 2011-11-08 07:58:04 -05:00
Sebastien Pouliot 793bbb9a87 MonoTouch specific initialization for TimeZone (devices). Fix bug #1790 2011-11-08 07:58:04 -05:00
Jérémie Laval 5ff0b3b636 Import TPL unit test from master 2011-11-07 19:05:14 +01:00
Jérémie Laval 51eb841a56 Import TPL changes from master 2011-11-07 18:20:33 +01:00
Rodrigo Kumpera c3026122e9 Fix marshaling of Win32_IN6_ADDR. 2011-11-05 14:15:59 -02:00
Robert Jordan 6bf88caf77 [Web] Fix obvious typo in DELETE FROM WHERE statement. 2011-11-05 14:47:33 +01:00
Zoltan Varga 8b336154f7 Avoid adding a ref in OpenProcess (), it is already added in _wapi_search_handle (). Fixes #1682. 2011-11-04 18:15:40 +01:00
Zoltan Varga 9ecf360a2b Fix a crash if a profiler is not found. Fixes #1855. 2011-11-04 16:53:56 +01:00
Sebastien Pouliot 9c72742bf8 OSX and iOS does not support CLOCK_MONOTONIC so we use mach_timebase_info instead. Fix bug #1366 2011-11-04 11:14:15 -04:00
Jeremie Laval 5faf9e26c8 Add RwWrite flag to status check when already owning upgradeable lock. Fix #802. 2011-11-04 01:17:37 +01:00
Rodrigo Kumpera 6bc4446f02 Implement the icalls needed by the new mobile mmap code. 2011-11-03 17:39:59 -02:00
Rodrigo Kumpera 32942d4014 Implement a mobile ready version of memory mapped files. 2011-11-03 17:39:58 -02:00
Rodrigo Kumpera 66c0b04951 Move all Mono.Unix deps into a single place and put a skeleton of MOBILE support for mmap'd files. 2011-11-03 17:39:58 -02:00
alexrp 7cbff8d169 Fix call to mono_sgen_gc_unlock () in mono_gc_toggleref_add (). 2011-11-03 14:39:45 +01:00
Zoltan Varga a58017ca8e Fix a crash which happens when an inlined method ends with a throw inside a branch, i.e. the return value is not on one branch, and not on the other. Fixes #1835. 2011-11-02 22:54:33 +01:00
Rolf Bjarne Kvinge 6efa57b2c2 [Mono.Data.Sqlite] Use a prebuilt resources file like Managed.Windows.Forms does.
This makes it possible to build the monotouch profile, since generating the resources
file requires a System.Windows.Forms.dll, which monotouch doesn't have.
2011-11-02 12:13:38 +01:00
Zoltan Varga 6373d04e93 Delete unused link.h include 2011-11-01 20:57:26 +01:00
Jeremie Laval b8cd87e608 Set success boolean in all cases and avoid state masking. Fix #124 2011-11-01 16:30:37 +01:00
Rodrigo Kumpera 9fa7633b1f publish the same events as pthread_stop_world 2011-11-01 10:20:59 -02:00
Rodrigo Kumpera 8ea6fd8ac5 Implement new toggleref machinery for sgen.
* sgen-toggleref.c: GC backed toggleref machinery. This enables
	embedders to support toggleref style of external memory management
	without hooking up to the host retain/release machinery.

	The API export two entry points. The first let the caller register
	a callback with sgen that decides the state of a given object, by
	probably inspecting its native state. The second allows registration
	of objects with the toggleref machinery.

	The idea of toggleref is that we keep an external reference to an object
	and it can be  either a strong or weak reference. We use a weak reference
	when the external peer has no interest into the object and a strong otherwise.
2011-10-26 15:16:29 -02:00
Rodrigo Kumpera 29bc8d9b9c Export a bunch of sgen functions for internal usage. 2011-10-26 14:25:41 -02:00
Rolf Bjarne Kvinge d1df969755 Log profiler: ensure the size we pass to getsockname is initalized correctly. 2011-10-26 15:24:11 +02:00
Rolf Bjarne Kvinge 33e0667472 Log profiler: flush file after writing to it. 2011-10-26 15:22:36 +02:00
Rolf Bjarne Kvinge 2ee0c254a4 Log profiler: add support for writing to an existing file descriptor. 2011-10-26 15:02:49 +02:00
Rolf Bjarne Kvinge 5ddf92f33c Profiler: add support embedded profilers whose entry point ends with _<profiler name>. 2011-10-26 14:20:44 +02:00
Lluis Sanchez 4960cd6133 [System.Xml] Fix handling of XmlSchemaForm when importing elements
When the schema for is not explicitly set for an element, get the default form specified in the schema, and use 'unqualified' if there is no other default. This fixes bug #41.
2011-10-26 11:29:32 +02:00
Atsushi Eno dd1a9c331a Fix NET_2_1 builds. 2011-10-26 00:36:30 +09:00
Rolf Bjarne Kvinge 352bb2461b When providing stack trace for a crash make sure we attach to the crashed process, not the forked process that will become gdb. 2011-10-24 22:38:22 +02:00
Miguel de Icaza 4ef6555a3a Remove the exit code so that we can get a little bit further on MacOS X 2011-10-24 12:53:34 -04:00
Atsushi Eno 1e25dd1757 Give prefix "i" for xsi:nil. Patch by Alexander Riman, fixes pt.2 of #1198. 2011-10-24 23:53:59 +09:00
Miguel de Icaza 995a774521 Patch from Mario Kosmiskas for Bug 1460: add support for Path.GetFileName to work with MONO_IOMAP 2011-10-22 21:09:30 -04:00
Miguel de Icaza 4aeb0b7347 Fix from github.com/sehe for passing the command line arguments to the OnStart method 2011-10-22 09:58:57 -04:00
Miguel de Icaza 0e2108e5e0 Make this build on the MOBILE profile 2011-10-21 11:49:49 -04:00
Marek Safar 3f246aa0b2 Fix VolatileRead(uint&), VolatileWrite(uint&,uint) to use correct word size 2011-10-19 15:38:13 +01:00
Sebastien Pouliot 0222d30eab Ensure private key flow from the mono store into the X509Certificate2 instance. Patch from bug #1201 2011-10-18 15:50:34 -04:00
Alan McGovern 35c0bb794e [WindowsBase] Add better support for Default/Override content_types
System.IO.Packaging already had full support for parsing [Content_Types].xml
if it contained both <Override> and <Default> nodes when specifying content
types for files. However we had taken a shortcut before by explicitly writing
the content type of each file using an <Override> attribute for every file. We
now properly write a <Default> element and only use <Override> attributes when
required.
2011-10-18 11:43:14 +01:00
Jérémie Laval d12e49a9b3 [WindowsBase] Don't treat special file [Content-Types].xml as a part, ends up as a duplicate when writing back a package 2011-10-18 00:50:49 +01:00
Alan McGovern 97426e608b [System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
2011-10-18 00:48:28 +01:00
Miguel de Icaza daa4a4f0f5 Fix for 1461: Microsoft's generated deserializer call CollapseWhitespace extensively 2011-10-17 17:06:29 -04:00
Rolf Bjarne Kvinge b3cc72b9a7 Add System.Numerics to the mobile profile. 2011-10-17 12:32:45 +02:00
Gonzalo Paniagua Javier 32029f1171 Return the correct length for input streams 2011-10-17 00:46:14 -04:00
Marek Safar 44882b1925 Fix System.Data.Services.Client public key 2011-10-16 12:03:08 -04:00
Miguel de Icaza b7ad6a07a8 Apply patch from Mario Kosmiskaso fix bug 1210: Correctly propagate the Operation Context on async calls
The OperationContext is a [ThreadStatic] variable therefore when a REST call is
made asynchronously the worker thread will not see a context set and will not
expose any data through the context.

A possible solution (which I implemented in the attached patch) is for
ClientRealProxy to set the context in the channel prior to executing the call
(either sync or async). The ClientRuntimeChannel needs to then properly set and
reset the context in the worker thread.

Because WCF operations marked [OperationContract(AsyncPattern = true)] using
IAsyncResult only generate an outgoing call on End<OperationName> the
ClientRuntimeChannel.EndProcess must not reset the context as it's currently
doing. The context can only be reset after calling EndInvoke because the
request will be only generated at this point.
2011-10-16 11:44:36 -04:00
Miguel de Icaza 2bb4353929 Apply patch from Mario Kosmiskaso fix bug 1209: Patch to correctly expose WebOperationContext.IncomingResponse
There was apparently no point in the call flow when the reponse message was set
in the context, resulting in WebOperationContext.IncomingResponse always being
null.

After patching WebMessageFormatter to set the response in the context (if
available) the value of WebOperationContext.IncomingResponse was still null. A
bit more investigation showed that IncomingWebResponseContext would construct a
HttpResponseMessageProperty encapsulating the OperationContext at the time the
request was made but before the response was received and cache that object.
That caused the HttpResponseMessageProperty to always have a null value for the
response. The second part of the patch changes this behavior and always creates
a new HttpResponseMessageProperty on GET.
2011-10-16 11:41:36 -04:00
Miguel de Icaza 88df658060 Apply patch from Mario Kosmiskaso fix bug 1207: Throw the correct exception when a REST request returns a 404
.NET throws a EndpointNotFoundException encapsulating a WebException when a
REST request returns a 404.

The attached patch tests for a 404 and throws the same exception chain thrown
by .NET.
2011-10-16 11:37:43 -04:00
Miguel de Icaza 6ca75c627b Apply patch from Mario Kosmiskaso fix bug 1207: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:37:06 -04:00
Miguel de Icaza 393f7c7f3e Apply patch from Mario Kosmiskaso fix bug 1205: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:33:37 -04:00
Miguel de Icaza 07268b7ab8 Apply patch from Mario Kosmiskaso fix bug 1204: Add certificate to the HttpWebRequest if configured
System.ServiceModel.Channels.HttpRequestChannel never added the configured
certificate to the HttpWebRequest which prevented client side authentication.

The attached patch does exactly that if a certificate has been configured.
2011-10-16 11:32:07 -04:00
Miguel de Icaza 241a34d604 Fix bug 1203, relaxes the test for the protocol to allow https endpoints 2011-10-16 11:29:09 -04:00
Gonzalo Paniagua Javier da1bdf6b34 Don't 404 when any of the hashes has a / in it
This fixes "random" problems getting resources served by
	WebResource.axd.
2011-10-16 00:14:22 -04:00
Rolf Bjarne Kvinge f0737b398c Log profiler: Don't include major collections in ondemand mode. 2011-10-13 14:39:15 +02:00
David Evans f373840a8a Fix regression to System.Diagnostics.Process.PrivateMemorySize64 (). Fixes #1459 2011-10-13 08:01:06 +02:00
QuickJack 2d1dba2a8f Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-12 23:42:33 -04:00
QuickJack a8cee6b88e Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-12 23:42:29 -04:00
QuickJack 76debbe013 Edited mcs/class/System/System.Net.Configuration/BypassElement.cs via GitHub 2011-10-12 23:42:25 -04:00
QuickJack 92bb5751a7 Edited mcs/class/System/System.Net.Configuration/ProxyElement.cs via GitHub 2011-10-12 23:42:20 -04:00
Rolf Bjarne Kvinge 39a7dcb400 [System] Added NetworkCredential.SecurePassword. 2011-10-11 15:12:39 +02:00
Rolf Bjarne Kvinge 276ca3613f [Microsoft.Build] Stub out a lot of classes to make NuGet build with mono. 2011-10-11 15:12:39 +02:00
Rolf Bjarne Kvinge 7e9785dc4e [Microsoft.Build.Framework] Add a couple of 4.0 interfaces. 2011-10-11 15:12:38 +02:00
Rolf Bjarne Kvinge 968a511c89 [WindowsBase] Relationship ids must be valid XML identifiers. 2011-10-11 15:12:38 +02:00
Rolf Bjarne Kvinge 7cce646657 [Microsoft.Build] Stub out a few types to make nuget run. 2011-10-11 15:12:38 +02:00
Leszek 'skolima' Ciesielski b033bff618 [MSBuild] Fixed issues found by Paul Selormey.
Unset attributes should return String.Empty, null is only for invalid.
2011-10-11 15:12:38 +02:00
Leszek 'skolima' Ciesielski 9c94be9d30 [MSBuild] LinkedList used for storing children
ProjectElementContainer should now handle modifications faster.
2011-10-11 15:12:38 +02:00
Leszek 'skolima' Ciesielski 0e4b34fdd7 [MSBuild] Preserve comments in build files
Contribution by Paul Selormey
2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski f784b407c4 [MSBuild] Finishing Microsoft.Build.Construction
No more NotImplementedException.
2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski a246a51c0f [MSBuild] Microsoft.Build.Construction loading project files 2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski 21a92702c3 fixing the build 2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski dffda4000e [MSBuild] Add Microsoft.Build for 4.0 profile
Namespace Microsoft.Build.Construction partiallly implemented,
enought to construct and save a valid project file. Some
tests present (work on .Net).
2011-10-11 15:12:37 +02:00
Miguel de Icaza 736891c361 Add the fallback to MonoDoc 2011-10-07 16:36:28 -04:00
Miguel de Icaza 62e371b81b Avoid loading the same documentation file twice 2011-10-07 16:22:41 -04:00
Sebastien Pouliot 4f64a73a44 Ensure consistency when 'emitContext == true' is used in MONOTOUCH profile (since it won't work when the linker is enabled). Fix bug #1144 2011-10-05 17:44:00 -04:00
Sebastien Pouliot a147386bc4 Internalize [ComImport] in MONOTOUCH profile since it can make the (unlinked) application code crash (and we better spot this at compile time). Fix assistly #2357 2011-10-05 17:43:48 -04:00
Rolf Bjarne Kvinge d87a79de52 [System.ServiceModel] Write EndPointAddress properly in the 2.1 profile. Fixes #1244 2011-10-05 22:57:02 +02:00
Alan McGovern 14a9dbdd34 [System.IO.Path] Fix potential infinite loop in Path.GetTempFileName
Refactor this method so that it only attempts alternative filenames if
the filename just attempted already exists. This way we will never end
up looping forever being unable to create the required file. Previously
if we opened the maximum allowed files and then called GetTempFileName
we'd loop forever throwing an IOException in the FileStream constructor
every time.
2011-09-30 13:25:41 +01:00
Gonzalo Paniagua Javier fc7ffed3ac Plug an unmanaged memory leak
If Flush() was called with final_flush set to true, we were leaking the
	unmanaged memory in the output stream (if allocated).

	It was "only" an AS leak.

	Thanks to Kumpera for the help debugging this.
2011-09-30 01:23:03 -04:00
Gonzalo Paniagua Javier 7cf63b69e6 Merge pull request #167 from konrad-kruczynski/send_async_fix
Fix for Xamarin bug #531.
2011-09-29 11:47:55 -04:00
Jeffrey Stedfast 3bb319b61d [TimeZone] Fixed race condition with renewing the CurrentTimeZone object.
Fixes bug #1055.
2011-09-29 10:57:40 -04:00
Rodrigo Kumpera 6148e4b997 Request ObjectMirror type and domain in a single request. 2011-09-29 03:23:05 +02:00
Rodrigo Kumpera 39c0feba1c Cache thread id. 2011-09-29 03:18:19 +02:00
Rodrigo Kumpera 89881c9b4d Cache source files. 2011-09-29 03:17:41 +02:00
Rodrigo Kumpera 47c388364d Cache ObjectMirror type and domain. 2011-09-29 03:17:17 +02:00
Rodrigo Kumpera 8ad829ac4e Avoid looking up the ctor mirror twice. 2011-09-29 03:16:55 +02:00
Zoltan Varga 93e489abf2 Avoid a crash if mono_debug_open_image_from_memory is called without --debug. Fixes #1093. 2011-09-29 02:01:29 +02:00
Zoltan Varga 742ff74e50 Save/restore argument registers when instrumenting tail calls. Fixes #971 2011-09-27 20:58:39 +02:00
Rodrigo Kumpera abff177b4b Split bridge processing in two steps.
* sgen-bridge.c: Bridge processing must be split in
	two steps because the object scanning step must be done
	with world stop and before we copy the finalizable objects
	and the ones pointed by them.
2011-09-26 20:07:10 -03:00
Rodrigo Kumpera 5524ab9825 Fix the interation of non tracking weak refs and ephemerons.
* sgen-gc.c (finish_gray_stack): We must process ephemerons
	before we check for non track weak refs to make sure we mark
	those values whose only root are their keys.
2011-09-26 19:35:52 -03:00
Mark Probst d51f05c88b [sgen] Do the bridge callback after the world has been restarted.
Conflicts:

	mono/metadata/sgen-gc.c
2011-09-26 19:32:59 -03:00
Gonzalo Paniagua Javier 35f3c96490 Create the first tp thread right away.
Avoid 500ms delay.  Fixes Xamarin bug #1036.
2011-09-25 02:21:40 -04:00
Jérémie Laval c1d9d1a6b6 Fix double adding in ConcurrentDictionary ctor with IEnumerable seed. 2011-09-25 11:27:47 +02:00
Sebastien Pouliot 8bb319b1e6 Provide binding for sqlite3_config to allow setting the threading model. Fix bug #652 2011-09-24 09:36:19 -04:00
Gonzalo Paniagua Javier 37ac996882 Return the right empty collection in ParseQueryString.
Fixes Xamarin bug #970.
2011-09-21 07:39:58 -04:00
Miguel de Icaza 0afd473342 Fix my profiler loader.
This is what happens when you test on a pre-configured environment that
already worked fine.    This depended on a function that was never called
so we ended up probing for paths on NULL (repeating the same process twice)
instead of loading the profiler from the installation directory.
2011-09-19 22:53:17 -04:00
Jérémie Laval 4b750612a8 Fix for #892 2011-09-19 18:38:47 +02:00
Jérémie Laval 5d17d13bee Fix more argument checking for Task<T> 2011-09-19 18:38:46 +02:00
Jérémie Laval 475c172dae Check that supplied function argument in a Task<T> ctor isn't null 2011-09-19 18:38:46 +02:00
Sebastien Pouliot 323ff14b65 fix previous fix (wrt #808) 2011-09-19 11:23:14 -04:00
Sebastien Pouliot 4a6df0b082 Fix typo (bug #808) 2011-09-18 11:35:58 -04:00
Sebastien Pouliot 8141307e4b Expose Dispose under the NET_2_1 based profiles. Fix bug #154 2011-09-18 11:35:38 -04:00
Gonzalo Paniagua Javier 27b145e24f Avoid warning 2011-09-16 20:37:02 -04:00
Sebastien Pouliot bdaf7bb33c Allow commit/rollback/update events to work under MonoTouch. Fix bug #233 2011-09-15 22:21:48 -04:00
Alex Corrado 378032bf64 Fix prepending $(CURDIR) to paths failing under cygwin 2011-09-15 13:07:57 -04:00
Alex Corrado a19eb0760b 2.10.6 2011-09-13 23:37:20 -04:00
Gonzalo Paniagua Javier 5cfc62f415 Stop lying in the comments 2011-09-13 20:24:11 -04:00
Gonzalo Paniagua Javier 1ed1c4bed1 Report compilation errors when the type named in 'class' can't be loaded. 2011-09-13 20:24:01 -04:00
Rodrigo Kumpera 616f648f0d Avoid duplicates in the SSC xrefs.
* sgen-brige.c (scc_add_xref): Make sure that the xref
	array is kept sorted by doing sorted insertion for single elements
	and merging for a pair of lists.

	This avoids degenerated cases where performance of the dfs2 step
	goes unbound and slows us down significantly.

	Fixes bxc #496
2011-09-13 15:35:31 -03:00
Rodrigo Kumpera 4fccd4d599 Add logging to sgen-bridge. Log times and sizes. 2011-09-13 15:35:30 -03:00
Rolf Bjarne Kvinge bd4f80e803 [System.Data] Delay column expression evaluation after all the columns have been cloned when cloning a table. Fixes #666.
When cloning a table we loop over all the columns and clone them, but if a column
contains an expression with a reference to a later column, we'll throw an exception
unless we delay the expression compilation until all the columns have been added
to the new table clone.

So I've split out the expression compilation logic from the Expression property setter,
and now the column Clone method only sets the field. The Clone caller is responsible
for calling CompileExpression on the cloned column after adding all the cloned columns to
the cloned table.
2011-09-13 14:15:11 +02:00
Rolf Bjarne Kvinge 9e9b3f913d [System.Data] Properly clone a column's extended properties when cloning a table. Fixes #668. 2011-09-13 13:01:57 +02:00
Jérémie Laval a2a168e5f3 Add missing files. 2011-09-13 12:20:07 +02:00
Jérémie Laval 5f982b1908 Backport System.Threading.Tasks from master to mono-2-10 2011-09-13 12:18:39 +02:00
Gonzalo Paniagua Javier f00202d3e3 Delay initialization of the stream until first read
This way uri-based resources are not fetched before they are supposed
	to.

	Fixes Xamarin bug #762.
2011-09-13 01:24:14 -04:00
Gonzalo Paniagua Javier b4d4033040 Internal worker is kept while there is an ongoing operation
When there is an ongoing operation we can't dispose the internal
	worker because it might be used by the IO threadpool.

	Fixes Novell bug #691076 and Xamarin bug #766.
2011-09-13 00:06:12 -04:00
Sebastien Pouliot 68deb6335e More fixes for running unit tests under NET_2_1 profile 2011-09-12 12:53:17 -04:00
Miguel de Icaza cb965a9d3a Various fixes to the Expression parser, the fixes include:
* Fixes to the SUBSTRING and TRIM function to allow
	  a wider range of functions to be passed as
	  parameters.   This fixes xamarin #665

	* Fix to the Parser.jay grammar to eliminate the
	  reduce/reduce conflicts.

	* Dropping the string concatenation code and instead
	  use the existing arithmetic addition operator which
	  also fixes the concatenation operation in the presence
	  of null values

	* Adds the null literal

With the associated test cases.
2011-09-09 22:04:18 -04:00
Marek Habersack 86262ef424 Support colors on 256-color terminals 2011-09-09 22:04:02 -04:00
Sebastien Pouliot acfa4856b9 Adjust corlib unit tests to reduce failures when executed on the NET_2_1 profile 2011-09-09 13:48:15 -04:00
Sebastien Pouliot be8711a7e6 fix FileStream test failures under Mac OSX 2011-09-09 13:48:01 -04:00
Sebastien Pouliot 7e6a0ff51e Throwing IsolatedStorageException is a Moonlight-behavior and should not have been exposed to other 2.1 profiles 2011-09-09 13:47:48 -04:00
Sebastien Pouliot c989e10293 Ensure we can roundtrip 'Local' (special case) timezone. Fix bug #326 2011-09-09 13:29:40 -04:00
Sebastien Pouliot b04d809478 Return null instead of catching Activator exception (and return null). What was a corner case before is now very common when the linker is used (e.g. monotouch, m4a). Reported in assistly #1741 2011-09-09 13:29:26 -04:00
Miguel de Icaza 219276c182 Fallback: load profiler from the Mono default path. This in particular allows users to run mono --profiler=log foo.exe without having to set anuy environment variables 2011-09-07 18:44:22 -04:00
Sebastien Pouliot 64ff652330 Add null-check on 'partDesc'. Fix bug #612 (WCF regression) 2011-09-07 11:17:55 -04:00
Rodrigo Kumpera 75e3ca80bc Let the system figure our permissions instead of doing a poor job at it.
io.c (DeleteFile): We can't forbit a file to be deleted just before
	it's mask is not u+w. We should just call unlink and let the kernel
	figure out permissions.

	We are not SAMBA.

	We're not in the job of trying to mingle windows and unix permissions
	models so we just let the kernel figure it out and translate the appropriate
	errno value to UnauthorizedAccessException.
2011-09-06 19:36:00 -03:00
Jérémie Laval aa48b6f714 Use a TaskCompletionSource in non-generic ContinueWhenAny case. Fix #647. 2011-09-06 23:55:01 +02:00
Rodrigo Kumpera 2603a2e4fd Improve exception message. 2011-09-06 14:53:00 -03:00
Rodrigo Kumpera 05550e7c66 Add collection logging to sgen. 2011-09-06 14:52:59 -03:00
Gonzalo Paniagua Javier 99349445b1 Display more debugging info when epoll fails 2011-09-05 21:13:07 -04:00
Gonzalo Paniagua Javier d768dd0125 Fallback to poll() if epoll_create() fails
From a patch by Zoltan in bug #705190.
2011-09-05 20:51:10 -04:00
Zoltan Varga e376d9156b Handle threads which die without detaching. 2011-09-06 04:24:21 +02:00
Zoltan Varga 85349b801f Implement AppDomain.ResourceResolve. Fixes #579. 2011-09-04 03:20:22 +02:00
Mark Probst 41d1be9f34 [sgen] Break tracking weak references as early as possible.
Our tracking references code aimed to transform tracking references
into normal weak references the first time their targets became
unreachable.  It was implemented incorrectly though, and is not the
right thing to do in the first place anyway, because tracking
references have to keep tracking if the target is re-registered for
finalization.  The incorrect implementation inadvertently handled
re-registration correctly, but it kept the reference intact for one
garbage collection cycle too many.
2011-09-02 11:14:27 -03:00
Rodrigo Kumpera ac19d5bfaf Handle finalizable objects pointed by bridge objects. (cont...)
* sgen-fin-weak-hash.c:
	* sgen-gc.c: Bridge objects are used to represent objects
	that have references outside of sgen's control. They are
	kept around until the embedder figures out it's ok to
	collect them.
	Until those bridge objects turn externally unreachable,
	they must be kept around. Up to now, the expected pattern
	was to resurrect them during finalization.
	The problem with this approach is that if they hold references
	to other finalizable, non-bridge objects those will be finalized
	and we will resurrect objects that point to dead ones.

	Think of this:

	class BridgeObject {
 		FileStream stream;
	}

	The bridge object is resurrected on the finalizer and so will
	stream, disposing its native handle and been permanently unusable.

	The solution is to process brige objects before we do ordinary
	finalization. We record all dead bridges and copy/mark them.
	We drain the gray queue on the end, which makes sure all other
	finalizable objects that transitively reachable are too.

	Finally, we introduce a breaking change to the bridge API.
	The bridge must set to NULL the first object of all SCC
	entries that remain alive. Other entries will be considered
	dead and will be subject to regular finalization.

	This way, sgen knows when a given bridge object is completely
	unreachable and provides adequate finalization semantics to
	them and referenced objects.

	This fixes bxc #375
2011-09-01 20:13:06 -03:00
Atsushi Eno ae7d005dfc DiffLoader didn't handle encoded name and caused mismatch between .NET. 2011-08-31 17:53:04 -07:00
Atsushi Eno 04427d962d Fix invalid path check for Windows regarding ':'. 2011-08-31 14:12:51 -07:00
Atsushi Eno 57bc2f6ffb Add test for bug #545. 2011-08-31 14:12:42 -07:00
Atsushi Eno 059a6a685b EncoderReplacementFallbackBuffer.Reset() did not really reset its internals. 2011-08-31 14:03:10 -07:00
Chris Toshok 4ac77ca819 prepend $(CURDIR) to jay input files so that the debugging info references the right .jay 2011-08-30 17:06:50 -07:00
Jonathan Pryor d703e86b4b Don't use vasprintf on PLATFORM_ANDROID.
This allows sanely using g_log() within signal handlers.
2011-08-30 15:44:17 -04:00
Atsushi Eno 6870a59952 Implement IXmlLineInfo on XLinq node reader. 2011-08-30 23:13:36 +09:00
Atsushi Eno 721dadd34b LineInfo on namespace nodes were missing. 2011-08-30 20:22:01 +09:00
Sebastien Pouliot b7061d3e57 Fix build. Adding #if MOBILE is just not enough ;-) 2011-08-29 09:53:23 -04:00
Sebastien Pouliot 2f4099863e Fix bug #380. Patch from bnc#605795 were not committed to master but part of MonoTouch 3.x (ended up missing in MT4) 2011-08-29 08:57:30 -04:00
Hin-Tak Leung 96e0c59371 Fix mingw32 cross-build on a git no-branch checkout. Fixes #698446. 2011-08-29 01:25:19 +02:00
Zoltan Varga 1e910229a8 Allow pointers to structures to be passed in pinvoke, MS seems to allow this at least in some cases. Fixes bxc #158.
This partially reverts c4d9097c57.
2011-08-28 17:52:05 +02:00
Jérémie Laval c74031105a Check that CancellationToken coming from OperationCanceledException isn't None. Fix #472. 2011-08-28 14:50:12 +02:00
Atsushi Eno 279678d726 Revert GET switch for serializing requests. BodyWriter handles it better. 2011-08-24 18:13:04 -07:00
TalAloni da306d6e83 Bug Fix: OpenSubKey will open key as writable when RegistryKeyPermissionCheck is set to ReadWriteSubTree 2011-08-25 02:52:30 +03:00
Atsushi Eno 46db32524d for GET request, just skip the member. It does not contain xml for null. 2011-08-24 16:48:46 -07:00
TalAloni 1a6f160c21 Make sure a proper 'Not Implemented' exception is thrown instead of an 'Out of Range' exception. 2011-08-25 02:46:00 +03:00
TalAloni f1d4ca44e2 Fixed an ANSI to managed string conversion bug on native to managed callback functions. 2011-08-25 02:03:15 +03:00
Atsushi Eno 0563034987 Skip serialization when the return type is void.
This batch should fix bug #206.
2011-08-24 12:20:23 -07:00
Atsushi Eno 0baf32151f Do not try to output empty message body to logs. 2011-08-24 12:20:13 -07:00
Atsushi Eno 8bd9eebf1f When there is void return, the common message formatter should ignore it.
This case occurs when MessageContract is used and there is no member for
the return value.
2011-08-24 12:20:02 -07:00
Atsushi Eno b9a5b85c16 ReturnValue in MessageDescription was missing when there was MessageContract. 2011-08-24 12:19:52 -07:00
Atsushi Eno c98be1ad12 Differentiate GET query parameter binding from another request binding.
This is one core of the bugfix for #206.
2011-08-24 12:19:42 -07:00
Atsushi Eno 67b1fcec06 When there was no path parameter, it ignored the whole path part. 2011-08-24 12:19:31 -07:00
Atsushi Eno 4643f66d1a This filter should ignore port, and should not filter out anonymous URIs. 2011-08-24 12:19:21 -07:00
Atsushi Eno e3aa857b74 UriTemplate should not be mandatory, make it optional. Fix unit test. 2011-08-23 11:43:56 -07:00
Alex Corrado 350fcbd003 2.10.5 2011-08-22 19:58:07 -04:00
Jérémie Laval c6799b1f41 Throw when a non-finished task is started 2011-08-20 15:00:24 +02:00
Jérémie Laval f260ff4299 Make TaskCompletionSource methods thread-safe
Conflicts:

	mcs/class/corlib/System.Threading.Tasks/TaskCompletionSource.cs
2011-08-20 14:54:28 +02:00
Rodrigo Kumpera 7122b78d60 Fix sgen-arm-mach. It requires some #define juggling.
.
2011-08-19 20:36:39 -03:00
Rodrigo Kumpera 52971cce4c Fix variance test involving nullable types.
* class.c (mono_class_is_variant_compatible): Reject valuetypes
	if not the same straight away. This fixes testing IEnumerable<int?>
	with IEnumerable<int>.

	Fixes bxc #185
2011-08-19 19:32:48 -03:00
Rodrigo Kumpera 5dc77749e7 Correctly calculate the size of the freed array buffer.
* sgen-bridge.c (dyn_array_ensure_capacity): We must correctly
	calculate the size as our allocator asserts when we do it with
	very large allocs.
2011-08-19 02:06:24 -03:00
Rodrigo Kumpera 472b3e6fca Fix android's broken pthread_kill under sgen. 2011-08-18 14:02:26 -03:00
Alan McGovern 59b4c5bc3d [LinkedList] Optimise Clear slightly. 2011-08-18 16:06:27 +01:00
Alan McGovern f105c6d4e7 Merge pull request #161 from LogosBible/master
Fix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse.
2011-08-18 16:06:10 +01:00
Zoltan Varga 2e637c4cba Disable some failing LLVM passes. Should fix bxc #280. 2011-08-18 17:00:34 +02:00
Jérémie Laval 8d44e61042 Fix coding style 2011-08-17 20:02:02 +02:00
Sebastien Pouliot eac9866b2c Provide an error message if an instance method is decorated with [MonoPInvokeCallback]. Ease finding issues like bug #296 2011-08-17 10:49:30 -04:00
Alan McGovern 7ada4aec7b [System.IO.Packaging] Fix calling convention related issues
The P/Invokes should be Cdecl as the library is compiled with that
calling convention. The delegates passed to native code must also
be marshalled as Cdecl. Fixes BXC #223.
2011-08-17 12:50:23 +01:00
Miguel de Icaza dacb11a24c updated copyrights 2011-08-17 01:26:05 -04:00
Miguel de Icaza 5c44041365 More updates 2011-08-17 01:21:40 -04:00
Rodrigo Kumpera 56b901df8f Fix g_log redirection under android. 2011-08-16 16:30:06 -03:00
Jérémie Laval 582bd35450 Backport TaskCreationOptions check from master 2011-08-16 19:06:45 +02:00
Jeffrey Stedfast 6057352d91 Merge pull request #158 from nickers/mono-2-10
remove debug CWL's
2011-08-16 04:35:11 -07:00
Tomasz Wsuł 3b450189bb Remove writing statement on standard output 2011-08-16 12:56:08 +02:00
Jeffrey Stedfast 7878c22bbf Fixed a typo in zoltan's last commit 2011-08-15 18:05:13 -04:00
Jeffrey Stedfast 674372dd15 Fix for bug #445855
In this day and age of mobile personal computing devices,
we need to periodically check the underlying system
timezone because the device may have crossed a timezone
boundary.
2011-08-15 15:19:20 -04:00
Zoltan Varga af804a9305 Escape characters in LLVM symbol names 2011-08-15 17:47:56 +01:00
Zoltan Varga 7e2eff0be7 Don't pass MONO_UNWIND_ACTUAL_METHOD to the stack walker in a signal handler, its not signal safe. Fixes bxc #263. 2011-08-14 22:35:55 +02:00
Gonzalo Paniagua Javier 7de999655d [threadpool] Exit on unhandled exceptions only
Unhandled exceptions will only set the exitcode if there is no
	AppDomain unhandled exception handler. When the exitcode is set,
	the TP will exit for unhandled exceptions.

	Fixes bug #227.
2011-08-13 00:34:13 -04:00
Gonzalo Paniagua Javier 1b84abfcab [threadpool] Work around for a race-condition
Under some circumstances new_job was not signaled and the threadpool
	threads didn't realized there was a workitem in the queue.

	Fixes Xamarin bug #12 and Novell bug #690357.
2011-08-12 23:17:05 -04:00
Sebastien Pouliot 8286cbf198 Use 'as' for casting certificate extensions since we already deal with null and malformed extensions will throw, hard to debug, ICE when we just want to ignore them 2011-08-12 14:59:12 -04:00
Gonzalo Paniagua Javier db7d7c47cb Fix the range for rnd.Next() 2011-08-11 14:17:23 -04:00
Rodrigo Kumpera 9445d6e22c Add IObserver/IObservable to MOBILE profile. 2011-08-11 13:19:47 -03:00
Marek Habersack 209c253e3f Compilation fix for e449d41158 2011-08-11 02:29:07 +02:00
Marek Habersack e449d41158 [runtime] Fix for Xamarin bug #99. Don't fail to parse assembly names with spaces surrounding = in key=value pairs 2011-08-11 02:20:11 +02:00
Zoltan Varga 9b4a07a69e Fix the newly added test_0_llvm_regress_171 (). 2011-08-10 18:10:58 +02:00
Jérémie Laval 28766cfe96 Avoid creating a delegate instance in general case when setting up continuations
Conflicts:

	mcs/class/corlib/System.Threading.Tasks/Task.cs
2011-08-10 17:16:23 +02:00
Jonathan Pryor a95adaf53d [System,MOBILE] Add System.Text.RegularExpressions.RegexOptions.Compiled.
Add the RegexOptions.Compiled enumeration value to the MOBILE profile.

Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=149

MonoTouch and Mono for Android still use `PatternCompiler`, which is
interpreted. Thus RegexOptions.Compiled is ignored, and is present only for
compatibility with Windows Phone 7, which states [0]:

	Present only in Silverlight for Windows Phone, but not supported.

[0] http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions(VS.96).aspx
2011-08-09 21:33:56 -04:00
Zoltan Varga 7ae2112edc LLVM requires two PHI entries if a previous bblock branches to the current bblock using a conditional branch whose two targets are the same. Fixes #171. 2011-08-09 21:41:54 +02:00
Zoltan Varga 79b99d358b Add support for reference instances of Interlocked.Exchange<T> to full-aot, similarly to Interlocked.CompareExchange<T>. 2011-08-09 19:16:15 +02:00
Zoltan Varga 12fedc8ee6 Merge pull request #154 from mdsol/fix-mono-tarball-tests
Fix mono tarball tests
2011-08-09 10:03:00 -07:00
Jeffrey Stedfast 27589a4031 If #CONFIGURATION_DEP isn't defined, we still want to get a default proxy 2011-08-09 12:30:32 -04:00
Alex Corrado f12adef20c 2.10.4 2011-08-08 21:00:25 -04:00
Harry Wilkinson 049efb2da8 Include mono/tests/delegate2.exe.config to the source tarball so that the tests pass 2011-08-08 18:16:03 +01:00
Gonzalo Paniagua Javier d41b9d61c2 Merge pull request #150 from bassamtabbara/mono-2-10
Some fixes to mono-2-10
2011-08-08 06:26:42 -07:00
Bassam Tabbara 71b1f58d41 Fixed regression in System.Web.Routing caused by 62b047ae5b. Value and constraint where switched when evaluating regex route constraints. 2011-08-07 23:09:08 -07:00
Bassam Tabbara f983186526 Remove Console.WriteLine from DriveInfo.GetDrives() 2011-08-07 11:51:08 -07:00
Bassam Tabbara c726c88f32 Networkstream now throws IOException('connection closed') if the socket was closed/disposed 2011-08-07 11:17:27 -07:00
Jérémie Laval 3cb9ce92bc Fix for #162 2011-08-05 22:35:13 +02:00
Miguel de Icaza 2504797e50 Merge pull request #129 from grumpydev/CryptoFixo
Fix for out of bounds exception in Rfc2898DeriveBytes
2011-08-05 10:05:56 -04:00
Mark Probst 67ebb6a498 [sgen] Enqueue finalizers after update the pointer.
If the object was forwarded we read a bogus vtable and hence a bogus
klass.
2011-08-04 12:04:50 +02:00
Atsushi Eno d9e839c91b Merge pull request #146 from flutos/207ce0bccceec3ff7860ea986086fedb5a92d822
fix for bug 708178 that would fail if the type wasnt IEnumerable, should check if it implement IEnumerable rather than is IEnumerable
2011-08-04 09:08:12 +09:00
Rodrigo Kumpera fd65ec9388 Fix padding of call instructions. 2011-08-03 19:47:34 -03:00
Chris Toshok 7a0052ae2f don't redefine ABS 2011-08-03 10:42:01 -07:00
Marek Habersack ec0e9d7771 [runtime, globalization] Fix for Xamarin bug #161. Fix culture info data for certain locale short date formats
Modified locales which don't use '/' as the short date separator.
2011-08-03 16:00:46 +02:00
Rolf Bjarne Kvinge 4325b8151a [aot-compiler] Replace assert with descriptive error message. 2011-08-03 15:07:41 +02:00
Atsushi Eno 482e406319 Fix NET_2_1 builds (regression from the previous SecurityBindingElement fixes). 2011-08-03 13:54:08 +09:00
Rodrigo Kumpera e421b10a3d Implement fail tramp support on arm for full-aot imt thunks.
* aot-compiler.c (arch_emit_imt_thunk): Implement fail tramp
	support on arm. This enables variance to work under full-aot.
	The code blowout is not really significant as even on non linked
	apps the imt thunk overhead is 0.5%.
2011-08-03 00:47:20 -03:00
Geoff Norton 55c4b01d95 [gc] Darwin/AMD64 can have 64-bit thread id's, so we need to ensure
we cast properly to make sure the modulus has a valid result.
Additionally add support for x86_THREAD_STATE64.
2011-08-02 23:36:05 -04:00
Atsushi Eno a5610cbed1 Merge pull request #145 from ngraziano/99b87f07af0beed3a887
Fix Service Model Xml Serialization and XMLAttributes
2011-08-02 13:51:35 -07:00
Atsushi Eno fc9e1be0b3 Fix build, merge some missing changes to MessagePartDescription. 2011-08-03 05:46:53 +09:00
Atsushi Eno 9b9fef57d9 Fix bug #707434, check order only when applicable.
Based on the input by Scott Fluto.
2011-08-03 05:36:30 +09:00
Nicolas GRAZIANO 99b87f07af TypedMessageConverter do not take into account the xml attribute which modify the serialization.
Correction and Unit Test.
2011-08-02 22:15:58 +02:00
Atsushi Eno 9a69207087 Merge pull request #143 from mistoll/master
Fixes for WCF BasicHttpBinding with message security
2011-08-02 22:53:01 +09:00
Alex 4cfb3889f8 Define MONO_ARCH_NOMAP32BIT for DragonFly BSD. 2011-08-02 00:07:59 +02:00
Atsushi Eno 0a7f80fb0a Fill/reflect ReturnValue to and from corresponding message part.
This may have fixed bug #41.
2011-08-02 10:00:49 -07:00
Atsushi Eno df66c40aaa part of fix bug #41. MessageParameterAttribute is considered for return value.
Conflicts:

	mcs/class/System.ServiceModel/System.ServiceModel.Description/MessagePartDescription.cs
2011-08-02 07:52:03 -07:00
Jeffrey Stedfast 9b3e4f9034 Oops, fixed a typo 2011-08-01 16:59:52 -04:00
Alex 89dad63b0f Add support for DragonFly and NetBSD to sigcontext. 2011-08-01 10:29:43 +02:00
Jeffrey Stedfast 9636231dda Fix a mkbundle compiler warning by #including mono-config.h 2011-07-29 16:59:27 -04:00
Miguel de Icaza a2d896ec4e Update copyrights 2011-07-29 15:22:11 -04:00
Rodrigo Kumpera 66187b25b6 Use wrappers for accessing socket errors. Cygwin does not have some errors in errno.h. Fixes Windows build. 2011-07-29 13:42:25 -03:00
Rodrigo Kumpera f3deab1057 OSX won't expose IPV6_PKTINFO unless __APPLE_USE_RFC_3542 is defined. 2011-07-28 15:23:36 -03:00
Rodrigo Kumpera 5a9f5defc3 Handle a race on thread cleanup.
* mini.c (mini_thread_cleanup): Under some rare cases it's
	possible to have a NULL lmf.
2011-07-28 15:23:33 -03:00
Alex Corrado e43a74ae3f 2.10.3 2011-07-27 19:07:46 -04:00
Jérémie Laval 06cd95ea65 Same test for TaskCompletionSource 2011-07-27 19:52:01 -04:00
Jérémie Laval 7d088a3f17 Ensure that Task is in a correct initial state before starting it for real 2011-07-27 19:36:40 -04:00
Jérémie Laval 0ddabfc4ab Test that futures throw Exception through Result property when they are Faulted 2011-07-27 19:35:50 -04:00
Jérémie Laval 8078626d49 Add test for various AggregateException ctor exception situations 2011-07-27 18:32:05 -04:00
Jérémie Laval ffad7f7365 Move innerExceptions internal null check at the right place. 2011-07-27 18:21:36 -04:00
Jérémie Laval da2f5156b2 Add testcase to ensure unobserved exception on Task are correctly propagated 2011-07-27 18:12:23 -04:00
Jérémie Laval e3578fe451 Makes AggregateException ToString output closer to .NET one 2011-07-27 18:03:28 -04:00
Jérémie Laval 036c395d3c Fix AggregateException behavior 2011-07-27 18:03:24 -04:00
Jérémie Laval 474417efb7 Allow using a worker number that is greater than Environment.ProcessorCount for parallel loops. 2011-07-27 16:24:08 -04:00
Atsushi Eno 23263e537f Fix wsdl import wrt element qname (!= type name). 2011-07-27 21:05:56 -07:00
Jeffrey Stedfast c98cedfc91 Don't invoke libc uname() on non-Unix systems 2011-07-26 18:41:49 -04:00
Mark Probst 2228af8148 [sgen] Use the proper object size when scanning arrays from a card table.
Using the block object size is incorrect since we might scan beyond
the end of the array.
2011-07-26 18:28:23 +02:00
Mark Probst c6bbff5b5e [sgen] Make the card table on AMD64 correct for 64 bit nursery addresses. 2011-07-26 18:25:46 +02:00
Mark Probst 1b58ec73aa [sgen] Make mono_sgen_safe_object_get_size() handle forwarded objects.
This is sometimes called on forwarded objects from the major collector
during finalization.  Now it doesn't crash anymore.
2011-07-26 18:24:09 +02:00
Miguel de Icaza f49164bf76 Fix invocation to syslog 2011-07-25 19:10:07 -04:00
Atsushi Eno 1ae6c346f6 Fix bug #16: use Owner node instead of Parent. Patch by Martin Potter. 2011-07-26 04:25:00 +09:00
Sebastien Pouliot 45064beb94 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 10:32:46 -04:00
Duane Wandless 8bd7d107a8 Fix crash on Lion when exiting 2011-07-24 15:59:41 -03:00
Geoff Norton d465c35811 Fix configure check for darwin to support all variants 2011-07-24 15:59:40 -03:00
Zoltan Varga fcff387c6a Fix a crash in the soft-float decompose code when a branch following an fcompare is optimized away. Fixes #705186. 2011-07-24 20:45:24 +02:00
Atsushi Eno 513122c74e Avoid possible duplicate xmlns output. Fixes xsp-based hosting somehow. 2011-07-22 14:04:08 +09:00
Atsushi Eno d68521e673 Fix bug #703910 - implement Order support in XmlSerializer. 2011-07-21 04:58:51 +09:00
Marek Safar c5302ba6b6 Merge pull request #135 from eue/mono-2-10
-checked command-line option
2011-07-20 01:10:43 -07:00
Martinho Fernandes 70352e16a9 Test for bug #706877 2011-07-20 09:02:23 +01:00
Martinho Fernandes 150ea5489d [Fix] Command-line option -checked now works (bug #706877)
The -checked option was not being considered in the BuilderContext.
Now it is set on construction of BuilderContext to the value from RootContext.
2011-07-20 09:01:24 +01:00
Atsushi Eno dd4afcfa02 fix build regarding ContentType. 2011-07-19 10:03:37 +09:00
Atsushi Eno a15e2d0bec support action parameter in SOAP 1.2 content type. Close pull request #133. 2011-07-19 02:30:11 +09:00
Rodrigo Kumpera 1e7567b332 Merge pull request #132 from ngraziano/fb497cbb6503c2a0913fddba700079608bcd8892
"make dist" do not work in branch mono-2-10
2011-07-18 07:19:38 -07:00
Atsushi Eno 1dba37de1c Fix bug 704813: just ignore members of type IEnumerable`1 without Add(). 2011-07-16 06:51:45 -07:00
Rodrigo Kumpera bfdd13a52c If a thread abort is fatal, print the exception before dying. 2011-07-15 18:16:36 -03:00
Rodrigo Kumpera a26b65f6b3 Improve stacktraces when facing a runtime invoke wrapper.
* mini-exceptions.c (mono_handle_exception_internal_first_pass):
	Don't trim the trace list if we find a filter clause from a wrapper.
	This makes stacktraces across MRI's work.
	Extract trace trimming into a macro to reduce code duplication.
2011-07-15 18:10:40 -03:00
Rodrigo Kumpera 36f12fc250 Avoid a .cctor on the initialization path. 2011-07-12 19:50:46 -03:00
Rodrigo Kumpera 8c253ee6c3 Add shared_perfcounters option to enable minimal. 2011-07-12 19:50:44 -03:00
Nicolas Graziano fb497cbb65 Correct the include files Platform is not in test. 2011-07-12 16:01:05 +02:00
Rodrigo Kumpera 11bacf8e1b Do DISABLE_PORTABILITY more agressively. 2011-07-12 01:35:35 -03:00
Zoltan Varga 2599353bc0 Add a test for 7cb704d9a9. 2011-07-12 03:19:10 +02:00
Zoltan Varga 9f92b788d8 Avoid register allocation problems when a try clause is nested inside a handler block. 2011-07-12 02:09:27 +02:00
Zoltan Varga c584c82e0d Fix the length of r4const on arm. 2011-07-11 17:11:00 +02:00
Zoltan Varga aa4803c5a4 Fix caching in mono_marshal_get_array_address (). 2011-07-11 00:25:52 +02:00
Zoltan Varga 816556dbb8 Use TARGET_ANDROID instead of PLATFORM_ANDROID in one place. 2011-07-11 00:25:50 +02:00
Zoltan Varga d9ecc66fb6 Really fix the -Wno-unused-but-set-variable check. 2011-07-11 00:25:49 +02:00
Zoltan Varga f333e91d0a Clean up the cross-compile configure.in code. Add a TARGET_ANDROID define. 2011-07-11 00:25:49 +02:00
Rodrigo Kumpera f87620d145 Fix signal chaining to handle a stupid previous handler. 2011-07-09 13:40:43 -03:00
Rodrigo Kumpera 8bd567de14 Arm has MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX. This gives us nice stacktraces on unhandles exceptions. 2011-07-09 13:40:36 -03:00
Rodrigo Kumpera 28a61a5d55 Disable the exception thread under iOS since it's neither needed nor working. 2011-07-09 13:40:29 -03:00
Atsushi Eno d25c23dc46 Full equivalence comparison is unnecessary for MessageEncoder ContentType.
based on https://github.com/mono/mono/pull/130
2011-07-09 06:52:43 +09:00
Jeffrey Stedfast 481881bdf7 Reverted previous commit, struct sizes vary way too much between platforms 2011-07-06 18:20:20 -04:00
Jeffrey Stedfast 44ab43948a Use a struct utsname when calling uname() instead of an 8K buffer 2011-07-06 18:07:34 -04:00
Jeffrey Stedfast 643c0f0cba Add System/Platform.cs to *System*.dll.sources 2011-07-06 13:30:06 -04:00
Jeffrey Stedfast da0d698fce Make internal Platform class static 2011-07-06 12:43:49 -04:00
Jeffrey Stedfast 6f1458dea4 Load the correct type on MacOSX (as opposed to iOS) 2011-07-06 12:04:34 -04:00
Jeffrey Stedfast 72e554c612 Implemented a shared way to detect MacOSX for System.dll 2011-07-05 17:50:21 -04:00
Jeffrey Stedfast e54a124e71 Doh, do proper OSX detection 2011-07-05 17:00:16 -04:00
Jeffrey Stedfast 62e6bd03f6 Use runtime checks to decide to use CoreFoundation.CFNetwork.GetDefaultProxy() 2011-07-05 16:30:50 -04:00
Jeffrey Stedfast be2e765af8 On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy 2011-07-05 13:56:51 -04:00
Marek Habersack c5b95f4bbb [asp.net] Added FormsAuthentication.Timeout 4.0 property 2011-07-01 00:01:19 +02:00
Jb Evain b8e85ce171 Fix handling of null in the non generic implementation of EqualityComparer. Fixes 703027. 2011-06-30 01:25:34 +02:00
Jackson Harper a2b093a9a1 We can accidently swallow out of FD errors here since this function is called from a threadpool thread. 2011-06-28 23:25:15 -04:00
Atsushi Eno 8481eefe9f Implement support for Stream param with WebHttpBinding raw content format. 2011-06-28 20:45:37 +09:00
Atsushi Eno 9f612740f7 Implement support for generic data contract type name with "{x}". 2011-06-28 18:03:49 +09:00
Jb Evain cb4b62c04b Fix queryable enumerable expression transformation 2011-06-23 00:33:09 +02:00
Jb Evain c51e257674 Don't emit null queryable constants when rewriting linq queries, fix #701187 2011-06-23 00:20:13 +02:00
Sebastien Pouliot 40ca71a120 Merge pull request #119 from konrad-kruczynski/SslStreamNoTimeout
Removed hard coded timeout for SslStreamBase.
2011-06-22 06:25:06 -04:00
Michael Hutchinson cc81b58a0e Fix the cairo dllmap on OS X 2011-06-20 14:48:19 +01:00
XTZGZoReX 70640f232b Socket: Fixed a security issue when default-initialized ArraySegment structs are passed in.
This is the same security issue that was recently addressed in MS.NET.
2011-06-19 19:02:34 -04:00
Gonzalo Paniagua Javier 949e910102 Fix crash when there's a \' in the arguments.
Fixes crash when calling Process.Start on a file with a ' in the path
	when UseShellExecute is set to false.

	Patch by Tom Philpot.
2011-06-15 15:36:23 -04:00
Sebastien Pouliot 395aae632d Fix remaining moon-unit failures wrt Sockets changes
* System.Net.Sockets/Socket_2_1.cs: Ensure RemoteEndPoint is always
available after ConnectAsync (connected or not, allowed or not).
Ensure the Connect event is fired even if denied by policy.
2011-06-15 15:36:09 -04:00
Sebastien Pouliot ce9ff91f78 Fix copy-paste error in git 17085447
* System.Net.Sockets/Socket_2_1.cs: Fix some moved code (from
SocketAsyncEventArgs.cs) so should the references to RemoteEndPoint
still point to the SocketAsyncEventArgs instance. Fix some moon-unit
test failures
2011-06-15 15:36:09 -04:00
Zoltan Varga f1861e5cbe Apply a workaround for a gcc 4.6 problem on arm. 2011-06-15 17:31:35 +02:00
Atsushi Eno 79bca55588 Set "Encoder" property when Message was read from MessageEncoder. 2011-06-14 19:19:06 +09:00
Atsushi Eno 3e48da364b finally implement Message.ToString() as in expected form.
Regressions on this method has caused several unpredictable errors,
so I avoided this for somewhat long time...
2011-06-14 18:46:12 +09:00
Atsushi Eno 8b88042311 Flush some ongoing changes for XmlSerializer support in svcutil. 2011-06-14 18:01:07 +09:00
Rodrigo Kumpera 352e7d076d Allow AssemblyRef flags to have at least ECMA's values. Fixes #684613. 2011-06-13 16:38:59 -03:00
Atsushi Eno d4a6887c31 Fix 2.0 build. 2011-06-13 21:36:47 +09:00
Atsushi Eno 6813d3f09b Implement OnWriteBodyContents() and add message buffer support for RawMessage. 2011-06-13 20:07:53 +09:00
Marek Habersack 81d20479d4 [asp.net] Construct properly rooted paths when assigning values from resources 2011-06-13 12:39:23 +02:00
Zoltan Varga 1ff53bb1ba Add an assert to detect TLS mismatches between the aot compilation and runtime environment. 2011-06-12 18:47:17 +02:00
Sebastien Pouliot 927a76eb30 Fix namespace and avoid looping once ctor is found 2011-06-12 12:25:23 -04:00
Sebastien Pouliot 050abd469f Refactor MonoMac's MarkNSObjects substep so it can be reused in other products 2011-06-12 12:25:04 -04:00
Jb Evain 127c3bf6e0 update tuner 2011-06-12 12:24:41 -04:00
Jb Evain cbd9da1acf update tuner 2011-06-12 12:24:14 -04:00
Zoltan Varga 71b1425fd5 Fix the check for the -Wno-unused-but-set-variable gcc option. 2011-06-11 15:35:06 +02:00
Zoltan Varga 89424f5b25 Disable the -Wunused-by-set-variable warning supported by newer gcc versions. 2011-06-11 15:35:06 +02:00
Rodrigo Kumpera 86d31a6e3f Fix darwin-arm build. 2011-06-09 13:55:23 -03:00
Zoltan Varga 84265522ed Fix a corner case where an inlined bblock which had its next_bb set was the last bblock in a method. Fixes #693905. 2011-06-04 15:24:38 +02:00
Jonathan Pryor 662a9ac8f7 Allow Android'd support_boehm=no to work.
The AC_ARG_ENABLE(boehm, ..., ..., support_boehm=yes) resulted in
support_boehm always being 'yes', even for `--host=arm-linux-androidabi`,
which was not the intention. Using `support_boehm=${support_boehm:-yes}`
generates correct behavior.
2011-06-03 17:19:43 -04:00
Jonathan Pryor 33068b3d07 Simplify building with the Android NDK.
Check --host against *-*-linux-android* for Android-specific configure fixes,
and improve **/Makefile.am to simplify Android support:

	./configure \
		--build=`./config.guess` \
		--host=armv5-linux-androideabi \
		--target=armv5-linux-androideabi \
		--enable-nls=no --with-mcs-docs=no --enable-mcs-build=no \
		CC="/path/to/ndk/arm-linux-androideabi-gcc --sysroot=/path/to/sysroot" \
		AR="..." AS="..." CPP="..." CXX="..." LD="..." RANLIB="..." STRIP="..."
		CFLAGS="-DARM_FPU_NONE=1" CXXFLAGS="-DARM_FPU_NONE=1"

See also Android NDK docs/STANDALONE-TOOLCHAIN.html.

The Android NDK/bionic is "interesting", in that it's lacking header files and
macros normally present on Linux which otherwise break the build (e.g. no
<link.h> which breaks Boehm support).  Using --host with an android target
works around the known issues, simplifying the building of libmonosgen-2.0.so
with the Android NDK toolchain.
2011-06-03 16:58:08 -04:00
Atsushi Eno db9f31cbd1 Support RemoteEndpointMessageProperty. 2011-06-03 19:47:40 +09:00
Zoltan Varga 5b3336a997 Fix the previous change. 2011-06-03 12:29:17 +02:00
Zoltan Varga 6920d7ce86 Fix NOMAP32BIT support in specific trampolines. 2011-06-02 23:42:46 +02:00
Rodrigo Kumpera 1da10df16c Handle a vtable layout corner case.
class.c (mono_class_inflate_generic_method_full_checked): Don't
	inflate a method if the provided context won't change it.
	This change, in particular, avoid inflating a generic method
	of a non-generic class if the context has class only vars.

	This fixes #696593 as the above was causing the vtable of
	Class3 ending up with an inflated Class1::Method<> that
	comes from inflated Class2<object> parent.
	Then the parent override pass would collect a non-inflated
	Class1::Method<> overide that would then not match the one
	on the vtable causing Class3 to have an abstract method on
	its vtable and thus failing to load.

	Big explanation means tricky change, might break tons of stuff.
2011-06-01 15:04:34 -03:00
Atsushi Eno 7f2cf89aeb Support WebHttpBinding configuration. 2011-05-31 20:58:05 +09:00
Atsushi Eno 3e629f2ac7 Ref parameter was not covered by ParameterInfo.IsOut. Fixed bug #696784. 2011-05-31 18:55:09 +09:00
Rodrigo Kumpera 3c5a13fa39 Properly handle field RVA under moving collector.
* reflection.c (typebuilder_setup_fields): Alloc RVA data
	on the image mempool so it works with a moving collector.

	Fixes #696817
2011-05-30 18:34:03 -03:00
Rodrigo Kumpera 46c26749eb Fix sgen under xen 2011-05-30 12:23:35 -03:00
Atsushi Eno a2d8112081 Add test for XmlMembersMapping.TypeName and .Namespace (not very useful yet...) 2011-05-27 17:30:12 +09:00
Atsushi Eno bb331ddde1 Fill type info in MessagePartDescription from XmlSerializer-based wsdl importer.
It still needs some fixes to import message elements.
2011-05-27 17:27:01 +09:00
Rodrigo Kumpera 300bc2d4b0 Fix mul_imm under amd64 2011-05-25 15:09:28 -03:00
Marek Habersack f88fba3cbd [asp.net] Don't throw an exception if a session item being released does not have a lock.
It can happen when the item is being released after its associated session has ended.
2011-05-24 11:14:33 +02:00
Atsushi Eno 7b58e280a5 Support named wildcard in UriTemplate matching. Fixed bug #693996. 2011-05-23 20:32:11 +09:00
Atsushi Eno 8dd637646f Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203. 2011-05-23 19:29:28 +09:00
Atsushi Eno 77625cbc89 Allow DocumentType in ImportNode().
http://lists.ximian.com/pipermail/mono-devel-list/2011-May/037575.html
2011-05-19 13:18:20 +09:00
Marek Habersack b122da385a [asp.net] Ignore JavaScript blocks enclosed in HTML comments 2011-05-19 03:37:44 +02:00
Marek Habersack eac15568e2 [runtime] When shadow-copying assemblies, use the io portability function to find the file.
This is necessary in situations when managed code pases case-insenstive file name and the
file on disk uses different case. stat(2) would return an error in such situation and, in effect,
the stat structure would get invalid/random values in its fields.
2011-05-18 22:05:40 +02:00
Atsushi Eno fb67d391a3 Check invalid recursion of xs:group use. Fixed bug #650117. 2011-05-18 01:11:34 +09:00
Marek Habersack 7129d57c22 [asp.net] Fix for bug #650847. Output both tagged and untagged UpdatePanel names in AJAX responses.
Also, update panels which rendered empty string are included in the output.
2011-05-16 16:15:03 +02:00
Atsushi Eno 9e88fe782a Do not import xs:any member as XmlElement[]. Create a wrapper class instead.
Part of bugfix #670945.
2011-05-16 18:47:11 +09:00
Atsushi Eno 91de42214b (manually) Merge pull request #101 from occ/master
Decimal support to XmlBinaryDictionaryReader
2011-05-16 16:41:27 +09:00
Zoltan Varga 02b82fb567 Avoid a crash in Field:GetRawConstantValue () if the field type couldn't be loaded. Fixes #693894. 2011-05-15 13:05:14 +02:00
Atsushi Eno 9fc2d82c3b Implement XmlSerializerMessageContractImporter, round 2.
This time it is XmlSerializer-based, got it somewhat working.
2011-05-14 01:30:21 +09:00
Atsushi Eno 1aebe941ef Do not take host part into consideration on comparing URLs.
It blocks access by different host name (e.g. localhost vs. IP).
This was part of bugfix #687580 (forgot to commit).
2011-05-13 21:55:30 +09:00
Atsushi Eno 9c1b923e99 Implement WsdlContractConversionContext, and ignore message importer for now. 2011-05-13 21:48:41 +09:00
Atsushi Eno 6adda4d4c0 Revert previous XmlSerializerMessageContractImporter implementation.
XsdDataContractImporter is not XmlSerializer-based, while this class is.
2011-05-11 18:42:45 +09:00
Atsushi Eno 5a8f29cbcc Add PipeException. fixed bug #692987 by Eberhard Beilharz. 2011-05-11 16:56:58 +09:00
Atsushi Eno aa2208afee Fixed orders in XmlSchemaObjectTable and got some S.R.Serialization tests working. 2011-05-11 16:37:04 +09:00
Atsushi Eno a1e3732cef CanImport() just returns false, without throwing error. 2011-05-10 22:04:10 +09:00
Atsushi Eno 8bb3b4db45 support import of xs:anyType, as well as make couple of minor fixes. 2011-05-10 21:47:58 +09:00
Atsushi Eno 240c0124a6 Fix common issue in MetadataSet - call MoveToContent() while iterating nodes. 2011-05-10 20:00:38 +09:00
Atsushi Eno 52965a2b9d Add new MetadataSetTest and fix couple of minor issues. 2011-05-10 19:36:26 +09:00
Atsushi Eno bed33dd66b Revive this test by implementing mock web server. 2011-05-10 19:36:16 +09:00
Atsushi Eno c0f3997eaf Add (not-working) callback instance context mode test and FIXME comment. 2011-05-10 19:36:05 +09:00
Atsushi Eno 29adf41cc2 Update XsdDataContractImporter.CanImport and implement ImportXmlType. 2011-05-10 17:42:03 +09:00
Atsushi Eno 0f6b274a8e ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 23:00:39 +09:00
Atsushi Eno 34b7d3a84d Multiple schemas in wsdl could share same SourceUri, so check more identity.
Part of bugfix #670945.
2011-05-09 19:12:09 +09:00
Atsushi Eno 3afbf58c92 Allow xsi:nil for void. Fixed client side of bug #687580. 2011-05-09 13:52:09 +09:00
Atsushi Eno 9193bf8f3f Now our HttpListener can listen to wildcard prefix safely.
Fixed server part of bug #687580.
2011-05-09 13:43:12 +09:00
Rodrigo Kumpera 2b487789c8 Workaround io-layer crashing when the runtime exit without cleaning up everything.
* handles.c (handle_cleanup): When the runtime exit(), not
	everything is shutdown and the main thread might be waiting
	on other threads to finish. On this case, io-layer cleanup
	with assert as a mutex will be in use.
	The work-around is to be lenient to busy resources during
	shutdown.
2011-05-07 00:13:11 +02:00
Lluis Sanchez 6b6ce9bd43 [Web Services] Fix regression caused by previous commit
Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
2011-05-06 18:45:30 +02:00
Veerapuram Varadhan fbe4e20182 [ado.net]bugfix:688773 - Assign default value to columns that does not
exist in the row that is being imported.
2011-05-06 00:06:23 +05:30
Veerapuram Varadhan d753eb1861 [ado.net]bugfix:681916 - Based on patch by Scott <[email protected]>
- Handle null values for parameter types varbinary(max) and/or image
2011-05-06 00:05:31 +05:30
Veerapuram Varadhan aac2016aa9 [mono]bugfix:663287 - Validate the type of value against underlyingtype
instead of nullableType.
2011-05-06 00:03:42 +05:30
Veerapuram Varadhan 2ec26f2e77 [ado.net][OracleClient] - Fixes calling size_t native parameters by
passing UIntPtr reference types and hence, solves 32/64 bit and
little/big-endian issues.
2011-05-05 23:51:14 +05:30
Veerapuram Varadhan 9e48c8a2b0 [bugfix][ado.net]Fixes 663914 - Restore original column data for
unchanged columns during deserialization.
2011-05-05 23:41:39 +05:30
Marek Habersack f1ab82a7e8 [corlib] Do not cache disposed resource sets. 2011-05-04 23:33:11 +02:00
Marek Habersack c4a3ecad74 [asp.net] Do not retrieve script's URL in RegisterScriptReference if script.Path is set. 2011-05-04 23:33:04 +02:00
Martin Baulig 844d678cba Add socket timeouts to the soft debugger.
SDB now support setting a send/receive timeout on the client's side
of the communication socket.  To make this work, the server sends
a special 'keepalive' event when using receive timeouts.

There's a new method VirtualMachine.SetSocketTimeouts() to enable
this feature.
2011-05-03 13:53:37 +02:00
Rodrigo Kumpera d3c5cc1fe5 Add regression test for #691057 2011-05-03 02:58:48 -03:00
Rodrigo Kumpera 01cf5ded25 Fix a couple of issues on Mono.Simd.
* local-propagation.c (mono_local_deadce): Don't perform
	reverse copyprop on simd insert ops. The backend requires
	dreg and sreg1 to match.

	* mini-x86.c (mono_arch_output_basic_block): Fix insert_r8_slow
	for the X element.

	Fixes a few bugs due to #691057
2011-05-03 01:23:20 -03:00
Zoltan Varga 399a6c779e Implement BSTR icalls even when COM is disabled. Fixes #690255. 2011-05-03 01:03:43 +02:00
Gonzalo Paniagua Javier 516cbf29c4 Don't set NoDelay twice. 2011-05-02 12:12:09 +02:00
Jb Evain 63fc3530b9 Fix non net_4_0 profiles build 2011-05-02 11:58:52 +02:00
Jb Evain 0ae09ac40d Properly check the maxstacksize asked for the Thread 2011-05-02 11:46:09 +02:00
Zoltan Varga c9cb0a918b Fix support for parameters with generic constraints in Type.IsAssignableFrom (). Fixes #691119. 2011-05-02 09:41:18 +02:00
Geoff Norton c538edd457 Avoid doubly declaring some types in the 2.1 profile for mobile 2011-04-30 11:48:59 -04:00
Gonzalo Paniagua Javier 718f02e0d3 Fix prefix selection
We were picking the wrong prefix when the URL matched the path.
	Fixes bug #688860.
2011-04-30 11:34:54 +02:00
Gonzalo Paniagua Javier f3560b3f22 Support FTP + RETR + proxy
Fixes bug #690887.
2011-04-30 11:08:55 +02:00
Gonzalo Paniagua Javier 8b18364cfb Missed this in the backport 2011-04-30 06:59:20 +02:00
Geoff Norton e7ff9bcf14 Remove debug spew 2011-04-29 17:52:33 -04:00
Geoff Norton 546a888f91 [boehm] Avoid a ENOMEM when allocating across an unallocated page
A very rare allocation pattern could cause the boehm free list to call
the GC_unmap_gap function, which actually calls down into munmap().
Darwins virtual memory manager will return a KERN_INVALID_ADDRESS
which is translated into a ENOMEM, if mprotect attempts to change
the protection of a range which includes an unallocated page.
We address this by just mmap() back to ANON, instead of actually
unallocating the page.
2011-04-29 16:23:15 -04:00
Gonzalo Paniagua Javier b0c3795ac4 [webclient] Process uri.UserInfo when present
If there are no crendetials, the Uri might have them.
	Based on a patch by QuickJack.
	Fixes bug #688007.
2011-04-29 11:55:17 +02:00
Geoff Norton 19f4433ef2 Avoid a needless buffer copy that is susceptible to overflow 2011-04-28 23:05:15 -04:00
Zoltan Varga b09e63d792 Fix loading from volatile base addresses in the LLVM backend. Fixes #690020. 2011-04-28 23:46:42 +02:00
Zoltan Varga 5e04bc52bb Revert "Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533."
This reverts commit 046ff98055.

This seems to break smcs.exe.
2011-04-28 22:28:00 +02:00
Lluis Sanchez 2773f9f10a [Web.Services] Add support for optional parameters
Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
2011-04-28 18:34:16 +02:00
Atsushi Eno cf183438ee Looks like xs:any is allowed under certain condition in XsdDataContractImporter.
But I don't understand why :(
2011-04-28 23:41:43 +09:00
Atsushi Eno c18ad33d44 moonlight does not like XmlSchemaType but nasty code in KnownTypeCollection :( 2011-04-28 22:10:06 +09:00
Atsushi Eno 9956130fa2 ...and do return Type for all known xs:* types in XsdDataContractImporter. 2011-04-28 20:33:47 +09:00
Atsushi Eno 50ad936a80 Do not reject xsd:* types that are not listed in KnownTypeCollection.
e.g. xs:token.
2011-04-28 20:09:05 +09:00
Atsushi Eno acb4203da5 support <service>-less wsdls in svcutil. Look for portTypes instead. 2011-04-28 19:54:48 +09:00
Atsushi Eno a6e6fbbeb3 Extend supported XmlDateTimeSerialization formats. Fixed bug #690475. 2011-04-28 17:37:33 +09:00
Atsushi Eno 02e0ab3df8 XmlSerializer code generator was generating wrong char literal.
Fixed bug #673019.
2011-04-28 15:44:18 +09:00
Gonzalo Paniagua Javier a66df5bf91 [socket] More BeginConnect (IPAddress []) work
When trying multiple addresses, the second and sucessive calls to
	BeginConnect(IPAddress) will cause an error which we would have to
	ignore and then retry. Since this behavior is not documented, we just
	close the socket and open a new one for retries is there is already a
	pending connect attempt.
2011-04-28 00:18:35 -04:00
Gonzalo Paniagua Javier ef49022f97 [Socket] Improved ConnectAsync
ConnectAsync() now uses the improved BeginConnect.
2011-04-28 00:18:35 -04:00
Atsushi Eno 4d2ff35b88 Remove non-existent test source (it is only in master). 2011-04-28 12:45:13 +09:00
Atsushi Eno 1e08457302 Handle fault messages in duplex callback channel. 2011-04-27 20:59:18 +09:00
Atsushi Eno 59dd3fcfe8 Use FindCritera/ResolveCriteria Duration properties for DiscoveryEndpoint timeout. 2011-04-27 15:43:46 +09:00
Atsushi Eno 35a659b435 Log UDP messages (using System.ServiceModel internals via IVT). 2011-04-27 15:43:39 +09:00
Gonzalo Paniagua Javier 01fff28591 If there's a delayed exception, clear 'ares' 2011-04-26 23:44:12 -04:00
Gonzalo Paniagua Javier acad9c91d0 Worked on linux, failed on OSX 2011-04-26 22:05:49 -04:00
Marek Habersack ea73a5a1e4 [asp.net] CreateChildControls is internal only when compiling system.web tests 2011-04-26 21:14:35 +02:00
Jérémie Laval 6c5f273c3f Fail gracefully when CancellationToken has been created uninitialized by user.
Also add corresponding unit test.
2011-04-26 17:03:26 +02:00
Jérémie Laval 512ca45eb9 Add CancellationToken unit tests 2011-04-26 17:03:26 +02:00
Jérémie Laval 67c3b641c2 Honors correctly canceled ctor parameter of CancellationToken 2011-04-26 17:03:26 +02:00
Gonzalo Paniagua Javier bb61f41996 Reset the blocking flag as soon as possible. 2011-04-26 11:03:00 -04:00
Gonzalo Paniagua Javier 8dfa7d2c7e [socket] Fixed other BeginConnect overloads
The BeginConnect overload taking an IPAddress[] was not really
	asynchronous.
2011-04-26 11:03:00 -04:00
Zoltan Varga 046ff98055 Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533. 2011-04-26 13:26:54 +02:00
Atsushi Eno cde89bb093 Fix monodroid/monotouch build. 2011-04-26 19:39:10 +09:00
Gonzalo Paniagua Javier 9eb77b093b [Socket] Fix BeginConnect
Windows/Linux flagged the socket as writable even when connect() has
	not been called. On *BSD and OSX, this was not the case and we waited
	forever.

	Now, for blocking sockets, we make them blocking and call connect()
	before adding the socket to the wait pool.
2011-04-26 00:05:26 -04:00
Gonzalo Paniagua Javier 5e40958c3b In *AllLines use WriteLine instead of Write.
This fixes bug #689670.
2011-04-25 16:23:17 -04:00
Atsushi Eno 82b1e211f8 Log net.tcp transport messages too. 2011-04-25 18:31:01 +09:00
Atsushi Eno 3fd521bd7d Make our own simple log format actually diagnostics-compatible.
So MS ServiceTraceViewer.exe can open our log now.
2011-04-25 18:30:50 +09:00
Atsushi Eno cdc0fc4d45 Document MONO_WCF_TRACE environment variable. 2011-04-25 16:25:39 +09:00
Atsushi Eno 43c40b6f3d minor diagnostic log format brush up. 2011-04-25 16:15:08 +09:00
Atsushi Eno 2e5417f5bd Actual source directory changes after changing namespaces. 2011-04-25 15:57:59 +09:00
Atsushi Eno 247cef557f More nettcp namespace changes. 2011-04-25 15:57:49 +09:00
Atsushi Eno 0f328b26c0 Move NetTcp namespace to internal one. 2011-04-25 15:57:38 +09:00
Atsushi Eno 415027eedd Enable environment-controled output on non-moon profile too. Add error logging. 2011-04-25 15:38:39 +09:00
Miguel de Icaza 1223efd9ce Do not go beyond our string boundaries 2011-04-23 12:54:57 -04:00
Atsushi Eno 27e1844bb9 Log HTTP reply Message too. Make logging customizible on under the moon.
Logging is done only when requested by MOON_WCF_TRACE=[stdout|stderr]
environment variable.
2011-04-23 02:09:11 +09:00
Marek Habersack 054738b20f Fix compilation 2011-04-22 14:02:39 +02:00
Marek Habersack 58a60f9e5e [asp.net] Do nothing if null SessionStateStoreData is passed to SessionStateServerHandler.SetAndReleaseItemExclusive 2011-04-22 12:36:11 +02:00
Marek Habersack df413084ff [asp.net] Inform user about all exceptions thrown during HttpRuntime static initialization 2011-04-22 11:55:35 +02:00
Marek Habersack b029f4e97e [asp.net] Implemented composite scripts support in System.Web.Extensions 2011-04-22 11:55:15 +02:00
Zoltan Varga 4b98bcb536 Fix AOT support for isinst_with_cache wrappers. Fixes #687865. 2011-04-22 03:40:58 +02:00
Geoff Norton c597bb43ac We support hard breakpoints on arm, not sure why this is here at all 2011-04-21 15:00:42 -04:00
Atsushi Eno f66017dd16 Use XPathNavigator output in WCF diagnostics. Got sorta-valid message trace. 2011-04-21 21:12:48 +09:00
Atsushi Eno 0990c54b02 Fix wrapper elements. It should be <TraceData><DataItem>... 2011-04-21 21:09:48 +09:00
Atsushi Eno 1cf432ed50 XmlWriterTraceListener supports XPathNavigator as non-escaped xml output. 2011-04-21 20:56:09 +09:00
Marek Safar eb9c5951e6 [688891] Keep same TypeParameter ctor syntax 2011-04-21 10:11:11 +01:00
Marek Safar 6a1de942e0 [688891] Copy type parameters for base proxy method 2011-04-21 10:08:42 +01:00
Atsushi Eno b62fb2816f Use xmlns-ignoring XmlDocument derivation for config files. Fixed bug #641935. 2011-04-21 17:47:49 +09:00
Atsushi Eno d3a50832b1 RooArray types were rejected as unknown when it is at root. Fixed bug #688414. 2011-04-21 16:22:09 +09:00
Atsushi Eno d911500226 Get real fix for bug #687902. Revert request processor IDisposable.
and handle session shutdown when creating InstanceContext.
Also add note on DisposeInstance(), which got me stuck.
2011-04-20 19:15:15 +09:00
Atsushi Eno 657c31a31b Ongoing service channel closing fix and session management in ChannelDispatcher.
It is part of bugfix 687902.

To get the bug fixed, the new "using" sections in ChannelDispatcher.cs to
explicitly dispose channels. But this causes regression in PerSession-based
tests. So some new session management code is (likely) required as well.

It will also alter "mixed" MaxConcurrentCalls and MaxConcurrentSessions with
correct management code.
2011-04-20 16:57:58 +09:00
Miguel de Icaza 851c79f6e6 Prevent crash on scripts that do not contain the #! line 2011-04-19 22:52:39 -04:00
Zoltan Varga 3fedcf496b Allow storing managed pointers into 'native int' in the JIT, fsharp generates code without a conv.i. Fixes #688008. 2011-04-19 22:45:29 +02:00
Gonzalo Paniagua Javier 1562106ccd [HttpListener] Fix matching directories
/foo was not properly matched.
	Fixes bug #688353.
2011-04-19 13:56:39 -04:00
Marek Safar 90922a746d [687282] Fixes cross references of nested anonymous methods which don't start at parameters level block 2011-04-19 13:06:12 +01:00
Lluis Sanchez e54906aaf2 Fix ICollection.CopyTo in the Stack class 2011-04-19 13:51:55 +02:00
Gonzalo Paniagua Javier 6f9f05df58 [HttpWebRequest] Fix half-baked commit
Fixes bug #688100.
2011-04-18 10:57:21 -04:00
Marek Habersack ce3b0b7564 [asp.net] ScriptResourceHandler must correctly encode script literals. 2011-04-18 13:23:28 +02:00
Atsushi Eno a9777b31fc Empty XmlReader message caused failure on buffereed copy. 2011-04-18 17:22:21 +09:00
Zoltan Varga 7dcacbb5bf Fix Object.MemberwiseClone () on arrays. Fixes #688033. 2011-04-17 23:49:33 +02:00
Gonzalo Paniagua Javier 5f8f48145d [webclient] Only set the credentials when they are not null.
Setting the credentials to null makes FtpWebRequest throw.
	Fixes bug #688007.
2011-04-17 13:58:59 -04:00
Sebastien Pouliot b8052728ea backport pull request for 2.10.2 2011-04-17 10:07:12 -04:00
Marek Habersack 3f823404fc [asp.net] MinimizableAttributeTypeConverter only converts from strings.
It returns a boolean 'false' when the passed string matches (case-insensitively) 'false' or
is empty, returns 'true' otherwise.
All the other types (and a null value) cause it to throw the NotSupportedException.
2011-04-16 02:12:48 +02:00
Rolf Bjarne Kvinge e3658fe73e [corlib] Ensure Thread.ManagedThreadId is unique per thread.
This fixes bug #667329.

The problem was that ManagedThreadId was created from a per-appdomain
counter, but stored in a per-thread storage, so if two threads could
end up with the same ManagedThreadId if a second appdomain executed
on the second thread first.
2011-04-15 22:11:09 +02:00
Marek Habersack 3f43883b30 [asp.net] Fix for bug #685116. AJAX post-back which redirects the browser does not need a Page or ScriptManager instance 2011-04-15 21:57:20 +02:00
Atsushi Eno c9f2555f4a Prepare for HostNameComparisonMode support (i.e. incomplete).
This is for bugfix #687580.
2011-04-16 01:07:19 +09:00
Atsushi Eno 8fa55bb406 Return null for empty message in WebMessageFormatter. Useful eror messages. 2011-04-15 23:52:15 +09:00
Atsushi Eno ea78b00406 Some argument check in TextMessageEncoder. 2011-04-15 23:52:04 +09:00
Atsushi Eno fb2c69e852 Use correct MessageVersion instead of Default for empty response.
Part of bugfix #687580.
2011-04-15 21:32:05 +09:00
Atsushi Eno 26536ad29f Prefer immutable string return for ease of debugging in UriTemplate. 2011-04-15 20:04:30 +09:00
Atsushi Eno 24702d5e64 Fix regression for counter case to 6005f0a7.
http://localhost/x + X should not result in http://localhost/xX.
2011-04-15 16:45:34 +09:00
Atsushi Eno 79bf69008d Implement support for KnownTypeAttribute.MethodName. 2011-04-15 15:42:52 +09:00
Atsushi Eno 0d20226656 Flush XmlWriter and TextWriter so that incomplete changes are not lost. 2011-04-15 14:57:56 +09:00
Atsushi Eno e4f59e1fa0 One more step to enable WCF diagnostics in Logger, and add HttpReplyChannel log. 2011-04-15 14:48:11 +09:00
Gonzalo Paniagua Javier bf77046abc Clearing the queue messed up with the per-domain job count
Fixes bug #687399.
2011-04-14 15:25:59 -07:00
Marek Habersack 985f57d2b4 [asp.net] Fix for bug #685267. ClientScriptManager generates correct post-back event reference for cross-page post-backs. 2011-04-14 22:42:09 +02:00
Marek Habersack aca8c70648 [asp.net] Shorten code in WebConfigurationHost 2011-04-14 20:51:07 +02:00
Marek Habersack be8a6afd4a [asp.net] Fixed a thinko in one of the previous commits 2011-04-14 20:50:59 +02:00
Atsushi Eno b313b63718 Add ServiceKnownTypeAttributeTest. 2011-04-14 15:23:09 +09:00
Atsushi Eno 80238cef2f ServiceKnownTypeAttribute.MethodName was used way different to lookup method. 2011-04-14 14:58:03 +09:00
Martin Baulig 776a4cb2b5 Oooops, it's supposed to be 'if (!strcmp (...))' ! 2011-04-13 20:18:43 +02:00
Marek Habersack a96c5dd131 [asp.net] Make web.config path check test case-insensitive 2011-04-13 16:57:53 +02:00
Marek Habersack c79e051d35 [asp.net] A more effective way of looking for web.config 2011-04-13 16:57:46 +02:00
Marek Habersack 0adb5a6dbf [runtime,IO] Filesystem entries can only be sought for in directories, not files. 2011-04-13 16:57:40 +02:00
Atsushi Eno 64ba822460 Fix wrong TraceEventType values passed. 2011-04-13 02:23:18 +09:00
Martin Baulig db59c744af Ooops, also enable explicit nulls. 2011-04-12 07:02:07 +02:00
Zoltan Varga d0ecf17cec Avoid putting a seq point at the beginning of finally clauses, they already have one. Fixes #686269. 2011-04-11 23:18:31 +02:00
Zoltan Varga 86b0b2afed Revert "Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438."
This reverts commit c5c488ec9d.

This seems to break IronRuby.
2011-04-11 19:38:52 +02:00
Martin Baulig db9d1fffba Add "soft breakpoint" support for ARM.
There is some broken hardware like the HTC Desire HD where we can't
use any signals for single-stepping and breakpoints.

See http://baulig.blogspot.com/2011/04/limiting-page-faults-on-htc-desire-hd.html
for details.

To work around this, we read from a variable instead us using trigger
pages.
2011-04-11 17:48:47 +02:00
Zoltan Varga c5c488ec9d Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438. 2011-04-10 20:46:23 +02:00
Gonzalo Paniagua Javier 11cee69b5f [HttpWebRequest] Ignore Transfer-Encoding when there's no content.
If the transfer encoding was set to chunked, we tried to read even when
	the response might known to have no content. This led to timeouts.

	Fixes bug #686371.
2011-04-09 15:18:18 -04:00
Atsushi Eno 0dd62ba176 Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods. 2011-04-08 21:40:01 +09:00
Atsushi Eno 40f9aba00f Add XmlSerializerFormatAttribute support in mobile profiles.
Unlike moonlight, XmlSerializer is in the framework lib (sys.xml), so we don't
have to split them out to Sys.Xml.Serialization.dll.
2011-04-08 16:01:11 +09:00
Atsushi Eno 643148f131 Temporarily disable InternalsVisibleTo(Sys.Xml.Serialization). 2011-04-08 13:46:47 +09:00
Gonzalo Paniagua Javier 099d0f0e34 Remove printf 2011-04-07 21:32:44 -04:00
Miguel de Icaza 9187dbc0d9 Revert broken patch 34f18b68 that caused random bugs in assembly loading, but could crash the runtime as well 2011-04-07 21:15:53 -04:00
Miguel de Icaza a9c68584df Add test to prevent future problems, this fixes the random MacOSX crashes with assembly loading, but likely everywhere else as well 2011-04-07 21:15:53 -04:00
Zoltan Varga 50dadb263b Revert "Disable SMP on arm until #683409 is fixed."
This reverts commit 29550902ee.

This is now longer needed as #683409 is fixed.
2011-04-07 22:20:24 +02:00
Zoltan Varga 1106b9be5f Pass HAVE_ARMV6 to libgc on darwin too. 2011-04-07 22:19:32 +02:00
Zoltan Varga ec6e3150f8 Add a membar to libgc's UNLOCK () on arm. Fixes #683409. 2011-04-07 22:16:29 +02:00
Atsushi Eno 824336a958 Split XmlMessagesFormatter out. It is for use in Sys.Xml.Serialization.dll.
XmlMessagesFormatter will be used in Sys.Xml.Serialization.dll and this
type should not be excluded by !NET_2_1 or !MOONLIGHT. It is not doable
if this class is in BaseMessagesFormatter.cs.
2011-04-08 00:22:38 +09:00
Atsushi Eno 5a414980ea Add InternalsVisibleTo(Sys.Xml.Serialization.dll) to Sys.ServiceModel in 2.1. 2011-04-08 00:13:03 +09:00
Atsushi Eno 7215e2b879 Fix moonlight_raw build in Sys.Xml.Serialization.dll (NIE!) 2011-04-07 23:29:28 +09:00
Atsushi Eno 12d359a6c4 DataContractSerializerOperationBehavior is done too. Fix moonlight_raw build. 2011-04-07 22:02:42 +09:00
Atsushi Eno 182883c4ba Some XmlSerializerFormatAttribute and XmlSerializerOperationBehavior refactoring. 2011-04-07 19:20:59 +09:00
Atsushi Eno 1ed5a802a9 HttpRequestChannel should also return CookieContainer in NET_2_1 profile.
Fixed bug #683642.
2011-04-07 12:34:54 +09:00
Gonzalo Paniagua Javier b0a314db2c [HttpWebResponse] Close and Dispose are different beasts.
After calling Close () on response you are still allowed to access its
	properties. Calling Dispose() causes the usual exception to be thrown
	when accessing the properties.

	Fixes bug #685368.
2011-04-06 23:02:03 -04:00
Zoltan Varga 4234f30930 Disable SMP on arm until #683409 is fixed. 2011-04-07 01:30:37 +02:00
MrUnleaded 12de169c29 Fix that corrects a mishandling of UInt64's. 2011-04-06 18:45:36 -04:00
Atsushi Eno cafcafe8d7 Looks like .NET accepts non-integer numbers as int. Smells bogus though. 2011-04-06 22:03:58 +09:00
Atsushi Eno 9dd0c9aaa0 auto-detect UTF16-LE too. 2011-04-06 20:22:11 +09:00
Marek Habersack 8e5e7a293e [DynamicData] Use different web.config for 2.0 and 4.0 tests 2011-04-06 11:07:17 +02:00
Gonzalo Paniagua Javier e430abe428 [eglib] The last argument can be empty and quoted.
Fixes bug #669303.
2011-04-06 02:04:59 -04:00
Atsushi Eno 8ed33a951d Fix build, looks like ArrayList is internally available in moon. 2011-04-05 23:07:34 +09:00
Jérémie Laval ef74fcb6bb Protect entering ReaderWriterLockSlim upgradable mode against async exceptions. 2011-04-05 15:25:34 +02:00
Marek Habersack 98cf1c90d4 [asp.net] Fix for bug #684803. XmlSiteMapProvider must take its root node into account when matching an URL. 2011-04-05 14:36:46 +02:00
Atsushi Eno aacbe2f237 Collection support in JSON serializer was actually for any IEnumerable. 2011-04-05 20:57:06 +09:00
Atsushi Eno 7ac57f726f Revert PushbackReader changes (was unnecessary and actually bogus). 2011-04-05 20:27:28 +09:00
Atsushi Eno 89fee7d373 null value also outputs "type='null' in WCF JSON writer. 2011-04-05 19:49:18 +09:00
Atsushi Eno 3d56703e92 Auto-detect text encoding from input stream for JsonReader. Fix DBCS pushback. 2011-04-05 18:24:02 +09:00
Atsushi Eno 53523879e8 IDictionary`2 serialization support was missing in DataContractJsonSerializer.
Fixed bug #685042.
2011-04-05 13:21:44 +09:00
Marek Safar 7290370f37 [666033] Fixes Mono.WebBrowser versioning
[backported by shana]
2011-04-04 18:46:08 +01:00
Jb Evain 5923bba0bf Fix net_2_0 build 2011-04-04 16:02:27 +02:00
Atsushi Eno c8a824af78 unlike told by docs.mono-android.net Trace does not exist in mobile profile. 2011-04-04 22:56:47 +09:00
Atsushi Eno bb3e8d2323 Add WCF diagnostics implementation (not working yet). 2011-04-04 20:58:44 +09:00
Kenneth Skovhede 2c74b21642 Fix the handling of the '%f' descriptor in DataConverter.Unpack (). Fixes #683712. 2011-04-03 06:33:52 +02:00
Marek Habersack 3e7bd993d8 [asp.net] 2.0 standalone tests must have the MONO_TESTS_IN_PROGRESS variable exported in the environment 2011-04-03 00:04:33 +02:00
Tomasz Kubacki ffbdeac062 [asp.net] HttpApplication.InitOnce must ensure that HttpApplication.Context does not return null.
HttpApplication.Context != null is assumed by System.Web.WebPages.WebPagesHttpModule Init method
2011-04-03 00:04:27 +02:00
Atsushi Eno e72666919a fix wrong attempt to add restricted headers in HttpRequestChannel. 2011-04-02 11:30:09 +09:00
Marek Habersack e57e16fee4 [asp.net] Store new heap size when shrinking it. Thanks to Rodrigo Kumpera for noticing it!
This should fix the IndexOutOfRangeError which occur after heap exceeds 8192 elements and is then
shrunk below that value.
2011-04-02 02:38:36 +02:00
Rodrigo Kumpera af23f3ee26 Fix thread restart under mach.
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	On mach we used to simply call thread_suspend/thread_resume
	without updating the thread context, which would result in
	sgen getting hang.
2011-04-01 19:10:08 -03:00
Rodrigo Kumpera 1e137b7fcb Extract suspend code from mono_sgen_thread_handshake.
sgen-os-mach.c (mono_sgen_thread_handshake): Extract
	suspend code into new function mono_sgen_suspend_thread.
2011-04-01 19:01:58 -03:00
Rodrigo Kumpera 5340b41cd1 Use constant stack space for STW under darwin.
* sgen-gc.h: Since darwin doesn't use signals to
	stop the target threads, we must reserve space for
	register in SgenThreadInfo.

	* sgen-os-mach.c (mono_sgen_thread_handshake): Don't
	alloca inside the loop. Make sure each thread registers
	are copied to the right place.
2011-04-01 18:38:17 -03:00
Rodrigo Kumpera 11c5664fb4 Leverage SgenThreadInfo::mach_port.
* mach-support-*.c (mono_mach_arch_get_tls_value_from_thread):
	This function now receives pthread_t instead of mach_port
	as argument, so avoiding an expensive call to
	pthread_from_mach_thread_np.

	* sgen-os-mach.c (mono_sgen_thread_handshake): Loop over
	the registered threads insted of asking the kernel to enumerate
	them. Avoid calling pthread_from_mach_thread_np which takes
	a lock and is O(n) on the number of threads.
2011-04-01 18:18:02 -03:00
Rodrigo Kumpera 59d034e8a7 Store the mach port on SgenThreadInfo 2011-04-01 17:24:09 -03:00
Rodrigo Kumpera b178109c1e Fix win32 file name canonicalization.
* mono-path.c (mono_path_canonicalize): Properly canonicalize
	non UNC paths with an extra backslash. Eg:
	c:\foo\\bar was been canonicalized to c:\\foo\bar.

	This was breaking assembly loading in some rare cases.
2011-04-01 17:00:05 -03:00
Atsushi Eno a2a78ecc5d A bit less !NET_2_1 and !MOONLIGHT in Sys.ServiceModel.Web. 2011-04-02 04:11:09 +09:00
Atsushi Eno c540e335c3 Less !NET_2_1/!MOONLIGHT to improve SL4 WCF compatibility. 2011-04-01 20:45:47 +09:00
Marek Habersack b7aaf47762 [asp.net,routing] Fix for bug #682869. RouteCollection.MapPageRoute is a 4.0 thing 2011-04-01 13:41:04 +02:00
Marek Habersack b80dca6c9b [wcf] Unbreak the build (Assembly.IsDynamic is a 4.0 thing) 2011-04-01 13:34:51 +02:00
Marek Habersack 3dd79d0752 [mvc3] Part of fix for bug #683339. Override more NameValueCollection methods.
Without those overrides, merging collections in System.Web.HttpParamsCollection fails.
2011-04-01 11:55:34 +02:00
Marek Habersack a8cb34edbf [system] Part of fix for bug #683339. NameValueCollection.Add (NameValueCollection) must call the Get* overloads instead of BaseGet*
Otherwise classes wrapping NameValueCollection will not be able to intercept the Add call which leads to errors in MVC3's
FormCollection.
2011-04-01 11:55:28 +02:00
Alan McGovern 812ee3308e [log profiler] Keep correct stats about gchandles
We were not keeping track of allocated/destroyed/alive gchandles in the
log profiler. It only ever reported the number of handles alive at the
end of the profiling run and that was misreported as the output claimed
this was the number of gchandles created.
2011-04-01 10:34:12 +01:00
Atsushi Eno 53c2bea069 Implement ConfigurationName support for ChannelFactory.
It is required for MoonlightDrtViewer bugfixing.
2011-04-01 18:25:10 +09:00
Peter Gerbrandt e56d2c760b Fix contract description for contracts with deep inheritance hierarchy. 2011-04-01 14:21:00 +09:00
Louis Salin 3e9df709c8 TraceData and TraceEvent methods must pass a new instance of TraceEventCache 2011-03-31 09:09:41 -04:00
Louis Salin 1bd073b713 implement getter and setter for HostContext property 2011-03-31 09:09:40 -04:00
Gonzalo Paniagua Javier e60acb3ab0 Remove printf's 2011-03-30 22:27:25 -04:00
Gonzalo Paniagua Javier 6c94fea797 Revert "Fix a typo in Directory.GetFiles ()"
This reverts commit 5bbd6c23f8.
2011-03-30 21:04:35 -04:00
Zoltan Varga a4ae5ad77a Add some checks to the ActivationServices:AllocateUninitializedClassInstance () icall to avoid instantiating interfaces/abstract types. 2011-03-30 16:05:32 +02:00
Martin a8ef691b71 [asp.net] Fix for bug #658184. AuthorizationRule restores its Action when unmerging. 2011-03-30 12:21:54 +02:00
Marek Habersack 047b8446d4 [DataAnnotations] Implemented the Validator and CustomValidationAttribute 4.0 classes 2011-03-30 10:19:44 +02:00
Rodrigo Kumpera 66b152ffe0 Cast p to char* since the offset is in byte units. 2011-03-30 00:44:32 -03:00
Zoltan Varga 7f3f7f3d28 Fix the previous change. 2011-03-30 05:26:42 +02:00
Zoltan Varga fcd76072e0 Call SleepEx in a loop in the Thread.Sleep () icall, to avoid a race when the sleep is interrupted. Fixes #683519. 2011-03-30 05:07:47 +02:00
Vincent Povirk b4e8b39a6e System.Windows.Forms.Mime: Use freedesktop.org only on Unix platforms. 2011-03-29 21:10:51 -04:00
Gonzalo Paniagua Javier e22f04bbdc Reset BytesTransferred on every reuse. 2011-03-29 13:46:38 -04:00
Ankit Jain ebab6e9fad [xbuild] Allow skipping target framework moniker lookup.
* tools/xbuild/xbuild/4.0/Microsoft.Common.targets
(GetReferenceAssemblyPaths): Don't look up framework directories
for $(TargetFrameworkMoniker) is $(_TargetFrameworkDirectories) is
already defined. This can be used to override moniker lookups.
2011-03-29 18:48:35 +05:30
Gonzalo Paniagua Javier fe220bb14f Fix vasprintf() for empty strings.
James Bellinger entered bug #682963 and he ended up debugging it and
	providing the solution.
2011-03-28 23:25:18 -04:00
Andrew Jorgensen 2af17e6d19 mono-sgen-gdb.py should be installed conditionally 2011-03-28 16:37:38 -06:00
Gonzalo Paniagua Javier 5bbd6c23f8 Fix a typo in Directory.GetFiles ()
The mask never matched the attributes and all files were discarded.
	This fixes bug #683203.
2011-03-28 17:48:41 -04:00
Andrew Jorgensen 320abe5356 Bump to 2.10.2 2011-03-28 12:27:26 -06:00
Zoltan Varga cee9574eec Remove some unused fields from MonoDynamicGenericClass. 2011-03-28 15:01:24 +02:00
Atsushi Eno 6cc6d1f172 Cosmetic corcompare-based updates in Sys.SM.Web. 2011-03-28 21:18:17 +09:00
Atsushi Eno fd0bfb7e2e Looks like WCF serializer supports XmlNode, so we do as well.
for details: http://msdn.microsoft.com/en-us/library/aa347876.aspx

Fixed bug #682957.
2011-03-28 17:11:30 +09:00
Zoltan Varga 8f8e0a9b6e Fix a case where class->instance_size was not set for dynamic classes. 2011-03-28 08:25:01 +02:00
Atsushi Eno 71f131be40 null JSON type must be handled in JsonWriter. 2011-03-26 21:28:06 +09:00
Atsushi Eno c96c5db231 Do not always assume ascii == 1 byte in JsonWriter. Fix utf-16 usage. 2011-03-26 21:01:37 +09:00
Atsushi Eno 4e0819daab XStreamingElement should be covered in WriteTo(). It's not derived from XNode. 2011-03-26 19:27:14 +09:00
Atsushi Eno 07ddd5f698 Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
2011-03-26 19:15:42 +09:00
Marek Habersack 9ec474d427 [asp.net] HtmlForum.Name rendering updates + test updates 2011-03-25 22:49:51 +01:00
Marek Habersack 0810ccda41 [asp.net] Fix for bug #681553. Look for direct child controls before calling up on the NamingContainer 2011-03-25 14:22:52 +01:00
Rodrigo Kumpera f7a4dbc112 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.
2011-03-24 23:21:46 -04:00
Gonzalo Paniagua Javier a247e53faa Avoid 'comparison always true...' 2011-03-24 23:21:10 -04:00
Gonzalo Paniagua Javier c86ebb4da5 Merge branch 'threadpool-2-10' into mono-2-10 2011-03-24 23:00:15 -04:00
Marek Habersack b225c4736c [asp.net] Fix for bug #681164. Page.InitOutputCache ignores calls with duration <= 0
It is ok to ignore such calls for two reasons - the cache with duration <= 0 will not
be effective anyway and the @OutputCache directive throws an exception for duration <= 0
2011-03-24 23:35:18 +01:00
Atsushi Eno 992872bb5d Fix serialization test build that depended on compiler contravariance bug. 2011-03-24 18:05:16 +09:00
Gonzalo Paniagua Javier a4d5c71207 .gitignore 2011-03-23 17:09:08 -04:00
Gonzalo Paniagua Javier 958ce2ba14 [windows] Avoid creating a thread in init 2011-03-23 17:08:52 -04:00
Gonzalo Paniagua Javier 82e0de5779 [windows] Make the connect hack work again. 2011-03-23 17:08:43 -04:00
Gonzalo Paniagua Javier 6e20527322 Revert "Replace old connect hack with _pipe on windows."
This reverts commit 1691837400.
2011-03-23 17:08:36 -04:00
Gonzalo Paniagua Javier 9c4c7d85e0 Revert "Remove unneeded function and use same code for win/lin"
This reverts commit 59c30ca79c.
2011-03-23 17:08:27 -04:00
Gonzalo Paniagua Javier c52ce4b572 Remove unneeded function and use same code for win/lin 2011-03-23 17:08:04 -04:00
Gonzalo Paniagua Javier 5b9892f071 Replace old connect hack with _pipe on windows. 2011-03-23 17:05:38 -04:00
Gonzalo Paniagua Javier 60f34bbaed --version shows kqueue now. 2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier ff39c58bac [threadpool] Don't start all the IO threads on first request.
The IO threadpool behaves as the regular one now: threads are created
	on demand up to the default and then they are throttled based on load
	unless Set(Min|Max)Threads is used.

	Fix the stack size for threadpool threads when Set(Min|Max)threads is
	used.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier 249e6665eb Some changes to the threadpool
-Reduce stack size for IO threads.
	-Create threads on demand up to min_threads, then throttle.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier 3cd7aaf9c8 [threadpool] Add support for kqueue asynch. IO. 2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier 40d02e9a1d [threadpool] Split the socket code in separate files. 2011-03-23 16:57:14 -04:00
Miguel de Icaza 725ac8d811 Make this OSX specific instead 2011-03-23 10:12:20 -04:00
Marek Habersack b34102015d [runtime] Fix compilation 2011-03-23 10:12:16 -04:00
Miguel de Icaza b311360048 OSX, Win32: Implements support for DriveInfo
This implements support for DriveInfo for OSX and Windows.

On OSX we use statfs system call that provides the filesystem
type information that we need.   On Linux, we continue to fallback
to mtab parsing
2011-03-23 01:56:58 -04:00
Miguel de Icaza 20808baa2c Add OSX support to the io-layer: supports getting a list of mounted file systems, and OSX-specific file system types 2011-03-23 01:56:47 -04:00
Miguel de Icaza b78ad6ad48 Add Environment.IsMacOS for handling OSX specific bits in corlib 2011-03-23 01:56:39 -04:00
Marek Habersack b93091c617 [asp.net] Fix for bug #681421. Use VirtualPathProvider.CombineVirtualPaths
The method is used by the parsers to look up dependencies, sources, controls
and master pages.
2011-03-22 21:29:17 +01:00
Marek Habersack d6b8fed5be [asp.net] Use List <string> instead of ArrayList to keep assembly locations in TemplateParser 2011-03-22 21:29:11 +01:00
Marek Habersack f12d23c5cc [asp.net] Use List <string> instead of ArrayList to keep file dependencies 2011-03-22 21:29:04 +01:00
Jb Evain f7bbde7bb5 Fix output of local variable names in debugging symbols 2011-03-22 16:00:29 -04:00
Geoff Norton 0e15d77a17 Set SO_REUSEADDR on listening sockets 2011-03-22 15:52:08 -04:00
Gonzalo Paniagua Javier 4e01dad1f8 [HttpListener] request.Url.Original string matches MS now.
Fixes bug #681548.
2011-03-22 12:57:12 -04:00
Gonzalo Paniagua Javier 406d680f31 [HttpListener] Match exceptions from MS on cleanup.
When the listener is aborted or closed, we get different exceptions
	depending on whether there's a GetContext() call in progress or not.
2011-03-22 12:56:51 -04:00
Zoltan Varga 7bde20118b Implement OperatingSystem.ServicePack. Fixes #681552. 2011-03-22 17:16:28 +01:00
Gonzalo Paniagua Javier 3a7370aefc [threadpool] Avoid the infame assert in mono-wsq.
Fixes bug #677746.
2011-03-22 11:52:18 -04:00
Gonzalo Paniagua Javier 2087d7c1a1 [msvc] New mono.def 2011-03-22 11:22:21 -04:00
Gonzalo Paniagua Javier ed57d90570 [HttpListener] Fix keep-alive connections
We were removing the connection in the wrong place.
	Also unbind the context in other error situations like a read failure
	after the headers are in.
2011-03-22 11:22:21 -04:00
Gonzalo Paniagua Javier fc3f496d1b [windows] Update create-defs.pl
Library is now mono-2.0, exclude mono_gc_pthread_* from the output.
2011-03-22 11:22:21 -04:00
Atsushi Eno 39ece5f8c7 Remove unexpected CWL. 2011-03-22 15:35:36 +09:00
Gonzalo Paniagua Javier b5b8d4a42e [windows] Wrong LoadLibrary being called.
We were calling LoadLibraryA instead of the W version.
2011-03-21 23:27:48 -04:00
Gonzalo Paniagua Javier 792bd0b4e3 [windows] Get rid of a lot of warnings 2011-03-21 23:27:47 -04:00
Gonzalo Paniagua Javier e8e244f839 [windows] Avoid creating a thread in init. 2011-03-21 18:16:59 -04:00
Veerapuram Varadhan bb58f668b3 [bugfix][ado.net odbc]Fixes #676368 - make it thread safe to release
underlying statement handles and check for the validity of the same
before attempting to release them.  Fixes random crashes.
2011-03-22 01:08:22 +05:30
Zoltan Varga ecdf344983 Fix the length of 'break' on ppc. 2011-03-21 20:07:57 +01:00
Jérémie Laval 6623fc543d Revert fcbb5717c1 and implement it differently.
The commit had the good idea but since some values of the enumeration overlap it broke the correct behavior. Instead we now turn off the extra options and use the previous way to check.
2011-03-21 13:30:52 +01:00
Geoff Norton 1e38c9d065 Add some missing types to the mobile profile 2011-03-20 21:53:26 -04:00
Jb Evain 30719eac23 [linker] always preserve System.MonoCQItem 2011-03-20 20:27:29 +01:00
Miguel de Icaza be791133e9 Merged compile fix from master 2011-03-18 22:22:14 -04:00
Rafael Munitic ba41a4afc3 Must pass null to overloaded constructor instead of wrapper lambda (TaskCompletionSource can use overloaded constructors and it will pass null in function argument) 2011-03-18 18:22:24 -04:00
Rafael Munitic 7001015c8a Continuation options should be checked as flags 2011-03-18 18:20:12 -04:00
Rafael Munitic cb86a2cae2 If the function is null Wait will not get called and will not check if Future is in faulted state/raise the exception 2011-03-18 18:19:42 -04:00
Koushik Dutta 2023fd51cf Fix bug where if a task is Start-ed with a specific scheduler,
that scheduler is ignored if it is in a thread owned by another
scheduler. Tasks should not be locked to the scheduler that
owns the calling thread.

Fix bug where TryExecuteTask does not actually try to execute
the task. Instead, TryExecuteTaskInline is called, which is
abstract. The TpScheduler implementation, the default, then
calls the internal method Task.Execute which then actually
executes the task. The problem with this is that only 3rd
party schedulers, can't actually execute a task, thus making
extending TaskScheduler impossible. (Unless they use some
serious Mono specific reflection hacks as I am now.)
2011-03-18 17:59:52 -04:00
Mark Sciabica ee0c82f938 Fix exception handling on windows x64. 2011-03-18 18:00:34 +01:00
Atsushi Eno f66c15fa4c XamlType lookup from xml name failed when [XmlnsDefinition] is involved. 2011-03-18 15:59:30 +09:00
Gonzalo Paniagua Javier 870a168078 Fix the host name returned in GetHostEntry.
GetHostEntry() was setting the HostName to the last IP address returned
	for the requested host name.
2011-03-18 01:27:12 -04:00
Zoltan Varga f1e5ff5830 Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586. 2011-03-17 20:08:04 +01:00
Rodrigo Kumpera ec56b2399e Revert "[io-layer] Handle process waits when SHM is disabled."
This reverts commit 2bb69090d7.
2011-03-17 18:05:30 +01:00
Rodrigo Kumpera 98567347b0 Revert "[io-layer] Make my previous patch signal safe."
This reverts commit c183437b77.
2011-03-17 18:05:16 +01:00
Gonzalo Paniagua Javier d1ef9e9bc0 [asp.net] Return the correct Mime type for 304. 2011-03-17 12:50:08 -04:00
Marek Habersack 1d15cb6eab [asp.net] Test for bug #655474 2011-03-17 16:37:49 +01:00
Marek Habersack 2f6c884c39 [asp.net] Fix for bug #655474. Don't assume an Uri being serialized is an absolute one 2011-03-17 16:20:23 +01:00
Marek Habersack 3007742461 [asp.net] Test compilation fix for System.Web.Extensions 2011-03-17 16:20:06 +01:00
Marek Habersack dd02160e29 Removed debug noise 2011-03-17 15:41:33 +01:00
Marek Habersack 04ceb5cec2 [asp.net] Fix for bug #678473. Do not map paths of absolute file paths when passed to HttpRequest.WriteFile 2011-03-17 15:36:46 +01:00
Marek Habersack 4c251cb528 [asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting works) 2011-03-17 15:12:46 +01:00
Atsushi Eno f29c6b4014 Fix build; remove extra !NET_2_1. 2011-03-17 21:15:50 +09:00
Atsushi Eno 5d3bd4296d net.tcp Sized message with non-binarysession encoding should work now.
(Untested checkin.)
2011-03-17 20:05:43 +09:00
Atsushi Eno 7b4e9fe3b3 Support encoding record other than binary session in TCP channel frame reader. 2011-03-17 19:29:56 +09:00
Gonzalo Paniagua Javier e127fbdbc8 [Threadpool] Handle multiple calls to cleanup
Don't fail if mono_thread_pool_cleanup() is called more than once.
	Fixes bug #678662.
2011-03-17 02:00:10 -04:00
Marek Habersack da38ea1a3c [asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary using absolute paths. 2011-03-17 01:53:37 +01:00
Zoltan Varga 80b18e5e78 Fix the title of the Mono.Debugger.Soft assembly monodoc. 2011-03-17 01:28:04 +01:00
Marek Habersack b08fcbf349 [asp.net] Fixes bug #676008. HtmlForm 'name' attribute rendering fixes.
The 'name' attribute is rendered using the static ID of 'aspnetForm' if
the form is in a naming container other than the Page control. Inside Page,
the form's ID is rendered. The attribute is output in .NET 4.0 only if control
rendering compatibility is less than 4.0
2011-03-17 00:56:34 +01:00
Gonzalo Paniagua Javier 4448207b46 [io-layer] Don't use Get/SetLastError after wapi shutdown.
handle_cleanup() is called at exit and might try to clean things up
	twice, causes a WSANOTUNITIALISED and then a segmentation fault trying
	to use a pthread key that has already been freed.
2011-03-16 16:12:01 -04:00
Gonzalo Paniagua Javier c183437b77 [io-layer] Make my previous patch signal safe. 2011-03-16 13:45:16 -04:00
Marek Habersack 0bc62c64f2 [asp.net] Fix for bug #668696. Handle recursive locks gracefully. 2011-03-16 16:19:05 +01:00
Zoltan Varga f9f20656d9 Fix support for generic virtual thunks in full-aot. 2011-03-16 14:44:38 +01:00
Zoltan Varga 1cf96c874c Add a cache for virtual generic thunks to avoid freeing those created by AOT. 2011-03-16 14:40:41 +01:00
Atsushi Eno 2e938cedc3 Enable behaviors in mobile profiles for WebHttpBinding. 2011-03-16 20:54:57 +09:00
Atsushi Eno 8aae8a860c Enable more behavior interface member in NET_2_1. 2011-03-16 20:52:50 +09:00
Atsushi Eno 72c9964603 Enable more behaviors use in NET_2_1 land, toward WebHttpBinding. 2011-03-16 20:43:24 +09:00
Atsushi Eno 045c255762 Implement more encodings than binary frame with dictionary, in TCP manager.
(not known to not regress in nunit tests..)
2011-03-16 20:34:05 +09:00
Atsushi Eno 441e34087e Fix MessageID element name in discovery contracts. 2011-03-16 20:31:37 +09:00
Jérémie Laval b754115f2b Don't throw an exception when task array is empty in WaitAll and throw in case a null element is encountered in it.
Fix for #679183
2011-03-16 09:34:38 +01:00
Jérémie Laval 94398a1154 Correctly implement enumerating CyclicDequeue.
Fix #679174
2011-03-16 09:33:29 +01:00
Atsushi Eno cf3968f176 Add endpoint behavior support in NET_2_1, which involved not a few additions. 2011-03-16 17:22:25 +09:00
Gonzalo Paniagua Javier 6101dfa1e7 Fix g_get_charset for windows.
Patch by Horst Kakuschke that fixes bug #660412.
2011-03-16 02:00:39 -04:00
Gonzalo Paniagua Javier 2bb69090d7 [io-layer] Handle process waits when SHM is disabled.
When SHM is disabled, handle SIGCHLD and either fill the info for the
	process handle or just wait for the process to avoid zombies.
	Fixes bug #668867.
2011-03-16 01:51:55 -04:00
Jason Cohen 32c89f8e51 [asp.net] Fix for bug #678705. Menu list rendered properly closes the list now. 2011-03-16 02:31:34 +01:00
Bassam Tabbara 733baa249e [asp.net] Fix for bug #667513. Implement support for PathInfo in Route.GetRouteData 2011-03-16 01:11:58 +01:00
Jb Evain 1fc9d8bd0b Handle conversion to System.Enum 2011-03-15 22:20:00 +01:00
Gonzalo Paniagua Javier c596b87264 [Semaphore] Remove warnings 2011-03-15 16:29:02 -04:00
Veerapuram Varadhan 51ede8ef25 [bugfix]672113 - Make a copy of constraint columns array 2011-03-15 20:24:10 +05:30
Atsushi Eno 92d8d69c21 avoid NRE on non-binary encoding use in TcpTransport. 2011-03-15 21:07:25 +09:00
Gonzalo Paniagua Javier 7ccc860767 Appdomain refs can be NULL in pop_refs
This fixes a bunch of test I broke with my previoius commit.
2011-03-14 22:51:21 -04:00
Kornél Pál a19eee8543 [asp.net] Fix for bug #650695. Implements the System.Web.{HttpNotFoundHandler,HttpNotImplementedHandler} classes. 2011-03-14 23:47:18 +01:00
Zoltan Varga f00f059724 Avoid calling class cctors during JITting when the same class needs initialization more than once during a method. Fixes #679467. 2011-03-14 23:09:33 +01:00
Gonzalo Paniagua Javier db74186f65 [HttpListener] Avoid contention
-Lock-free reads from registered listeners.
	-Don't register the context until *all* the setup steps are done.
2011-03-14 18:00:11 -04:00
Lucas Meijer d6b8f09a9b Implmement a private BinaryFormatter.DefaultSurrogateSelector, which enables embedders who want to make a sandbox, to specify a default surrogate selector, which is required to get System.Serialization be able to operate within a CoreCLR environment. 2011-03-14 17:34:20 -04:00
Geoff Norton be077e583a Fix the mobile build 2011-03-14 16:11:24 -04:00
Geoff Norton 0a8951258f Fix the mobile build 2011-03-14 15:43:29 -04:00
Mark Probst adaeb6075b Merge branch 'sgen-disable-gc' into mono-2-10 2011-03-14 19:25:31 +01:00
Gonzalo Paniagua Javier 6c25b86257 Add new ignore file. 2011-03-14 14:09:17 -04:00
Gonzalo Paniagua Javier 1d602e9364 [threads] appdomain_refs push/pop speedup
Replace the GSList with an array to avoid malloc/free on every push/pop
	call.
2011-03-14 14:03:22 -04:00
Gonzalo Paniagua Javier a8985dc3ec Cache NewLine per AppDomain. 2011-03-14 14:02:00 -04:00
Gonzalo Paniagua Javier 1756d9ea31 [threadpool] Added dynamic concurrent queue implementation
Replace the big lock around the list+array used to queue work items
	with a dynamic concurrent queue to reduce contention.
2011-03-14 14:02:00 -04:00
Atsushi Eno 63e2c4a403 Enable DTD attdecl processing in mobile profile. 2011-03-15 00:46:23 +09:00
Peter Gerbrandt 35c7e0b062 Apply DataContractSerializerOperationBehavior. 2011-03-14 12:18:46 +09:00
Ankit Jain e49c454e06 [xbuild] Microsoft.Common.targets - import Before/After targets files.
With this, Microsoft.Common.targets will import
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*
at the beginning of the file and
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*
at the end of the file.

So, this would import all files from (eg.):
$prefix/lib/mono/xbuild/4.0/Microsoft.Common.targets/ImportBefore/

This can be disabled by setting the bool properties -
$(ImportByWildcardBeforeMicrosoftCommonTargets) and
$(ImportByWildcardAfterMicrosoftCommonTargets).
2011-03-12 02:14:20 +05:30
Ankit Jain 1b676d2766 [xbuild] Throw ArgumentNullException if target name is null 2011-03-12 02:14:18 +05:30
Ankit Jain a0e8d07f2b [xbuild] Emit list of projects in the .sln.proj
Emit list of projects in the solution as @(ProjectReference) items
in the generated .sln.proj file. This would be useful for extending
solution builds.
2011-03-12 02:14:17 +05:30
Ankit Jain 9aee6ad25d [xbuild] Don't report Imports ignored because of false conditions. 2011-03-12 02:14:15 +05:30
Ankit Jain f00c5a545b [xbuild] xbuild/Main.cs - remove unnecessary catch/throw. 2011-03-12 02:14:13 +05:30
Ankit Jain 7d67acee8b [xbuild] Set ProjectFile and TargetName metadata on target outputs.
Set "MSBuildProjectFile" and "MSBuildTargetName" metadata on target outputs.
2011-03-12 02:14:12 +05:30
Ankit Jain 30cf8768c4 [xbuild] Handle unknown exceptions.
Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
2011-03-12 02:14:10 +05:30
Ankit Jain 64c827f318 [xbuild] Function names are case insensitive. 2011-03-12 02:14:08 +05:30
Ankit Jain f13dcb35bf [xbuild] Evaluate Import with MSBuildThisFile* properties set. 2011-03-12 02:14:07 +05:30
Ankit Jain 85f294ee2f [xbuild] Fix test on windows.
AssignTargetPathTest.TestLink : Fix test on windows
2011-03-12 02:14:05 +05:30
Ankit Jain 0e091a62fa [xbuild] Clean up test logs.
Remove unnecessary debug spew for tests that pass.
2011-03-12 02:14:03 +05:30
Gonzalo Paniagua Javier 42e4086945 Add to .gitignore 2011-03-11 02:03:46 -05:00
Gonzalo Paniagua Javier 7590b8bb30 [HttpListener] Paranoid cleanup 2011-03-11 02:00:33 -05:00
Gonzalo Paniagua Javier 455746a0ce Test for both Set-Cookie and Set-Cookie2 2011-03-11 01:59:28 -05:00
Gonzalo Paniagua Javier 371bc51b1c [HttpWebRequest] Only uppercase known methods 2011-03-11 01:59:20 -05:00
Gonzalo Paniagua Javier badc22bbae [Socket] Remove more auto-delegates 2011-03-11 01:59:11 -05:00
Gonzalo Paniagua Javier 2d7a5669d2 [Timer] Use static CB for invoking timer callbacks. 2011-03-11 01:59:05 -05:00
Gonzalo Paniagua Javier 89209acd58 [Socket] Minimize allocations of delegates 2011-03-11 01:58:55 -05:00
Gonzalo Paniagua Javier 9a4bd9308e [HttpListener] Avoid blocking in FlushInput 2011-03-11 01:58:40 -05:00
Gonzalo Paniagua Javier 3527ec8621 [HttpListener] Plug leak. 2011-03-11 01:47:00 -05:00
Gonzalo Paniagua Javier e812234121 Support NLS when opening assemblies on windows.
Patch by Horst Kakuschke that fixes bug #673793.
2011-03-10 22:16:25 -05:00
Geoff Norton b8397a6eeb Fix ARCH_STORE_REGS on arm 2011-03-10 16:28:22 -05:00
Gonzalo Paniagua Javier be0b6c8933 [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.
2011-03-10 13:02:58 -05:00
Duane Wandless cbd4fef05a GetApplicableRule returns NULL in TimeZoneInfo.cs yet the code does not always handle a NULL return value.
This change fixes this issue and allows timezones like China Standard Time to work.
2011-03-10 22:12:39 +08:00
Rodrigo Kumpera 4f2774fa80 mono_gc_alloc_mature must check if the object needs to be registered for finalization 2011-03-10 13:13:14 +01:00
Lucas Meijer cf967de406 backport of ee5a8cf9d09d525741e94b380bba411c6915026a, still under the mit x11 license. 2011-03-10 12:15:24 +01:00
Gonzalo Paniagua Javier 5167cc3dae [HttpListener] Memory use reductions 2011-03-10 00:45:22 -05:00
Atsushi Eno 12ce3d1370 In some collection case, xsi:type is explicitly written. Try to copy that behavior. 2011-03-10 14:35:23 +09:00
Gonzalo Paniagua Javier fa5e96cdf7 [HttpWebRequest] Support 4.0 Host property. 2011-03-09 22:34:23 -05:00
Zoltan Varga 18eb35983b Use mono_field_get_type () in one place to fix a crash. Fixes #678269. 2011-03-10 01:11:10 +01:00
Zoltan Varga b80343fd5b Mark threads created when calling from native code into the runtime as background threads. Fixes #678164. 2011-03-10 01:02:10 +01:00
Levi Bard 34f18b6876 [Fix] Make path building on windows behave the same as stock mono+glib.
* src/gpath.c: Make path building on windows behave the same as stock mono+glib.

License: MIT/X11
2011-03-09 16:38:34 -05:00
Gonzalo Paniagua Javier c690aa95bc IO threads have their own name 2011-03-09 16:11:54 -05:00
Gonzalo Paniagua Javier 9f33f58799 Some changes to the threadpool
-Reduce stack size for IO threads.
	-Create threads on demand up to min_threads, then throttle.
2011-03-09 16:08:46 -05:00
Andrew Jorgensen e30eeacd70 Fix up devel packages in spec file 2011-03-09 11:19:55 -07:00
Atsushi Eno 3e9fccb813 Some attempts to make KnownTypeCollection parallel access safe. 2011-03-09 22:51:18 +09:00
Atsushi Eno e25503422b Remove old windows threading workaround. 2011-03-09 21:20:38 +09:00
Marek Safar 69e64f8d72 [677550] Fixes fixed buffer regressions 2011-03-09 08:30:21 +00:00
Atsushi Eno 1585b98d92 Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580. 2011-03-09 15:57:21 +09:00
Peter Gerbrandt c60c84c55d Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 14:00:22 +09:00
Atsushi Eno 1eae886946 Temporarily disable InternalsVisibleTo(System.ServiceModel).
until mcs (in 2-10 or later release) fixes the issue.
2011-03-09 10:21:39 +09:00
Gonzalo Paniagua Javier 4b7ca990ad Avoid null refs when capacity set to 0
This fixes bug #676060.
2011-03-08 18:06:11 -05:00
Miguel de Icaza aabd50d5ad [System.Json] Fix loader.
The current loader failed with some Json strings due to the implementation
of the BufferedStreamReader.   Removed that implementation completely,
and instead depend on the StreamReader to do the actual BOM detection.

This removes the JavaScriptObjectDeserializer.cs file
2011-03-08 18:00:27 -05:00
Miguel de Icaza f56f2a679c Make print take an object 2011-03-08 18:00:20 -05:00
Gonzalo Paniagua Javier e3ec5dcffb Turn the method to upper case.
Fixes bug #675731.
2011-03-08 17:35:52 -05:00
Gonzalo Paniagua Javier b428261ea6 No need to create an extra instance of Worker. 2011-03-08 12:35:05 -05:00
Atsushi Eno 7711cbf01a In XNodeWriter, extra xmlns was written and often rejected for duplicate decls.
Fixed bug #675620.
2011-03-08 23:54:23 +09:00
Atsushi Eno ce550ab14b Merge branch 'mono-2-10' of github.com:mono/mono into mono-2-10 2011-03-08 22:08:59 +09:00
Atsushi Eno 6d67acf0d0 More xml output fixes in XmlSyndicationContent and SydicationElementExtension.
They have couple of complicated xml outputs in both GetReader(AtContent)
and Write(Contents)To methods... check new tests for details.
2011-03-08 22:06:49 +09:00
Ankit Jain 82f415e01a [xbuild] Implement FileLogger . Fix #676650 .
* FileLogger.cs: Implement

Add corresponding command line args for file loggers.
Update man page.
2011-03-08 18:29:34 +05:30
Ankit Jain 4b9f33b4d5 [xbuild] ConsoleLogger - parse params only on Initialize. 2011-03-08 18:29:34 +05:30
Ankit Jain bf997c57b6 [xbuild] LogExtensions.LogError - disambiguate.
* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.
2011-03-08 18:29:33 +05:30
Ankit Jain 4395aab675 [xbuild] Set @(CollectedBuildOutput) for projects build from .sln . 2011-03-08 18:29:33 +05:30
Ankit Jain aad5ac41fa [xbuild] Add missing api for Target.
* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.
2011-03-08 18:29:32 +05:30
Ankit Jain 9a743feb99 [xbuild] Fix bug #676671. Raise AnyEvent . 2011-03-08 18:29:32 +05:30
Ankit Jain 353b636e4a [xbuild] Add hooks for extending .sln builds.
Add hooks in the .sln.proj generated from .sln files.

1. It imports
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\*"
   and
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter\*"
   This is done only in case of 4.0 projects, as imports with wildcard
   is a 4.0 feature.

2. And it imports before.Foo.sln.targets and after.Foo.sln.targets from
   the same dir as the .sln file.
2011-03-08 18:29:31 +05:30
Ankit Jain 50f46f1fac [xbuild] Update man page with info about FrameworkList.xml 2011-03-08 18:29:31 +05:30
Ankit Jain 6e597dfd63 [xbuild] Add support for wildcards in Import.
With 4.0 profile, <Import ..> can have wildcards. This works correctly
with our multiple MSBuildExtensionsPath also.

If the import references $(MSBuildExtensionsPath) property, then the
each extension path is used to resolve the import, and the search
stop as soon as an import is found.

If such an import uses wildcard, then the search stops at the
extension path in which *atleast one* file got imported.
And the import fails if any invalid project file is encountered.

This commit also heavily refactors the Import code to simplify
in the face of the new features, and improves error detection
and reporting.

ImportTest.cs: Add test for wildcards.
2011-03-08 18:29:30 +05:30
Ankit Jain 1a357d9f4e [xbuild] ImportedProject - remove unnecessary catch/throw
Remove the catch { throw; }, this truncated the stack also.
2011-03-08 18:29:30 +05:30
Ankit Jain 12692327a1 [xbuild] ImportCollections.TryGetImport and other fixes 2011-03-08 18:29:29 +05:30
Ankit Jain e166179eb8 [xbuild] Expression.ParseAs<T> - new method 2011-03-08 18:29:29 +05:30
Ankit Jain 294900133a [xbuild] DirectoryScanner.HasWildcard - new method 2011-03-08 18:29:28 +05:30
Ankit Jain df939989d8 [xbuild] Log build errors and raise events even if a build fails. 2011-03-08 18:29:28 +05:30
Ankit Jain a1c49cd4e9 [xbuild] Add support for Before/AfterTargets.
A target 'foo' can have BeforeTargets or AfterTargets attributes,
which list the targets before or after, 'foo' should be run.
This is a 4.0 feature.

* Project.cs (ProcessBeforeAndAfterTargets): New.
* Target.cs: Run the before/after targets in the correct order.

* TargetTest.cs (TestBeforeAndAfterTargets): New.
2011-03-08 18:29:27 +05:30
Ankit Jain b374152512 [xbuild] Fix warnings. 2011-03-08 18:29:27 +05:30
Ankit Jain bbc79f7b41 [xbuild] Fix assembly name comparison when resolving references.
AssemblyResolver.cs (AssemblyNamesCompatible): If either of the
references don't have a public key token, then ignore that.
2011-03-08 18:29:26 +05:30
Ankit Jain 841b593bd9 [xbuild] Vbc task - make error column check a little non-specific. 2011-03-08 18:29:26 +05:30
Ankit Jain 49805cb00d [xbuild] Exec task - add support for custom error/warning regex.
Add 4.0 api, CustomErrorRegularExpression and
CustomWarningRegularExpression.
2011-03-08 18:29:25 +05:30
Atsushi Eno 0256398770 Couple of fixes around XmlSyndicationContent.GetReaderAtContent().
- The returned XmlReader is positioned at the beginning of the element.
- XmlSyndicationContent.GetReaderAtContent() returns XmlReader that begins
  with the "wrapper" which is dummy Atom 1.0 content element.
2011-03-08 18:58:40 +09:00
Atsushi Eno 38855bc712 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:28:08 +09:00
Atsushi Eno 017b4ed819 Make sure to call MoveToContent() to correctly determine node type.
Fix "Dictionary deserialization from xml with indent" issue.
2011-03-08 14:54:11 +09:00
Geoff Norton d47c02350c Add 2 missing 4.0 APIs to the MOBILE profile 2011-03-07 21:27:51 -05:00
Atsushi Eno 4b4f74955d DateTimeOffset child elements have fixed namespace. 2011-03-08 11:03:47 +09:00
Gonzalo Paniagua Javier 211be59492 Host name is the same when querying localhost
The host name is set to the queried host name when it is the local
	machine name. Fixes bug #676260.
2011-03-07 18:51:30 -05:00
Zoltan Varga 55a91737da Fix the previous change. 2011-03-07 18:04:02 +01:00
Zoltan Varga 568b8cf74d Fix out-of-tree builds. 2011-03-07 18:01:15 +01:00
Atsushi Eno bee257b69b Empty element is valid here in silverlight secrity element. 2011-03-08 01:51:39 +09:00
Atsushi Eno 36353034c9 XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Fixed bug #676020.
2011-03-08 00:49:27 +09:00
Atsushi Eno b4b3b7b978 Forgot to add the actual new client proxy. 2011-03-08 00:43:23 +09:00
Zoltan Varga 550ca25837 Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587. 2011-03-07 12:02:16 +01:00
Atsushi Eno 5cb757c95b Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009. 2011-03-07 17:09:44 +09:00
Atsushi Eno c6fb9f9494 Couple of fixed to support new DateTimeOffset serialization in .NET WCF. 2011-03-07 16:46:56 +09:00
Atsushi Eno 1c664cbb1e Forgot to add test xml files. 2011-03-07 14:00:52 +09:00
Atsushi Eno dcc8112e68 Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993. 2011-03-07 13:58:15 +09:00
Peter Gerbrandt 7f8aafbe7d Support for the same interface as service contract and as callback contract. 2011-03-07 12:53:19 +09:00
Atsushi Eno 837bf42ce7 Replace SRE-based client proxy generator with RealProxy.
Now PE verified workaround should be unnecessary.
2011-03-07 12:32:21 +09:00
Zoltan Varga 084a76ecea Install a mono-sgen-gdb.py as well. 2011-03-04 17:33:45 +01:00
Zoltan Varga 3da978e41b Log all sdb log messages to the log file instead of stdout. 2011-03-04 13:30:04 +01:00
Geoff Norton e8c3443bd3 When running in a linked environment, this file might not exist 2011-03-03 17:54:47 -05:00
Zoltan Varga 14b494ed61 Disable testbundle for powerpc too. 2011-03-03 16:35:53 +01:00
Zoltan Varga ef214d3a25 Resurrect THREAD_DEBUG. 2011-03-03 11:30:14 +01:00
Zoltan Varga 5038f10bb6 Change an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615. 2011-03-03 11:25:48 +01:00
Rodrigo Kumpera fd2b90b73b Reset iid of unloaded generic interfaces correctly.
* class.c (mono_get_unique_iid): Don't store
	the iid of generic instances on their GTD image
	since they can be unloaded before.

	* metadata.c (free_generic_class): Reset the iid
	used by interfaces.
2011-03-02 15:14:40 +01:00
Atsushi Eno 7225ae8eed Remove wrong overrides in RequestChannelBase in discovery. 2011-03-02 20:29:29 +09:00
Andrew Jorgensen 4f8349919a add xbuild-frameworks to rpm 2011-03-01 09:57:01 -07:00
Zoltan Varga 0214f7431a Use stdint.h for VS 2010 and later. 2011-03-01 16:34:40 +01:00
Marek Safar dbdcec54b4 [675777] Remove invalid zero based optimization 2011-03-01 08:59:02 +00:00
Geoff Norton 87cc02a04a Fix the build when using DESTDIR 2011-02-28 19:26:26 -05:00
Rodrigo Kumpera f5bba434cd Handle demormalized object and string types.
* metadata.c (do_mono_metadata_parse_type): NET 1.1
	assemblies can have string and object encoded in a denormalized
	way.

	Fixes #675464.
2011-02-28 22:02:05 +01:00
Rodrigo Kumpera 7048e3f49e Handle CompareTo(long) and huge numbers.
* BigInteger.cs (CompareTo): Handle numbers
	larger than 64bits.

	Fixes #674120
2011-02-28 14:57:35 +01:00
Ankit Jain ac1ad54ded [xbuild] ToolTask - make error column check a little non-specific. 2011-02-28 17:01:38 +05:30
Ankit Jain a1953b3f77 [xbuild] Make Engine.DefaultToolsVersion 2.0 .
Engine.DefaultToolsVersion is used when a project is unable
to determine a suitable ToolsVersion to use. Change this fallback
version to 2.0 . This allows vs2005 (.net 2.0) projects which
don't have ToolsVersion explicitly set, to build. Newer projects
set ToolsVersion by default.
2011-02-28 17:01:37 +05:30
Ankit Jain b100e0eed6 [xbuild] ResolveAssemblyReference - log task parameters 2011-02-28 17:01:35 +05:30
Ankit Jain 24e787e9ff [xbuild] ResolveAssemblyReference - add missing api. 2011-02-28 17:01:33 +05:30
Ankit Jain 916943ce1a [xbuild] GetReferenceAssemblyPaths - add missing license header. 2011-02-28 17:01:31 +05:30
Ankit Jain 93a4e248be [xbuild] Add support for multi-targeting arbitrary frameworks.
ToolsVersion 4.0 supports targeting arbitrary frameworks defined
by FrameworkList.xml files and referenced by $(TargetFrameworkMoniker),
which is of the format:
 Identifier,Version=<version>[,Profile=<profile>]

built as:
 $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)[,Profile=$(TargetFrameworkProfile)]

eg. '.NETFramework,Version=v4.0' .

Frameworks are searched for in (order):

  1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
  2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
  3. MSBuild property $(TargetFrameworkRoot)
  4. $prefix/lib/mono/xbuild-frameworks (default location)

.NET frameworks 2.0/3.0/3.5/4.0 have corresponding FrameworkList.xml
files now, which allows projects to target them. Custom frameworks like
MonoDroid can install suitable FrameworkList.xml files, and projects
can target them using the correct $(TargetFrameworkIdentifier) and
$(TargetFrameworkVersion).

Update man page.
2011-02-28 17:01:30 +05:30
Ankit Jain 8494641805 [xbuild] ToolTask - add missing api
* Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(GetProcessStartInfo): Add missing api. This allows more control
over the execution of the tool.
2011-02-28 17:01:28 +05:30
Ankit Jain 82b37d914c [xbuild] Add missing property to Error/Warning tasks. 2011-02-28 17:01:26 +05:30
Ankit Jain 8c579dfce2 [xbuild] Add $(MSBuildToolsRoot) reserved property. 2011-02-28 17:01:24 +05:30
Ankit Jain 95af93f266 [xbuild] Remove property if Output TaskParameter is null.
If the TaskParameter for Output of a task is null, then remove
the corresponding property.
Add relevant test.
2011-02-28 17:01:22 +05:30
Geoff Norton 41b1fe814e Cache the result of the pthread_specific disassembly when checking for fast tls on darwin 2011-02-25 16:42:20 -05:00
Geoff Norton ac1e8e16a2 Fix the mobile build 2011-02-25 11:41:10 -05:00
Marek Habersack e8a578407b [asp.net] Fix for bug #671753. Route.GetVirtualPath must take ambient values into account. 2011-02-25 13:18:10 +01:00
Steve Bjorg 450b0f1c4a added units tests for TextReader ReadLine() and ReadToEnd() 2011-02-25 01:52:29 -05:00
Steve Bjorg d2b840c9fc TextReader.Null should return "" on ReadToEnd() 2011-02-25 01:51:39 -05:00
Miguel de Icaza ad9ddef21a Fix build 2011-02-25 01:49:02 -05:00
Miguel de Icaza 5c1fe2fedb [TerminfoDriver] be more tolerant to failures, and fallback gracefully, instead of aborting 2011-02-24 23:59:53 -05:00
Miguel de Icaza 268adea870 Do not throw exceptions, instead return a sensible value, fixes 656468 2011-02-24 23:36:33 -05:00
Atsushi Eno 70910f3f04 Fix 2.0 test build (disable it). 2011-02-25 12:38:51 +09:00
Zoltan Varga 02f2d4dbf7 Fix previous arm patch. 2011-02-25 03:20:32 +01:00
Miguel de Icaza dcec5908af Add default implementations to ReadLine() and ReadToEnd() to TextReader, fixes 655934 2011-02-24 16:52:00 -05:00
Zoltan Varga 85e594b968 Fix stop_debugger_thread () on windows. Shutdown both ends of the connection socket since shutting down only the receive part doesn't seem to work on windows. Wait for the debugger thread to exit in a loop, since we don't use condvars on windows. 2011-02-24 19:15:14 +01:00
Geoff Norton c08e02bc59 Enable ARMv6 for arm*-darwin 2011-02-24 12:22:34 -05:00
Martin Baulig a92669fc05 Fix bug #669836:
Treat exceptions that are caught by mono_runtime_invoke()
as unhandled in SDB.
2011-02-24 17:43:34 +01:00
Ankit Jain 0cce6b2bf5 [xbuild] Rename method to make it more consistent.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
(GetAssemblyNameFromFile): Rename to ..
(TryGetAssemblyNameFromFile): .. this, to make it consistent with
the similar method TryGetAssemblyNameFromFullName .
Track api changes.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:
Track api changes.
2011-02-24 18:31:49 +05:30
Ankit Jain 9f29e21ade [xbuild] Fix bug #674630.
Handle errors in trying to create AssemblyName from invalid
full names.
2011-02-24 18:31:45 +05:30
Zoltan Varga 93dd831a8b Only use memory barriers on arm when running on armv6 or later. 2011-02-24 13:56:15 +01:00
Marek Safar b860a9145c [674224] Type parameter constraint can resolve to nested type before it has been imported 2011-02-24 08:14:57 +00:00
Atsushi Eno c69896b97b Simple InstanceContext.Extensions implementation by David Schmitt.
Fixed bug #674057.
2011-02-24 14:40:52 +09:00
Atsushi Eno 094614ba92 Do not write empty items in Probe message. 2011-02-24 14:36:36 +09:00
Atsushi Eno 2bbbccf106 To header rewrite only happens in Adhoc mode.
Update contracts to comply with that and make it consistent between versions.
2011-02-24 14:36:24 +09:00
Atsushi Eno 37589e862a Pass Actor. use IsNullOrEmpty() instead of "!= String.Empty". 2011-02-24 14:29:45 +09:00
Atsushi Eno 80890aa751 Another fix to not write null header. Add UniqueId deserialization workaround. 2011-02-24 14:29:34 +09:00
Jonathan Pryor 05745bacdf Enable UDP Sockets on MOBILE platforms.
Fixes runtime part of #666736.
2011-02-23 23:03:13 -05:00
Zoltan Varga 26bbac8c8a Disallow EventType.Step in EnableEvents (). Fixes #674490. 2011-02-24 01:07:51 +01:00
Miguel de Icaza b60927f21f Fix win32 build 2011-02-23 14:21:01 -05:00
Ankit Jain a77fdbe8b5 [xbuild] Fix bug #674337.
Use appropriate path separator for handling environment variable
MSBuildExtensionsPath.
2011-02-23 21:29:37 +05:30
Jérémie Laval 81f2bb71ed Allow people to optionally fallback to the old scheduler with an environment variable 2011-02-23 14:44:59 +00:00
Jérémie Laval 3d1b4715eb Remove ctors in TpScheduler
This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.
2011-02-23 14:44:58 +00:00
Jérémie Laval df12cf48c6 Make TryExecuteTaskInline a bit smarter 2011-02-23 14:44:57 +00:00
Jérémie Laval 4e37530b60 Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy 2011-02-23 14:44:57 +00:00
Jérémie Laval 95513a6be4 Kill old IScheduler interface.
We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler
2011-02-23 14:44:56 +00:00
Jérémie Laval 8415e77fbe When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler 2011-02-23 14:44:56 +00:00
Jérémie Laval 3e593ba735 Adapt TpScheduler to the new API in TaskScheduler 2011-02-23 14:44:55 +00:00
Jérémie Laval ddd9443f26 Cache callback delegate in TpScheduler when passing Task to QueueUserWorkItem 2011-02-23 14:44:55 +00:00
Jérémie Laval d0c67f7e87 Don't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem 2011-02-23 14:44:54 +00:00
Jérémie Laval b2e391a309 Try to execute task inline when they are ready to run and we wait on them with no timeout 2011-02-23 14:44:53 +00:00
Jérémie Laval 3d4f602354 Threadpool Task scheduler 2011-02-23 14:44:53 +00:00
Jérémie Laval 2b62b097df Create PLinq query tasks attached to their eventual task parent by default 2011-02-23 14:44:52 +00:00
Jérémie Laval b816837188 When choosing the number of Task to create for a PLinq query, check if we are already in a running Task 2011-02-23 14:44:52 +00:00
Jérémie Laval c084efc79e Implement properly TaskScheduler's FromCurrentSynchronizationContext 2011-02-23 14:44:51 +00:00
Jérémie Laval 07791b1406 Adapt Parallel.For stealing to all processor flavors 2011-02-23 14:44:51 +00:00
Jérémie Laval 9ba41cadd2 Allow multiple invocation of Task Execute method to allow short-circuiting without breaking deque ordering 2011-02-23 14:28:43 +00:00
Miguel de Icaza ca02c72ecb Avoid warnings, should fix OpenSUSE builds 2011-02-22 19:30:48 -05:00
Andrew Jorgensen f5b2849d72 Version 2.10.1 2011-02-22 14:16:00 -07:00
Ankit Jain 8c4808fc36 [xbuild] Add new reserved properties $(MSBuildThisFile*).
Also, fixes bug #668955.

Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.

* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.
2011-02-23 01:38:40 +05:30
Rodrigo Kumpera ed23f897c4 Properly check arguments in List<T> ICollection.CopyTo.
* List.cs (ICollection.CopyTo): Properly check
	the array argument to match MS semantics.

	Fixes #672907
2011-02-22 18:51:20 +01:00
Ankit Jain b636b093d2 [xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.
Change the order of the "search paths", so that the environment
variable can always override it.
Update the man page to reflect the change.
2011-02-22 21:39:00 +05:30
Zoltan Varga e433c33f9f Fix the passing of the mrgctx argument in case of a virtual->nonvirtual optimization. Fixes #672446. 2011-02-22 15:30:33 +01:00
Hib Eris 21528f97be Fix gsize for 64-bit Windows 2011-02-22 14:41:14 +01:00
Zoltan Varga a7c3c38901 Avoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes #673592. 2011-02-22 05:36:34 +01:00
Zoltan Varga 5766da53da Fix arm thunk creation in dynamic methods. Fixes #673828. 2011-02-22 00:51:50 +01:00
Marek Habersack 3e6f82d10c [transactions] When cloning a transaction make sure to copy all the stuff that matters.
The volatiles and durables lists must be copied even if they are empty. The calling code
might still be accessing them via the original transaction (as is the case with Orchard+NHibernate)
2011-02-21 23:38:23 +01:00
Marek Habersack 01e4a9bb55 [asp.net] Fix for bug #669807. Cache session item locks as the item might be cleared before the lock needs to be released. 2011-02-21 19:50:33 +01:00
Geoff Norton e09f898428 Implement proper TSD lookup for arm-darwin 2011-02-21 13:37:06 -05:00
Geoff Norton 1d3ed22ab2 OSX 10.6 properly respected signal handlers before invoking the crash reporter 2011-02-20 23:01:50 -05:00
Zoltan Varga abdc66ca35 Implement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM. 2011-02-20 03:23:33 +01:00
Zoltan Varga affd549250 Make the var/mvar caches per-image, since the generic params they refer to can be freed on domain unload. Fixes part of #672939. 2011-02-20 01:54:34 +01:00
Zoltan Varga a98ce10d71 Revert "[Win64] Compilation fix for eglib in win64"
This reverts commit 97bc578e86.
2011-02-19 23:27:25 +01:00
Zoltan Varga 432ed84634 Reorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target_hash which point inside a dynamic method when it is freed. Fixes #669815. 2011-02-19 22:24:06 +01:00
Geoff Norton b2eaffda65 Avoid leaking a mach_port every time we query the counters 2011-02-19 12:22:19 -05:00
Miguel de Icaza 78a1ca7417 Backport support for add support for new PerformanceCounter("Process", "% Processor Time", "<process id as string>" on OS X 2011-02-19 12:03:32 -05:00
Gonzalo Paniagua Javier 7372ca74ef [eglib] Move definition of GPid to eglib-config.h
This new patch moves the definition of GPid from glib.h to eglib-config.h and
	determines the the type of pid_t in configure.

	Pach from Hib Eris that fixes bug #670076.
2011-02-19 11:50:46 -05:00
Gonzalo Paniagua Javier 97bc578e86 [Win64] Compilation fix for eglib in win64
Compiling for 64 bit windows breaks on incorrect gsize.
	Patch by Hib Eris that fixes bug #673581.
2011-02-19 11:43:54 -05:00
Miguel de Icaza adc1bd510c [594642] System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces fix for MacOS X 2011-02-19 11:06:00 -05:00
Gonzalo Paniagua Javier 5ef11410bd Fix the check for version and PublicKeyToken
When loading an assembly we were comparing Version(0,0,0,0) with null
	and a 0 length PKT with an actual one when those two cases are the
	default.
	Fixes bug #661461.
2011-02-19 10:14:12 -05:00
Rodrigo Kumpera 843a59e2ab Handle overrides on events when retrieving cattrs.
* MonoCustomAttrs.cs (GetBase): Special case events
	when retrieving the base event to lookup cattrs.

	* AttributeTest.cs: Add regression test.

	Fixes #662867
2011-02-18 23:38:28 +01:00
Mark Probst 9bd2159a5f [sgen] Fix some debug functions. 2011-02-18 23:18:09 +01:00
Zoltan Varga 0b63e96ade Set cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics.exe. 2011-02-18 23:09:51 +01:00
Zoltan Varga 17a13200f8 Work around a gcc bug on arm. 2011-02-18 23:06:32 +01:00
Rodrigo Kumpera b48e7b5988 Handle gsharing and marshal by ref.
* method-to-ir.c (mono_emit_method_call_full): Non virtual
	marshal by ref methods with gsharing context must always
	be called using indirect calls.

	Fixes #665893
2011-02-18 17:14:27 +01:00
Atsushi Eno ba4c090467 Fix infinite loop in DiscoveryMessageSequence equality comparison. 2011-02-18 16:32:57 +09:00
Atsushi Eno b9b1ae5876 Do not try to serialize null header item. 2011-02-18 16:23:58 +09:00
Atsushi Eno 223d09ec41 Fix wrong element name (AppSequenceType->AppSequence). 2011-02-18 16:14:08 +09:00
Atsushi Eno e72dcebf98 Almost eliminate wrong use of Constants.WsaNamespace.
They should be addressing-version-aware.
2011-02-18 16:11:16 +09:00
Atsushi Eno 980810dc82 EndpointAddressAugust2004 was not serialized correctly.
Well, Actually unified the implementation with 10.
2011-02-18 15:54:52 +09:00
Rodrigo Kumpera 6d7b16c0d2 Make sure we keep a root for the delegates when calling them.
* method-to-ir.c (mono_emit_method_call_full): Make sure
	we keep a root for delegates when calling them using the
	fast delegate dispatch.

	Fixes #667921
2011-02-17 21:59:44 +01:00
Marek Habersack d8d5da5c30 [asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method overloads. 2011-02-17 19:37:05 +01:00
Atsushi Eno 931c55c115 get out from NET_4_0. 2011-02-17 22:20:56 +09:00
Atsushi Eno dcd3787a52 Couple of corcompare fixes. 2011-02-17 21:09:50 +09:00
Atsushi Eno 995d298d00 Only use non-null values in ServiceAuthorizationBehavior. 2011-02-17 21:09:40 +09:00
Atsushi Eno 582c628f21 Fill a couple of missing ServiceAuthorizationElement implementation. 2011-02-17 21:09:29 +09:00
Atsushi Eno 10e94f0efa HTTP authentication in HttpListener had dropped during refactoring. Now it's back. 2011-02-17 21:09:19 +09:00
Geoff Norton f45ca2b65e Fix ARCH_STORE_REGS on arm to save r0->r12 properly 2011-02-16 16:10:31 -05:00
Geoff Norton c9231c0248 Remove dead code 2011-02-16 15:04:47 -05:00
Atsushi Eno b5491e25d9 MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Fixed bug #670539.
2011-02-17 00:56:59 +09:00
Hib Eris ea0673de2b Decorate _image_base__ with __MINGW_LSYMBOL
This fix is needed in compiling for x86_x64.
2011-02-16 15:22:26 +01:00
Atsushi Eno f8d7872cc4 Don't reject serialization map for existing different (but same-purpose) type. 2011-02-16 18:50:02 +09:00
Atsushi Eno ead615dca5 To header seems mandatory in April2005, so fill it. 2011-02-16 18:19:14 +09:00
Atsushi Eno 4ed4702907 April2005 AppSequence needs default constructor for deserialization. 2011-02-16 18:19:03 +09:00
Atsushi Eno be750c099d xsi:type parsing is wrong in default namespace resolution.
Fixed case #3 in bug #652331.
2011-02-16 18:04:18 +09:00
Atsushi Eno 4b82e7b3b2 Operation interface methods also have ServiceKnownType attributes. 2011-02-16 17:07:10 +09:00
Atsushi Eno 1e17218a2d KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state. 2011-02-16 16:06:15 +09:00
Jérémie Laval 423f895412 Implement TaskFactory.FromAsync 2011-02-15 18:38:29 +00:00
Ankit Jain d6070f1383 [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.
2011-02-15 20:18:36 +05:30
Marek Safar f1e818a76f [671878] Fixes IKVM ordering of catch clauses 2011-02-15 14:33:14 +00:00
Atsushi Eno a28a9520b5 Async MessageContract pattern needs more sophisticated contract validity check.
It totally killed discovery.
2011-02-15 23:25:31 +09:00
Atsushi Eno 6907827b05 Message headers are now serialized and deserialized for MessageHeaderDescription. 2011-02-15 23:15:32 +09:00
Atsushi Eno 6ea68b9128 ServiceDescription.cs does not exist in moonlight, so move TypeExtension. 2011-02-15 22:38:20 +09:00
Atsushi Eno 7c37c423e1 MessageHeaderDescription were not filled in message contract. Reject wrong contracts. 2011-02-15 22:13:25 +09:00
Atsushi Eno 8854623440 implement some ServiceHostBase public methods that already existed internally. 2011-02-15 22:13:18 +09:00
Atsushi Eno 7b088dc2a4 When the callback contract type is the same as the contract, do not block replies. 2011-02-15 15:51:44 +09:00
Atsushi Eno e19f4be52c EndpointAddress could be empty on opening the factory. 2011-02-15 15:51:38 +09:00
Atsushi Eno 20b58344cc PeeDuplex ChannelFactory must be opened in prior to create channels. 2011-02-15 15:51:32 +09:00
Atsushi Eno c310cd6556 add private setter for message serialization.
Not sure if it is hack or required-to-do though.
2011-02-15 15:51:26 +09:00
Veerapuram Varadhan fc074bb4fa [bugfix]667855 - Fix handling of oracle raw data type appropriately. 2011-02-15 01:25:00 +05:30
Gonzalo Paniagua Javier a7bfba4549 [HttpListener] UserHostName includes the port. 2011-02-14 14:38:26 -05:00
Gonzalo Paniagua Javier a65b6c7523 [HttpWebRequest] EndGetResponse already does this. 2011-02-14 14:38:26 -05:00
Gonzalo Paniagua Javier 7730c00a02 [HttpWebRequest] Use the timeout in GetResponse()
The timeout was not being used in GetResponse.
	Fixes bug #603794.
2011-02-14 14:38:26 -05:00
Atsushi Eno 675dc5b693 support UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328. 2011-02-15 01:57:02 +09:00
Veerapuram Varadhan 881d960b29 backport of r1012ab0b
Fixes 667236 - Handle numeric types appropriately
2011-02-14 21:18:04 +05:30
Miguel de Icaza 6c161687ea [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
2011-02-14 09:41:31 -05:00
Marek Safar 7acea3000f [671552] Use correct emit method for stobj type 2011-02-14 13:21:44 +00:00
Gonzalo Paniagua Javier a615812280 [HttpWebRequest] Avoid nullref on empty cookie header.
If the Set-Cookie header is empty, the cookie instance is not created.
	Fixes bug #670189.
2011-02-13 14:54:27 -05:00
Alexandre Mutel 7ec51b02e9 Fix sizeof(T) in non-gshared code. Fixes #580189. 2011-02-13 16:17:12 +01:00
Mark Probst 9b5ca2f366 Merge branch 'bugfix-main-thread-root' into mono-2-10 2011-02-13 16:10:37 +01:00
Zoltan Varga f4edc478f0 Add an assembly version to Mono.Debugger.Soft. Fixes #671536. 2011-02-13 16:06:57 +01:00
Mark Probst 586f777ec2 [sgen] Register the main_thread as a GC root. Fixes shutdown crashes. 2011-02-13 15:50:13 +01:00
Gonzalo Paniagua Javier ba0fbbe133 [HttpListenre] Avoid multiple calls to Close()
HttpListenerResponse could be calling HttpConnection.Close() more than
	once.
2011-02-13 07:08:34 -05:00
Zoltan Varga 86fdd99f9e Fix reading of cattr arguments of type Type[]. Fixes #670331. 2011-02-13 04:24:58 +01:00
Gonzalo Paniagua Javier 6390cf3b64 [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.
2011-02-12 00:05:35 -05:00
Gonzalo Paniagua Javier fcdb18822c [Socket] Fix invalid cast
Fix invalid cast when canceling pending operations due to socket.Close.
2011-02-11 18:36:54 -05:00
Zoltan Varga 79fddfa11d Fix token generation for TypeBuilder's in another assembly. Fixes #671245. 2011-02-12 00:15:59 +01:00
Miguel de Icaza 32f616acfb [fix] changing Form.Enabled sometimes can change the list of OpenForms, fixes 671098 2011-02-11 17:34:23 -05:00
Zoltan Varga 52e0febfe6 Add Mono.XBuild.Utilities/MSBuildUtils.cs to the build. 2011-02-11 21:58:02 +01:00
Zoltan Varga 4246c386a0 Pretty print MonoString* too in xdb. 2011-02-11 21:54:44 +01:00
Sebastien Pouliot d4ed08b5b4 Continue X509Chain processing even if the local machine directory does not exists
* corlib/Mono.Security.X509/X509Store.cs:
* Mono.Security/Mono.Security.X509/X509Store.cs:
	Fix key pair persistence to load key pairs from the same location
	(machine or user) as the requested certificate. This avoids an
	internal exception (on missing local machine directory) that stop
	the evaluation of the certificate validity (i.e. no user store
	check)
* System/System.Security.Cryptography.X509Certificates/X509Chain.cs:
Ensure that a missing local machine directory does not result in a NRE
while loading CRL (which would fail the certificate being validated)
2011-02-11 13:41:33 -05:00
Hib Eris e43d097f7c Earlier undefine HAVE_GETPROCESSID when cross compiling 2011-02-11 15:42:29 +01:00
Rodrigo Kumpera 1066c2c1b5 Make maxStackSize behavior compatible with MS.
* Thread.cs (.ctor): Check if maxStackSize is negative
	and raise and AOORE. Silently use a saner minimum size
	of 128k as mono can't really run with much less than that.
2011-02-11 14:58:12 +01:00
Zoltan Varga efa462d684 Make the wait in the finalizer thread alertable to fix sdb on windows. Fixes #670619. 2011-02-11 05:55:06 +01:00
Zoltan Varga 6a77ef2687 Change some Sleep(0)'s to Sleep(1) in the soft-debugger code to avoid 100% cpu utilization on windows. 2011-02-11 01:34:43 +01:00
Gonzalo Paniagua Javier 1829c15ee9 [HttpWebRequest] Can't ignore erros here 2011-02-10 17:26:09 -05:00
Gonzalo Paniagua Javier c214cd9488 [HttpWebRequest] Error handling for POST/PUT
When we get an error from the server before writing an entire
	unbuffered response, the server might close the connection leading to
	write errors. Ignore those and return the actual HTTP status code from
	the original server error.
2011-02-10 17:26:09 -05:00
Ankit Jain d08d05e197 [xbuild] Update Utilities.FromMSBuildPath from monodevelop.
Updating FromMSBuildPath also fixes a bug on windows.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Utilities.cs:
Move to..
* Microsoft.Build.Utilities/Mono.XBuild.Utilities/MSBuildUtils.cs:
.. this. Also, update FromMSBuildPath from monodevelop.
* Update Engine/* and Tasks/* to track the new api.
2011-02-11 02:57:58 +05:30
Andrew Jorgensen 0793c8ecae Mono.Debugger.Soft.dll is installed for 4.0 also. 2011-02-10 07:36:52 -07:00
Atsushi Eno 2031d77d6b Fix a couple of addressing namespace fixes (found in April2005 version). 2011-02-10 22:07:16 +09:00
Atsushi Eno 916479ff8a Fix wrong async completion handling in UDP channel receive.
After AsyncWaitHandle.Set(), order of filling results and WaitOne() are
undefined.
2011-02-10 21:19:02 +09:00
Marek Habersack 1630b8ecb9 [asp.net] Fix for bug #669048. Fix up virtual precompiled app virtual paths with the virtual root of the current app 2011-02-09 22:02:36 +01:00
Rodrigo Kumpera 1316be56bb Handle assignment check of variant type and its gtd.
* clas.c (mono_class_is_variant_compatible): Return
	FALSE if checking a variant type and its gtd instead
	of crashing.

	Fixes #668506
2011-02-09 16:42:17 +01:00
Zoltan Varga e61f3b7278 Install Mono.Debugger.Soft in the 4.0 profile as well. 2011-02-09 16:25:02 +01:00
Atsushi Eno b6b34d1051 Recent ContractDescription fix uncovered wrong contracts in discovery. 2011-02-09 20:06:07 +09:00
Rodrigo Kumpera c5cbc7e8e2 Cleanup the reference queue on domain unload.
* gc.c (finalize_domain_objects): Clear reference
	queues on domain unload after running all finalizers.
2011-02-09 11:22:23 +01:00
Atsushi Eno 3aad1fb2cf Support ServiceKnownTypes. Fixed another case on bug #652331. 2011-02-09 15:44:19 +09:00
Zoltan Varga c3cd3eb877 Disable OP_INEG cfolding on 32 bit arches, as it breaks the LNEG decomposition. The previous special casing didn't work as the spill pass could insert a store between the ineg and the adc_imm. Fixes #670479. 2011-02-09 05:11:43 +01:00
Gonzalo Paniagua Javier 610f8d77c9 [SmtpClient] Don't send empty display name.
If there's no display name, don't send '""'.
	Fixes bug #670475.
2011-02-08 21:02:33 -05:00
Miguel de Icaza 18efb9a9e2 Update docs 2011-02-08 20:19:02 -05:00
Miguel de Icaza 11b3ead24e Add prototype to .h file 2011-02-08 20:18:55 -05:00
Lucas Meijer dfcd93df2a implement mono_set_assemblies_path for platforms that cannot set MONO_PATH environment variable. 2011-02-08 20:18:39 -05:00
Atsushi Eno ee701df195 Fix bug #661400 - fix complicated namespace resolution issue.
Namespaces in nested external schemas have to be validated against
immediately-containing schema. If there is a schema A with urn:x
targetNamespace imports a schema B with urn:y targetNamespace which
in turn includes another schema C, then C must be validated its namespace
against B, not A.
2011-02-08 20:18:32 -05:00
Marek Habersack 142676a516 [asp.net] Be more careful with errors collection when compilation fails. 2011-02-09 01:26:17 +01:00
Marek Habersack 02f2fe8204 [asp.net] Implemented CustomErrorsRedirectMode 2011-02-09 01:26:10 +01:00
Miguel de Icaza be6ba4038a Fix Enum.HasValue, previous version crashed with negative values 2011-02-08 15:52:38 -05:00
Marek Habersack 9d4e229c2e [cross-compilation] Added some flexibility regarding the location of development packages
The script now supports an extra cross-compilation directory in which you can unpack the
library and development packages necessary for the build to succeed (glib, zlib etc). Also
supported now is specifying the location at which Mono will be installed on Windows.
Replaced SVN and GIT-SVN version checks with git checks.
2011-02-08 20:47:15 +01:00
Rodrigo Kumpera 9177ddc384 Fix reference queue under boehm.
* gc.c (finalizer_thread): Clean reference queues
	after finalizers are called to give boehm a chance
	to resurrect it.
2011-02-08 18:30:09 +01:00
Hib Eris b9c4865b04 Fix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files 2011-02-08 14:56:26 +01:00
Hib Eris 83c2b73c8c No longer include glib binaries in build-mingw32.sh builds.
By default, Mono now uses an embedded glib implementation, so there
is no need to ship external glib libraries anymore.
2011-02-08 14:55:51 +01:00
Hib Eris 77b6d414b9 Let build-mingw32.sh script also work on dist tarballs 2011-02-08 14:55:10 +01:00
Hib Eris cb8913217e Use winternl.h instead of ddk (when available)
These changes are nescessary for compiling with a mingw-w64 compiler.
2011-02-08 14:45:12 +01:00
Hib Eris c45dd61269 Remove implementation details from public header io-layer.h
The macro HAVE_GETPROCESSID is defined in config.h and should not be
exposed in public headers.
2011-02-08 14:44:52 +01:00
Marek Safar 2990e2e271 [657099] Fix cloning of remapped blocks 2011-02-08 12:53:05 +00:00
Atsushi Eno 7e69d0aa77 Simple content restriction was not validated when it is in further reference.
Fixed bug #595947. It was complexType [base]-> complexType [base]-> simpleType.
2011-02-08 20:55:16 +09:00
Marek Safar cf0928b53e Fix remapping of cloned block parent when already in cloned context 2011-02-08 11:23:46 +00:00
Atsushi Eno b2525e0cb0 For complexType simpleContent restriction, fill attributes from base type.
Part of bugfix #595947.
2011-02-08 18:32:53 +09:00
Atsushi Eno 38fe929b9f There's a tricky namespace-mismatching deserialization in .NET implementation.
Fixed bug #666333.
2011-02-08 17:11:15 +09:00
Atsushi Eno f5ef8da8e5 Contract-based type must ensure that the base type is also contract-based.
Fixed bug #661987 on WCF side.

Conflicts:

	mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/XmlObjectSerializerTest.cs
2011-02-08 12:13:57 +09:00
Atsushi Eno 20453fcb9c Open and close client/service runtime channels in chains. Fixed bug #663278. 2011-02-08 12:08:10 +09:00
Atsushi Eno f3ddd9df63 handle IsTerminating. 2011-02-08 12:07:57 +09:00
Atsushi Eno 68ce0748e5 Duplex client has its own listener loop, so special care on reply is needed. 2011-02-08 12:07:45 +09:00
Atsushi Eno 34fad98bf0 Callback contract should be distinguished from others for DispatchOperation. 2011-02-08 12:07:33 +09:00
Atsushi Eno 176c92c21d Now operations are collected per corresponding ContractDescription.
This fixes naming of MessageDescription Action URI from its type.
2011-02-08 12:07:22 +09:00
Atsushi Eno a303481db4 Implement GetInheritedContracts(), towards bugfix #668089. 2011-02-08 12:07:11 +09:00
Atsushi Eno e2884a6c57 standard endpoint and protocol mapping support were lacking at client side.
Turned out that they had nothing to do with #668089..
2011-02-08 12:07:00 +09:00
Atsushi Eno be19163ffe Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-08 12:06:50 +09:00
Atsushi Eno 44a9e7eef7 Manage opened proxy channels and close them when ChannelFactory is closed. 2011-02-08 12:06:39 +09:00
Atsushi Eno ab26a0788e Implemented a couple of async methods in InstanceContext as well as disposing. 2011-02-08 12:06:29 +09:00
Atsushi Eno 0870ad290d Avoid possible list modification error during close process. 2011-02-08 12:06:18 +09:00
Atsushi Eno c4c9b57b9d Make sure to close session once the client opened one. 2011-02-08 12:06:07 +09:00
Atsushi Eno 184d565783 Fix regression, avoid null key. 2011-02-08 12:05:55 +09:00
Atsushi Eno 84c27ca818 And rename source file name. 2011-02-08 12:05:44 +09:00
Atsushi Eno 561ec9f0e6 Rename InstanceBhavior, too ambiguous among IXxxBehavior interfaces. 2011-02-08 12:05:34 +09:00
Atsushi Eno cf586923d5 Sessions should not be keyed by MessageId but be done by channel SessionId. 2011-02-08 12:05:24 +09:00
Atsushi Eno be5559c59f Read body content if required. Fixed all issues in bug #656020.
Now it considers message content format and IsWrapped[Request|Response] to
retrieve XmlObjectSerializer.
2011-02-08 12:05:13 +09:00
Atsushi Eno 97a48b0eab Enable duplicate "UriMatched" error check, with couple of FIXMEs.
.NET is very unclear about those UriTemplate behavior. Too minor to mind.
2011-02-08 12:05:03 +09:00
Atsushi Eno fbc54c3de5 Fix template match logic to first check HTTP-method-matching ones.
Part of the fix for bug #656020.
2011-02-08 12:04:53 +09:00
Atsushi Eno e99c8b5a77 Serialize non-mapped message parameter as body content. Part of bug #656020 fix. 2011-02-08 12:04:43 +09:00
Marek Habersack 6eca3e53ed [crypto] Added missing 4.0 algorithm names 2011-02-08 00:34:33 +01:00
Hib Eris d1ef6f2e4b Do not distribute eglib-config.h
The file eglib-config.h is generated when running configure.
Distributing eglib-config.h in tarballs causes errors when building
out of the source tree.
2011-02-07 23:55:47 +01:00
Hib Eris 0ab1c82223 Use _vscprintf() for mingw-w64 compilers
The mingw-w64 compilers implement a vsnprintf() function that do not
conform to the C99 standard (just like MSVC).
2011-02-07 23:43:37 +01:00
Hib Eris dd8a1f2831 Include config.h in mono-profiler-aot.c
This change is nescessary for compiling with a mingw-w64 compiler.
2011-02-07 23:41:28 +01:00
Zoltan Varga 632a3c70c7 Cast the result of MONO_CONTEXT_GET_SP () to an int to fix the windows build. 2011-02-07 23:36:41 +01:00
Zoltan Varga 6b9347a35b Include sys/types.h for pid_t on mingw. Fixes #670076. 2011-02-07 23:33:11 +01:00
Zoltan Varga ccedbc64dc Use mono_method_get_vtable_slot () instead of accessing method->slot directly. Fixes #669808. 2011-02-07 16:11:47 +01:00
Zoltan Varga a962434e90 Fix the ia64 build. 2011-02-06 00:08:16 +01:00
Rodrigo Kumpera 129cfd47ee Fixes ldfnt to ldvtftn conversion.
* mini-trampolines.c (mono_delegate_trampoline): The ldftn
	to ldvtftn conversion must check if the method is abstract,
	otherwise it breaks delegate to base classes.

	Fixes #666008
2011-02-05 13:38:42 +01:00
Zoltan Varga 1c51463ed0 Print a normal stack trace even if a hard stack overflow happens in unmanaged code. 2011-02-04 12:55:47 +01:00
Zoltan Varga 719afa9b59 Print a normal stack trace on a hard stack overflow. 2011-02-03 23:04:47 +01:00
Zoltan Varga 8f45703547 Fix the handling of CompareExchange icalls in AOT, we were using the 'object' versions for everything, which broke with 64 bit types on 32 bit platforms. 2011-02-03 21:59:34 +01:00
Ankit Jain d47a028ed4 [webservices] Extensions can be unknown XmlElements also, fix.
* class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs:
Extensions can be XmlElement or ServiceDescriptionFormatExtension.
* class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:
(AddExtensionNamespaces): Likewise. Also, ignore namespaces from
XmlElement, as we retain and write them out as-is.
(WriteExtension): Emit the XmlElement as-is.
* class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:
Update to write out the wsdl also.
2011-02-04 01:03:45 +05:30
Marek Habersack 568f9ab996 [asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different 2011-02-03 17:43:31 +01:00
Marek Habersack c7f2fda73d [xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocument} are present in 3.5+
With the exception of DtdProcessing, the properties are part of .NET 3.5+. DtdProcessing appeared in 4.0.
2011-02-03 17:43:02 +01:00
Marek Safar c139a0e52d Don't even try to import type when its context is wrong 2011-02-03 15:21:38 +00:00
Marek Safar 320645f312 Add handling of broken Convert callsite from Orchard Project 2011-02-03 15:21:13 +00:00
Marek Safar 8b1e1255e6 Fix importing of private types under dynamic context 2011-02-03 15:16:50 +00:00
Zoltan Varga a96d068321 Fix the passing of vtype arguments for methods which return floats in soft-float mode. Fixes #668905. 2011-02-03 16:06:25 +01:00
Marek Safar a5f9b5d9c6 Allow any expression to be used in where clause. Some custom linq implementations use non-predicate version of where 2011-02-03 13:55:28 +00:00
Marek Habersack fe7386298f [reflection] Default binder's AdjustArguments method treats ParamArray parameters which are already arrays properly
Such parameters are not adjusted as it would lead to an InvalidCastException whenever an attempt to set an array
index's value would be made.
2011-02-03 02:23:15 +01:00
Zoltan Varga db64c7f8f1 Add support for --debug=casts to Array:SetValue (). Fixes #668851. 2011-02-03 00:37:45 +01:00
Zoltan Varga 63f4b4cdd4 Fix a warning. 2011-02-03 00:36:41 +01:00
Rodrigo Kumpera 0efd1e04f6 Fix dynamic method cleanup at shutdown.
* gc.c (mono_gc_cleanup): Cleanup all reference
	queues after regular finalization.

	* reflection.c: The dynamic method ref queue is finalized
	by the runtime itself.

	* runtime.c: Ditto.
2011-02-02 20:28:30 +01:00
Miguel de Icaza b4e49b89b4 [csharp] Change the signature for print 2011-02-02 13:09:53 -05:00
Marek Safar bf12c6eb03 Implement support for implicit user conversion for DefaultParameterValue (very odd) 2011-02-02 17:25:22 +00:00
Ankit Jain 15514b1b26 [xbuild] Warn for unknown toolsVersion only on build.
Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.

* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.
2011-02-02 18:26:43 +05:30
Rodrigo Kumpera 8dba556993 Align call instructions to make code patching SMP safe.
* mini-x86.c (emit_call): Align call instructions on
	3 mod 4 so the address is 4 bytes aligned and can't span
	two cache lines. This is required for proper SMP support
	as CAS is not atomic across cache lines.

	Fixes one of the crashes due to #667921.
2011-02-02 13:03:04 +01:00
Geoff Norton a40312f1c1 Avoid a stack overflow when deactivating a window 2011-02-01 23:54:06 -05:00
Lucas Meijer ca201f3478 make mono_print_thread_dump output to the visualstudio debugger window, for better debugger experience 2011-02-01 21:55:57 +01:00
Rodrigo Kumpera e7785a27ab Don't use finalization to cleanup dynamic methods.
* reflection.c: Use a reference queue to cleanup
	dynamic methods instead of finalization.

	* runtime.c: Shutdown the dynamic method queue
	before runtime cleanup begins.

	* DynamicMethod.cs: No longer finalizable.

	* icall-def.h: Remove unused dynamic method icall.

	Fixes #660422
2011-02-01 17:35:11 +01:00
Rodrigo Kumpera fd57b963ad Implement a reference queue API.
* gc.c: A reference queue allows one to queue
	callbcks for when objects are collected.
	It allows for safe cleanup of objects that can
	only be done when it is effectively collected.
	The major difference with regular finalization
	is that the collector makes sure the object
	was collected - and can't be resurrected.

	* gc-internal.h: Export entrypoints for the
	new API.
2011-02-01 17:35:11 +01:00
Zoltan Varga 88bfc71d89 Make caching in mono_marshal_get_virtual_stelemref () thread-safe. Fixes #668489. 2011-02-01 17:09:45 +01:00
Marek Safar efcd37f730 Fix empty cast conversion from dynamic type object type argument 2011-02-01 14:29:49 +00:00
Marek Habersack b27182bd5d [asp.net] FormsAuthenticationTicket.FromByteArray stops early if it is passed a null parameter 2011-02-01 09:21:13 +01:00
Marek Habersack e44310c079 [runtime] AddWatcher icall must look up the path in an IOMAP-aware way 2011-02-01 09:21:07 +01:00
Atsushi Eno 5d7723bc37 Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-01 15:59:00 +09:00
Atsushi Eno 157111dbb5 quick build workaround. 2011-02-01 13:01:50 +09:00
Atsushi Eno 38bdb82f95 in NET_4_0, remove types that went into System.Xaml.dll. Change build order. 2011-02-01 11:05:11 +09:00
Bit Diff 0a8a210791 Fixes #527447 whereby it was not possible to pass additional arguments to mono-service2 (if your executable required command-line arguments of it's own). 2011-01-31 17:59:03 -05:00
Zoltan Varga ca0ededdc6 Fix stack walks on sparc. 2011-01-31 22:40:11 +01:00
Gonzalo Paniagua Javier 79633ee3d1 Handle wrapped ThreadAbortException
Third party ProcessRequest() like the one from Razor can wrap a
	ThreadAbortException originated from response.Redirect().
2011-01-31 16:36:16 -05:00
Jonathan Pryor 0577648c00 Fix the basic-profile build. 2011-01-31 15:16:05 -05:00
Jonathan Pryor 8cc7997a69 Fix the MonoDroid build.
Most System.TimeZoneInfo members weren't being included.
2011-01-31 14:05:19 -05:00
Gonzalo Paniagua Javier 1258d11fc3 Allow forcing HTTP protocol version
If the version is manually set, ignore the version from the service
	point when set.

	Fixes bug #668199.
2011-01-31 10:49:40 -05:00
Lluis Sanchez b5da420c28 Handle possible exceptions thrown by Socket.Close 2011-01-31 16:34:17 +01:00
Marek Habersack 879cb82456 [asp.net] Implemented 4.0 types System.Web.Security.{MachineKey,MachineKeyProtection} plus tests 2011-01-31 15:20:57 +01:00
Zoltan Varga 15aed192fb When using xdebug, allocate all code from the code manager of the root domain. Hopefully fixes #666152. 2011-01-31 14:02:29 +01:00
Marek Habersack 789c5a7f91 [asp.net] Ignore directories that don't exist instead of throwing. 2011-01-31 11:08:33 +01:00
Marek Habersack 684266d2b3 [runtime] Use IOAMP-aware method of looking for domain configuration file 2011-01-31 09:47:20 +01:00
Jo Shields c5302b7b52 Really fix sgen on PowerPC Linux. Assembler on Linux requires that register names are just bare numbers, unlike OSX, i.e. "r0" must be "0" on Linux. 2011-01-31 07:47:05 +01:00
Atsushi Eno fc0ec2635d Do not return DocumentFragment from AppendChild() etc. Fixed bug #666249. 2011-01-31 13:48:00 +09:00
Atsushi Eno 2d13b63f4e Fixed bug #666872; XElement.Changed and .Changing were not triggered. 2011-01-31 13:46:55 +09:00
Atsushi Eno b057032956 add public NetTcpSecurity .ctor() and close #667429. 2011-01-30 23:38:57 -05:00
Miguel de Icaza a11120ae36 [repl] Fix running specified scripts from command line, allow #! syntax, add print command
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.

Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase

Add a better way of dealing with -e, without adding hacks to the core that wont work
in the future
2011-01-30 17:43:44 -05:00
Miguel de Icaza b56b8ad2c3 [repl] Add support for -e EXPRESSION to the csharp command 2011-01-30 12:06:10 -05:00
Miguel de Icaza 0b17f7feab Document csharp #! support 2011-01-30 11:41:09 -05:00
Miguel de Icaza abf855afe1 [repl] Fix running specified scripts from command line, allow #! syntax, add print command
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.

Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase
2011-01-30 11:33:00 -05:00
Zoltan Varga af6065a810 Fix some quadratic behavior in the AOT compiler. 2011-01-30 09:13:51 +01:00
Zoltan Varga 9cffdf6cf4 Improve hashing of MONO_PATCH_INFO_TYPE_FROM_HANDLE. 2011-01-30 09:13:36 +01:00
Zoltan Varga 5a862ae52a Mark a newly added test as !FULLAOT. 2011-01-30 09:13:05 +01:00
Zoltan Varga 07b052d9c6 Don't crash when inlining static methods called using callvirt. Fixes #668170. 2011-01-30 07:00:30 +01:00
Zoltan Varga 70adac78be Clear the 'need_rgctx_tramp' flag when creating a synchronized wrapper. Fixes 2011-01-29 20:52:23 +01:00
Geoff Norton 51a4f125d1 Typo 2011-01-29 11:37:17 -05:00
Geoff Norton 8e4b73cb4a Avoid a crash when shutting down jit attached threads 2011-01-28 19:05:21 -05:00
Geoff Norton e0dd2115d6 Ensure we setup the vtable before accessing it 2011-01-28 01:08:57 -05:00
Zoltan Varga 54fe90cf1c Add an AtLeast version to sdb's VersionInfo class. 2011-01-28 06:28:55 +01:00
Geoff Norton abc793ffbd Bump SDB protocol so MonoDevelop can guard IL inspection of dynamic methods 2011-01-28 00:26:12 -05:00
Geoff Norton d23601d20b Dont leak loader errors in the aot compiler, as it could cause later methods to not get compiled erroneously 2011-01-27 23:23:27 -05:00
Gonzalo Paniagua Javier 2151a961f8 [HttpListener] Set each cookie in its own header
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
	multiple cookies.

	Fixes bug #667550.
2011-01-27 15:47:53 -05:00
Zoltan Varga b8bf630538 Fix AOT support for types in the EXPORTEDTYPE table. 2011-01-27 19:28:18 +01:00
Zoltan Varga 77f13bc288 Increase an aot buffer size again. 2011-01-27 17:25:07 +01:00
Marek Habersack dead19bc1e [asp.net] A bunch of fixes related to the default VirtualPathProvider (needed for Orchard)
* DefaultVirtualDirectory is now more careful when snipping off parts of the path passed to
  its constructor. Before removing the file part it checks whether the file indeed exists.
  Also sealed the class and made it use generic List instead of ArrayList
* HttpRequest does not normalize mapped paths when converting them to absolute ones. This is
  to avoid errors when path like "~/bin/../../file.txt" is passed to MapPath.
* VirtualPathUtility.ToAbsolute overload with normalize parameter really doesn't normalize
  the resulting path now.
2011-01-27 15:36:45 +01:00
Marek Habersack ef2c84591a [machine.config] Added the <system.transactions> section definition 2011-01-27 15:36:45 +01:00
Zoltan Varga 30f5e30bc4 Applied patch from Burkhard Linke <[email protected]>. Add support for newer boehm-gc versions. 2011-01-27 15:35:25 +01:00
Jérémie Laval cdd5b3f397 Leave db connection opened until requested to close it and add more unit tests 2011-01-27 13:18:19 +00:00
Zoltan Varga 4512ede1a0 Fix compilation of tests/assemblyresolve with newer mcs-es. 2011-01-27 11:06:35 +01:00
Marek Safar fb6c06445f [667261] Fixes overload resolution of an optional parameter followed by a params parameter of the same type 2011-01-27 09:06:10 +00:00
Zoltan Varga d2fddf5062 Fix dist issues in Mono.Debugger.Soft. 2011-01-27 07:16:44 +01:00
Gonzalo Paniagua Javier ae3683b3c2 Prevent abort
When cleaning up the sockets we no longer have access to Tls.
2011-01-26 23:09:50 -05:00
Zoltan Varga 36d4336429 Add AOT support for castclass_with_cache wrappers. 2011-01-27 01:44:47 +01:00
Kyle Ambroff 51a47770f2 version tolerant serialization fails with missing primitive members
Modifies ObjectReader so that when it encounters a primitive typed member in
an object stream which has no corresponding member in the app domain, it will
read the value anyway and throw it away. That way it can read the next block
from the stream.

Added a unit test which passes with the changes to ObjectReader.

Fixes bug #641821.
2011-01-26 18:07:42 -05:00
Kenneth Bell c0a4dd98cf Implement RawSecurityDescriptor.
* Marshals to/from SDDL and binary form.

 * Supports 'Common' ACEs and 'Object' ACEs
2011-01-26 17:58:57 -05:00
Kenneth Bell 27729c4b20 Implement SecurityIdentifier and improve NTAccount.
* Only translates between SecurityIdentifier and NTAccount for
    well-known accounts.

  * NTAccount changed to not upper-case values to match behaviour
    observed in Microsoft's .NET (see also unit tests)

  * Add unit tests for both classes
2011-01-26 17:46:28 -05:00
Antoine Cailliau c7f33c1904 Implements System.ComponentModel.DataAnnotations.RegularExpressionAttribute 2011-01-26 17:28:56 -05:00
Geoff Norton eb3626b925 Include operands when emitting the IL stream to sdb clients 2011-01-26 12:34:48 -05:00
Geoff Norton acba62755d Ensure we properly align the stack before resuming from breakpoint signal handlers 2011-01-26 12:13:52 -05:00
Andrew Jorgensen e62983964b Add 2.0 and 4.0 S.D.S.C 2011-01-26 09:48:47 -07:00
Geoff Norton 93966536b5 Dynamic methods are classes already here 2011-01-26 11:24:38 -05:00
Rodrigo Kumpera 9aa0d0ba0b Fix freeing of delegate wrappers.
* marshal.c (mono_marshal_get_delegate_invoke): If
	the target is a static method with first arg bound
	and it belongs to a different assembly than the delegate
	we might end up with a freed signature in the hashtable.

	Fix a moonlight crash.
2011-01-26 12:37:39 +01:00
Marek Safar e984af0443 Optimized constructor readonly access has to be inside same declarting type 2011-01-26 09:04:50 +00:00
Geoff Norton 97c46a7be6 MonoTouch doesnt support SRE, so we need to disable this code on MT 2011-01-25 23:04:33 -05:00
Zoltan Varga 7d5fce6c1b Add a 'suspend-on-unhandled' MONO_DEBUG option to help track down the random build failures on ia64. 2011-01-26 04:17:08 +01:00
Geoff Norton 3d19f5b624 Further .NET 4.0 ification of the mobile profile 2011-01-25 20:11:19 -05:00
Ankit Jain 16669c9944 [xbuild] Improve error messages for condition evaluation.
Also, add new ExpressionEvaluationException class.
Wrap Expression*Exceptions in InvalidProjectFileException with
info about the full condition being evaluated.
2011-01-26 05:03:16 +05:30
Ankit Jain a8f4de0f37 [xbuild] Support short-circuiting in conditions. 2011-01-26 05:03:14 +05:30
Ankit Jain ad8508c148 [xbuild] Correctly set CscToolExe if TargetFrameworkVersion is not set.
* tools/xbuild/xbuild/Microsoft.CSharp.targets: $(CscToolExe)
is set depending on the value of $(TargetFrameworkVersion).
Since, $(TargetFrameworkVersion)'s default value is set
by MS.Common.targets, set $(CscToolExe) *after* importing
MS.Common.targets .
2011-01-26 05:03:13 +05:30
Ankit Jain 081dc45b72 [xbuild] Fix bug #665637.
Pass $(WarningsNotAsErrors) to Csc task.
2011-01-26 05:03:11 +05:30
Ankit Jain b0f9fd65a1 [xbuild] Fix bug #665004. Honor /nologo option.
* tools/xbuild/Parameters.cs (DisplayVersion): Remove, not required.
2011-01-26 05:03:10 +05:30
Ankit Jain f995310582 [xbuild] Update Novell copyright. 2011-01-26 05:03:08 +05:30
Ankit Jain 5789f96b3c [xbuild] Error out, if no target is found in a project. 2011-01-26 05:03:07 +05:30
Jb Evain e413cf2327 [linq] Fix Reverse for IList implementors 2011-01-26 00:10:55 +01:00
Jb Evain bbd7f83168 [linq] Fix overflow check for Count 2011-01-26 00:10:41 +01:00
Jb Evain dcad2f1b22 [linq] fix Range extreme boundaries 2011-01-26 00:10:30 +01:00
Miguel de Icaza e9f180be6a Restoring some of the formal beauty of this text document as
we carefully restore the missing tabs that helped carefully
align the continuation characters in a list of assemblies.

As we align these newline separators, suddenly, a new form
emerges from the chaos, something that gives us the illusion
that this stream of bytes is indeed almost like a dawn of a
new day as we breathe the air in a valley overlooking a beautiful
mountain at the beginning of the spring.
2011-01-25 17:56:00 -05:00
Geoff Norton 8c3c6c4b54 Fix the mobile build 2011-01-25 14:16:11 -05:00
Mark Probst f97c2388cb Merge branch 'sgen-android' into mono-2-10
Conflicts:
	mono/metadata/sgen-gc.c
2011-01-25 16:35:16 +01:00
Marek Habersack 1e0d0e7c4c [corlib,crypto] RandomNumberGenerator implements IDisposable in 4.0 2011-01-25 15:49:24 +01:00
Marek Habersack f96a9873cc [system] SmtpClient implements IDisposable on 4.0 (a no-op for now) 2011-01-25 15:49:19 +01:00
Marek Habersack b10086345e [wcf] Install the System.Data.Services.Client properly. 2011-01-25 15:49:13 +01:00
Marek Safar 77a05371b4 Degrade wrong override member to virtual instead of non-virtual 2011-01-25 10:46:43 +00:00
Geoff Norton ff1caafd97 Add pfx to the mobile profile 2011-01-25 01:52:17 -05:00
Geoff Norton d1eb847ef2 Work around a full-aot issue for monotouch System.Json 2011-01-25 01:52:12 -05:00
Zoltan Varga 6e268ac849 Fix up CAS tests a bit. 2011-01-25 03:01:48 +01:00
Andrew Jorgensen 8f69b0e0e0 Add WebMatrix.Data to spec 2011-01-24 15:17:16 -07:00
Tomasz Kubacki d70c578fc4 [Mono.CSharp] Improve error reporting 2011-01-24 15:44:42 -05:00
Geoff Norton 7ee94c1ca3 Avoid leaking the vmmap allocated by the kernel for the thread_act_array_t 2011-01-24 12:07:24 -05:00
Geoff Norton 8db070aae1 Fix a mach port leak 2011-01-24 11:39:19 -05:00
Jérémie Laval bc326d8e73 Add unit test for Database 2011-01-24 15:06:00 +00:00
Jérémie Laval 7c3bd246b6 Add unit tests for DynamicRecord 2011-01-24 15:05:58 +00:00
Jérémie Laval 1f40d73cdf Just fixup comment 2011-01-24 15:05:58 +00:00
Jérémie Laval b364173319 Add GetLastInsertId 2011-01-24 15:05:55 +00:00
Jérémie Laval f1acca540b Foobar trigger connection 2011-01-24 15:05:54 +00:00
Jérémie Laval 98c4b8992d Add Close method 2011-01-24 15:05:53 +00:00
Jérémie Laval 591be8a33f Add ConnectionOpened event to Database 2011-01-24 15:05:53 +00:00
Jérémie Laval f5b9efc784 Fix up compilation of Database and DynamicRecord 2011-01-24 15:05:52 +00:00
Jérémie Laval d607d23767 Add Dispose calls to Database 2011-01-24 15:05:52 +00:00
Jérémie Laval 1b4eee0534 Add Database type 2011-01-24 15:05:51 +00:00
Jérémie Laval 784198d66a Complete base DynamicRecord API 2011-01-24 15:05:50 +00:00
Jérémie Laval 77908fc88a Stub DynamicRecord 2011-01-24 15:04:53 +00:00
Jérémie Laval 9bcbd52f03 Add WebMatrix.Data assembly skeleton 2011-01-24 15:01:20 +00:00
Jérémie Laval b57515aa5a Make sure a synchronous continuation get executed synchronously in all cases 2011-01-24 14:33:57 +00:00
Marek Habersack 2d2834e4bc [asp.net] Global.asax assembly must be passed as reference when compiling. BuildManager.GetType improvements.
When user has their own global application class (global.asax is present) the assembly produced from it must
be passed as reference to the compiler.
BuildManager.GetType now supports fully-qualified type names for 'typeName' and searches for the type in the
top-level assemblies, the global.asax assembly and in the assemblies specified in as references in web.config.

All of this fixes certain MVC3+Razor applications.
2011-01-24 15:30:53 +01:00
Marek Habersack a87db25252 [asp.net] Avoid passing duplicate assemblies on mcs command line. 2011-01-24 15:30:47 +01:00
Marek Safar 450b15885d [666476] Use correct parameter count when checking ambiguous params methods 2011-01-24 14:04:41 +00:00
Marek Safar 3fc9d42ca0 Use byte array as underlying storage for AttributeEncoder 2011-01-24 13:59:33 +00:00
Zoltan Varga e50fc47fd5 Dist finally_guard.cs. 2011-01-24 04:15:05 +01:00
Gonzalo Paniagua Javier 234a2d72e8 Fix Dispose() 2011-01-22 13:30:22 -05:00
Marek Habersack 38e5ecca9f [asp.net,routing] Fix for bug #651966. Regular expression constraints must be treated as absolute regexps. 2011-01-22 12:44:25 +01:00
Gonzalo Paniagua Javier 7dabffd212 [HttpListener] Fix incorrect 411 error
Don't send a 411 for unknown methods without content length.
	No need to assign input_stream until requested.

	Fixes bug #666251.
2011-01-21 23:53:51 -05:00
Zoltan Varga 9e14e62935 Fix an assert which happens when a call is made to Nullable.Unbox from gshared code in AOT. 2011-01-22 03:08:26 +01:00
Bassam Tabbara 54b00f3630 Fix for 666225 2011-01-21 21:00:49 -05:00
Miguel de Icaza 6e81152a98 [getline] Fix history search in the cmdline editor 2011-01-21 20:48:51 -05:00
Miguel de Icaza 6593ea7a5e [Mono.CSharp] Fix bug where overwriting variables cleared the wrong value
This fixes #641910
2011-01-21 20:19:38 -05:00
Miguel de Icaza 70feb6a2b3 [csharp] repl using statement fix + support for --fatal
Fixes #638585 which kept reporting the same error on the using statements over and over
Added support for the --fatal flag to the REPL
2011-01-21 19:56:41 -05:00
Zoltan Varga 93f8f61c8a Transition non perf-critical users of klass->has_finalize over to mono_class_has_finalizer (). 2011-01-21 22:32:00 +01:00
Zoltan Varga cef819966a Obsolete VirtualMachine.GetNextEvent () as it is impossible to determine when to resume after an event, since the debuggee suspends only once per event-set. 2011-01-21 21:54:31 +01:00
Zoltan Varga 8b52311dfd Initialize klass->has_finalizer lazily. This allows us to remove the find_method_in_metadata () optimization without a perf cost which is broken in the presence of overrides. Fixes #665769. 2011-01-21 21:54:12 +01:00
Andrew Jorgensen faac64a083 Oops, Microsoft.Web.Infrastructure, not System. 2011-01-21 12:54:13 -07:00
Andrew Jorgensen 0e29d1e39b add Microsoft.Web.Infrastructure 2011-01-21 10:44:36 -07:00
Sebastien Pouliot ef3bdc76c2 Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family
* System.Security.Cryptography/CryptoConfig.cs: Add OID for RIPEMD160
* System.Security.Cryptography/RSACryptoServiceProvider.cs: Update
GetHashNameFromOID to include SHA2-family OIDs. Remove historical
comments about 1.x FX behavior.

* Test/System.Security.Cryptography/CryptoConfigTest.cs: Add test cases
wrt RIPEMD160 OID
* Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs: Add
test case for SignHash with all FX-provided hash implementations (all
working except RIPEMD160). Remove some NET_2_0/NET_1_1 defines.
* Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs:
Remove hacks that were needed for running the tests under FX 1.x. Remove
some NET_2_0/NET_1_1 defines.
2011-01-21 08:39:32 -05:00
Zoltan Varga ec98a692a1 Add NET 4.0 Assembly.UnsafeLoadFrom () method. 2011-01-21 07:27:30 +01:00
Zoltan Varga a1681e5ee3 Fix the previous aot fix. 2011-01-21 05:58:29 +01:00
Miguel de Icaza 962fedd1e6 Do not build the Socket passing on Mobile systems 2011-01-20 22:50:08 -05:00
Atsushi Eno 5920237751 backport JavaScriptObjectDeserializer encoding detection fix. 2011-01-21 12:13:52 +09:00
Gonzalo Paniagua Javier 788535030b [System.Web] Razor works now (modulo DB) 2011-01-20 21:59:47 -05:00
Zoltan Varga 48f3edb3cd Add a test for infinite generic recursion + AOT. 2011-01-21 02:07:57 +01:00
Zoltan Varga e235e72884 Only add imt items whose is_equal flag is set to the array passed to the full-aot imt thunk. 2011-01-21 02:06:47 +01:00
Zoltan Varga 3a1ae308b8 Avoid emitting .note.GNU-stack on arm. 2011-01-21 01:52:51 +01:00
Zoltan Varga f1c1e02c38 Detect inifinite generic recursion differently in the AOT compiler. 2011-01-21 01:50:35 +01:00
Marek Habersack 43937146ac [asp.net] Don't throw NREX when a cache item to be removed is null 2011-01-20 23:39:12 +01:00
Miguel de Icaza c618dfe519 [sockets] Implement DuplicateAndClose and Socket (SocketInformation) constructor for in-process socket passing (AppDomains) 2011-01-20 16:52:49 -05:00
Andrew Jorgensen 42afbbaaa4 remove conflict marker 2011-01-20 11:24:24 -07:00
Jb Evain 730898592e [bug] Prevent a GetMethodBody call on a dynamic method. Fixes 665788 2011-01-20 16:45:43 +01:00
Marek Habersack 0a63027390 [asp.net,mvc] Make unobtrustive request validation in MVC v3 possible
Validation is enabled early in the pipeline during request. ValidationUtility makes sure that validation is indeed enabled and
replaces the default form and query string collections with a lazy version which will validate values only when an existing key
is found and requested.
2011-01-20 14:38:46 +01:00
Marek Habersack 61aa41abb7 [asp.net] Do not throw NREX when firstError is null in ErrorMessage getter 2011-01-20 14:38:37 +01:00
Marek Habersack 66818bb2b6 [asp.net] ValidationUtility implementation 2011-01-20 14:38:21 +01:00
Marek Habersack 1d180c57e1 [asp.net] Introduced unvalidated versions of Form and QueryString properties for MVC3 2011-01-20 14:38:12 +01:00
Marek Habersack 5119b6ef08 [asp.net] Implemented dynamic HTTP module registration 2011-01-20 14:38:02 +01:00
Marek Habersack 14698a4fbf [asp.net] Implemented BuildManager.GetObjectFactory
This method is not used by Mono internally but is called by MVC v3.
2011-01-20 14:37:53 +01:00
Marek Habersack bbca7f5660 [asp.net] Added internal property InputValidationEnabled to report whether the user enabled validation for current request. 2011-01-20 14:37:42 +01:00
Marek Habersack a0c987053d [asp.net] System.Web and Microsoft.Web.Infrastructure are now friends 2011-01-20 14:37:33 +01:00
Marek Habersack 61f6558eae [asp.net] Added the Microsoft.Web.Infrastructure assembly 2011-01-20 14:37:17 +01:00
Marek Safar ba139553af [665333] Encode Length of Public Key correctly 2011-01-20 08:36:02 +00:00
Zoltan Varga 15ead88bf2 Properly align the stack in the arm generic trampoline. 2011-01-20 05:36:20 +01:00
Zoltan Varga 626711d3ac Add a TID field to ThreadMirror which returns the system thread id. 2011-01-20 02:14:22 +01:00
Andrew Jorgensen 51d92f3a6a Dist more files needed by MSVC build 2011-01-19 15:43:12 -07:00
Rodrigo Kumpera 3914fd479a Document precise marking 2011-01-19 15:02:25 +01:00
Rodrigo Kumpera a3d0d6916e Properly clear weak refs that don't track resurrection.
* sgen-gc.c (finish_gray_stack): We must clear
	weak refs that don't track resurrection before
	processing finalizable objects otherwise we'll
	copy/mark them and the weak ref won't be cleared
	until after finalization.

	Fixes #657408
2011-01-19 15:02:09 +01:00
Gonzalo Paniagua Javier 347ad09426 Happy new year. 2011-01-18 22:44:15 -05:00
Zoltan Varga 744c3e2c5b Make the stacks of aot image non-executable. 2011-01-18 18:12:47 +01:00
Marek Safar ca11993157 Checking skd path for is not enough, add check for mscorlib as well 2011-01-18 17:11:07 +00:00
Marek Safar 132f745176 Fallback to corlib location when sdk path cannot be found 2011-01-18 17:10:46 +00:00
Zoltan Varga 001ea99047 Disable some of the FastCopy fast paths since they are racy. 2011-01-18 17:17:42 +01:00
Zoltan Varga 74d5f80e4a Allow only primitive types/enums in RuntimeHelpers.InitializeArray (). 2011-01-18 16:42:22 +01:00
Marek Safar 8e600e2290 Remove devirtualization for Type members 2011-01-18 13:32:34 +00:00
Zoltan Varga fe6c36df0a Make runtime invoke wrappers use cdecl cconv on windows. 2011-01-17 23:18:17 +01:00
Zoltan Varga fe3cd893f7 OP_LCOMPARE_IM has type 'L', not 'I'. Fixes #664630.
This is the same as 6c02c15153, but only for ia64, to avoid destabilizing the
branch.
2011-01-17 22:46:43 +01:00
Rodrigo Kumpera 7dfbfce2c4 Don't check for brokeness when verifying contraints.
* verify.c (is_valid_generic_instantiation): Don't
	check if any argument is broken during constraint check
	as an instance should be valid, but not realizable, even
	if it has broken arguments.

	Fixes one of the issues with #664612
2011-01-17 20:05:16 +01:00
Marek Safar fd66549c35 Add new mcs -sdk option 2011-01-17 17:22:12 +00:00
Zoltan Varga 61b183faa3 Avoid another case of infinite recursion in AOT. 2011-01-17 16:15:10 +01:00
Jb Evain 029c168ffb Fix pdb2mdb when a pdb has a method with no seq points.
Patch by Thad Thompson <[email protected]>
2011-01-17 15:55:11 +01:00
Marek Safar 2ec8c50752 Update to the latest mcs version 2011-01-17 14:15:43 +00:00
Marek Safar 322bc4c9c2 Update IKVM.Reflection 2011-01-17 14:13:26 +00:00
Marek Habersack 8341dc023d [asp.net] (4.0) Validate the form data in Form getter 2011-01-17 14:03:09 +01:00
Zoltan Varga 52ac70bd71 Fix the previous marshalling change so it only applies to chars, not structures which contain char fields. 2011-01-17 00:09:39 +01:00
Zoltan Varga 3229ba977b Pass the string encoding to emit_struct_conv () so marshalling of char arrays works on big-ending machines like s390/ppc64. 2011-01-16 21:11:45 +01:00
Zoltan Varga 02c5d6df68 Make OP_CHECK_THIS do a byte load on arm, since the source argument might point to a vtype if a vtype method is inlined. 2011-01-14 22:29:29 +01:00
Marek Habersack 10ed451a10 [asp.net] Make StopRoutingHandler actually stop the routing instead of throwing an exception
Patch from Damir Simunic <[email protected]>, thanks!
2011-01-14 21:37:18 +01:00
Ankit Jain 31458593f0 [xbuild] Use the backing field directly to avoid evaluating again.
* Microsoft.Build.BuildEngine.Project.cs (InitializeProperties): Use
evaluatedProperties field instead of EvaluatedProperties property,
to avoid invoking a Reevaluate, since it is already in progress.
2011-01-14 04:11:23 +05:30
Ankit Jain 4a914ca1bf [xbuild] Fix bug #664349 .
* Microsoft.Build.BuildEngine/Project.cs (BuildInternal): Set needToReevaluate to
false, when reevaluating.
2011-01-14 04:11:18 +05:30
Ankit Jain 66a2165e37 [xbuild] Add $(TargetDir) property.
Add $(TargetDir) and set TargetPath only if its not set already.
2011-01-14 04:11:12 +05:30
Ankit Jain 035f96e4f8 [xbuild] Clear the built targets cache on project unload.
Remove the entries for a project from the built targets cache, on
project unload.

* Microsoft.Build.BuildEngine/Engine.cs (ClearBuiltTargetsForProject): New.
* Microsoft.Build.BuildEngine/Project.cs (BuiltTargetKeys): Remove.
(RemoveBuiltTargets): Use Engine.ClearBuiltTargetsForProject .
* Microsoft.Build.BuildEngine/Target.cs: Track api changes.
*
2011-01-14 04:11:00 +05:30
Ankit Jain 88b0d19f8b [xbuild] Copy metadata from Project items to target outputs.
Copy metadata from Project items to the corresponding target
outputs in MSBuild task.

Fix the corresponding test also.
2011-01-14 04:10:46 +05:30
Ankit Jain ca46b25e6a [xbuild] Ensure trailing slash on some properties.
Ensure trailing slash on $(BaseIntermediateOutputPath) and
$(IntermediateOutputPath).
2011-01-14 04:10:37 +05:30
Ankit Jain 6140b9ca09 [xbuild] ConsoleLogger - Correctly indent multi-line messages.
Split and correctly indent multi-line messages in ConsoleLogger.
2011-01-14 04:10:29 +05:30
Geoff Norton 5ed112e660 Fix the win32 build 2011-01-13 12:38:44 -07:00
Geoff Norton 318ddb4924 Fix win32 build 2011-01-13 12:38:34 -07:00
Andrew Jorgensen b073713bfa Add vcxproj files for msbuild 2011-01-13 12:37:39 -07:00
Marek Habersack 4085f52f2c [data-annotations] Added some missing 4.0 members 2011-01-13 20:23:36 +01:00
Marek Habersack 71d78c2ceb [asp.net] Implemented the 4.0 type, FileLevelMasterPageControlBuilder 2011-01-13 20:23:26 +01:00
Zoltan Varga 7d25fb2f5e Add null check to stelem_ref_check () jit icall. Fixes #664297. 2011-01-13 18:42:52 +01:00
Jérémie Laval 6418ad41d2 Make use of the wait changes in the internal TaskScheduler -> IScheduler proxy. 2011-01-13 17:19:13 +00:00
Jérémie Laval 6a8c4a6220 Rework internal wait mechanism in thread workers participation code 2011-01-13 17:18:58 +00:00
Andrew Jorgensen 97d18f0c32 2.10 2011-01-13 09:50:27 -07:00
Jb Evain 92b8771128 Remove custom ResolutionException now that Cecil is providing one 2011-01-13 16:09:42 +01:00
Jb Evain 4689cde2f6 Update cecil from upstream 2011-01-13 16:09:17 +01:00
Jérémie Laval 7132ff6bc1 Fix continuation not being scheduled because of too early and too greedy disposing. 2011-01-13 14:40:02 +00:00
Rodrigo Kumpera e159ffb746 Fix 2.0 remapping of System.Transations to 2.0 and not 3.5. 2011-01-13 11:40:42 +01:00
Rodrigo Kumpera 882fad8a8e Fix array assignability to one of its generic interfaces.
* verify.c: mono_class_is_assignable_from can't handle
	IList<GTD<T>> x GTD[] since GTD[] won't have the right
	iface slots set. This isn't a problem for the runtime
	since GTD[] will never happen as it's an unrealizable type.

	Fixes #663815
2011-01-12 18:32:48 +01:00
Rodrigo Kumpera 6c6008506f Handle more cases of gtd encoded as ginst over itself.
* verify.c (mono_type_is_valid_type_in_context_full):
	The trick of encoding the GTD as an instantiation over its
	own arguments is also valid for component types such as GTD[]
	GTD[,] and Foo<GTD>.
2011-01-12 18:32:35 +01:00
Atsushi Eno 403346372f Fix cygwin build. 2011-01-12 20:05:08 +09:00
Marek Safar 4ae2b5037d Update copyright years 2011-01-12 09:28:03 +00:00
Marek Safar a67eb7f224 Use base type parameters to extract params modifier of virtual method 2011-01-12 09:27:39 +00:00
Marek Safar d9619cbfa9 Install new ikvm based C# compiler as mcs 2011-01-12 09:26:46 +00:00
Marek Safar c098d0d842 [662222] Import dynamic attribute using attribute type reader 2011-01-12 09:26:20 +00:00
Christian Hergert b2823262ba Fix broken g_int_hash/g_int_equal semantics
Both g_int_hash and g_int_equal used the semantics that an
integer is stored directly in the pointer. This is incorrect
as the pointer actually points to a location containing an
integer.

For those wanting the previous (incorrect) implementation,
they should look at g_direct_hash and g_direct_equal.
2011-01-11 19:46:05 -05:00
Marek Habersack 42d8b111ec [asp.net] Fix for bug #662918. Do not create the HtmlTitle child control for HtmlHead if <title> wasn't used in the page code. 2011-01-11 23:23:58 +01:00
Zoltan Varga cfa37dc27d Disable system AOT when using the loaded llvm, as it seems to cause crashes on the x86 buildbot. 2011-01-11 20:56:15 +01:00
Zoltan Varga 2be48ab1fa Dump the AOT log upon a failure. 2011-01-11 20:44:22 +01:00
Geoff Norton cd6a73c07f Fix AOT on OSX/x86 2011-01-11 10:34:03 -05:00
Geoff Norton 4264916df5 Fixed loadedllvm on OSX
The default build of libmono-llvm.dylib includes libmono and all its dependencies,
but our statically compiled mono binary does as well.  OSX can actually load both
into its process space, and get confused as to which symbol it should call, leading
to non-deterministic crashes.  We'll remove all the mono dependencies, and use
-undefined suppress to mitigate this on OSX.
2011-01-11 00:55:52 -05:00
Jonathan Pryor 32b1aa404a [monodoc/osx] Look for docs in additional directories.
Fixes #663182.

OSX allows multiple framework versions to be installed side-by-side,
and the current version is available through
/Library/Frameworks/Mono.framework/Versions/Current.

However, documentation installed into /L/F/M.f/V/C/lib/monodoc/sources
is specific for that Mono version; upgrade Mono.framework, and the
documentation is "lost," not visible to the newly installed version.

To fix this, we're creating an *unversioned* directory to contain
documentation, which will thus be persistent across Mono.framework
upgrades: /Library/Frameworks/Mono.framework/External/monodoc

This will allow Mono.framework to be upgraded without "losing" the
documentation visible within monodoc.
2011-01-10 21:09:26 -05:00
Zoltan Varga 1302702ad5 Fix a regression introduced by db4299a1. 2011-01-11 01:12:47 +01:00
Ankit Jain 3fb44e93e2 [xbuild] Update man page, new search paths for extensions and .pc files. 2011-01-11 05:19:12 +05:30
1934 changed files with 115738 additions and 14974 deletions

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@
Mono is made up of many pieces of code, all of them open source, but
different pieces of Mono use different licensing terms.
For comments, corrections and updates, please contact mono@novell.com
For comments, corrections and updates, please contact mono@xamarin.com
* Dual Licensing
@@ -22,7 +22,7 @@ For comments, corrections and updates, please contact [email protected]
Contributions for other modules should be under the same license
terms as the rest of the module, or under MIT X11 terms.
If you need further information, please contact mono@novell.com
If you need further information, please contact mono@xamarin.com
* The Modules
@@ -45,7 +45,7 @@ For comments, corrections and updates, please contact [email protected]
on the distribution and access to the code, a phone platform
that prevents end users from upgrading Moonlight).
Contact mono@novell.com for details on obtaining the Mono
Contact mono@xamarin.com for details on obtaining the Mono
runtime under other terms.
** mono/eglib: Mono's X11 glib implementation
+10 -1
View File
@@ -19,7 +19,16 @@ DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man
endif
endif
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs autogen.sh
EXTRA_DIST= \
LICENSE \
autogen.sh \
build-mingw32.sh \
mkinstalldirs \
mono-uninstalled.pc.in \
nls.m4 \
po.m4 \
progtest.m4 \
winconfig.h
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
+104 -41
View File
@@ -2,7 +2,7 @@
CURDIR="`pwd`"
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
EXTRA_CROSS_DIR=
INSTALL_DESTDIR="$CURDIR/mono-win32"
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
@@ -17,62 +17,119 @@ function cleanup ()
fi
}
function check_pkg_config_dir ()
{
local DIR="$1"
local DIR_PREFIX="$2"
if [ ! -d "$DIR" ]; then
return
fi
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$DIR"/*.pc; do
if [ -f $pc ]; then
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$DIR_PREFIX;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
fi;
done
if [ -z "$CROSS_PKG_CONFIG_DIR" ]; then
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
}
function show_build_info ()
{
cat <<EOF
Installation prefix: $MONO_PREFIX
CPPFLAGS: ${CPPFLAGS:=not set}
LDFLAGS: ${LDFLAGS:=not set}
MONO_PATH: ${MONO_PATH:=not set}
EOF
}
function setup ()
{
local pcname
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/bin"
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/lib/pkgconfig
PATH=$CROSS_BIN_DIR:$PATH
export PATH
if [ -d ./.git/svn ]; then
SVN_INFO='git svn info'
elif [ -d ./.svn ]; then
SVN_INFO='svn info'
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'|tr -d '\('`
if [ -d ./.git ]; then
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2|tr -d '\)'|tr -d '\('`"
MONO_RELEASE="$MONO_VERSION-$MONO_GIT_BRANCH-$MONO_GIT_COMMIT"
else
SVN_INFO=""
MONO_RELEASE="$MONO_VERSION"
fi
if [ -n "$SVN_INFO" ]; then
MONO_SVN_REVISION=`$SVN_INFO | grep Revision | sed 's/.*: //'`
MONO_BRANCH=`$SVN_INFO | grep URL | sed -e 's;.*source/;;g' -e 's;/mono;;g'`
else
MONO_SVN_REVISION="rUNKNOWN"
MONO_BRANCH="tarball"
fi
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
MONO_RELEASE="$MONO_VERSION-$MONO_BRANCH-r$MONO_SVN_REVISION"
MONO_PREFIX="/mono-$MONO_RELEASE"
MONO_PREFIX="$MONO_PREFIX/mono-$MONO_RELEASE"
NOCONFIGURE=yes
export NOCONFIGURE
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
done
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
check_pkg_config_dir "$CROSS_DIR/lib/pkgconfig" "$CROSS_DIR"
echo Mono Win32 installation prefix: $MONO_PREFIX
if [ -n "$EXTRA_CROSS_DIR" -a -d "$EXTRA_CROSS_DIR" ]; then
if [ -d "$EXTRA_CROSS_DIR/bin" ]; then
PATH="$EXTRA_CROSS_DIR/bin":$PATH
fi
check_pkg_config_dir "$EXTRA_CROSS_DIR/lib/pkgconfig" "$EXTRA_CROSS_DIR"
if [ -d "$EXTRA_CROSS_DIR/include" ]; then
if [ -z "$CPPFLAGS" ]; then
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\""
else
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\" $CFLAGS"
fi
fi
if [ -d "$EXTRA_CROSS_DIR/lib" ]; then
if [ -z "$LDFLAGS" ]; then
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\""
else
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\" $LDFLAGS"
fi
fi
if [ -d "$EXTRA_CROSS_DIR/share/aclocal" ]; then
if [ -z "$MONO_PATH" ]; then
MONO_PATH="\"$EXTRA_CROSS_DIR\""
else
MONO_PATH="\"$EXTRA_CROSS_DIR\":$MONO_PATH"
fi
fi
fi
export PATH MONO_PATH CPPFLAGS
show_build_info
}
function build ()
{
if [ -f ./Makefile ]; then
make distclean
fi
if [ -d ./autom4te.cache ]; then
rm -rf ./autom4te.cache
fi
if [ -f ./config.status ]; then
for f in `find -name config.status -type f`; do
rm $f
done
fi
./autogen.sh
BUILD="`./config.guess`"
if [ -f ./Makefile ]; then
make distclean
rm -rf autom4te.cache
fi
if [ ! -d "$CURDIR/build-cross-windows" ]; then
mkdir "$CURDIR/build-cross-windows"
fi
@@ -105,27 +162,28 @@ function doinstall ()
cd "$CURDIR/build-cross-windows"
make DESTDIR="$INSTALL_DESTDIR" USE_BATCH_FILES=yes install
cd "$CURDIR/../mcs/mcs"
if test -d $CURDIR/mcs; then
mcsdir=$CURDIR/mcs
else
mcsdir=$CURDIR/../mcs
fi
cd "$mcsdir/mcs"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "mcs profile $p installation failed"
done
cd "$CURDIR/../mcs/class"
cd "$mcsdir/class"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "class library profile $p installation failed"
done
cd "$CURDIR/../mcs/tools"
cd "$mcsdir/tools"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "tools profile $p installation failed"
done
cd "$CURDIR/mono-win32"
for dll in $COPY_DLLS; do
cp -ap "$CROSS_DLL_DIR"/$dll "$INSTALL_DESTDIR/$MONO_PREFIX/bin"
done
rm -f "$CURDIR/mono-win32-$MONO_RELEASE".zip
zip -9r "$CURDIR/mono-win32-$MONO_RELEASE".zip .
@@ -139,7 +197,9 @@ Usage: build-mingw32.sh [OPTIONS]
where OPTIONS are:
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
-e DIR Sets the location of directory where additional cross develoment packages are installed [${EXTRA_CROSS_DIR:=none}]
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
-p PREFIX Prefix at which Mono is to be installed. Build will append the 'mono-X.Y' string to that path
EOF
exit 1
@@ -149,10 +209,12 @@ trap cleanup 0
pushd . > /dev/null
while getopts "d:m:h" opt; do
while getopts "d:m:e:p:" opt; do
case "$opt" in
d) CROSS_DIR="$OPTARG" ;;
m) MINGW="$OPTARG" ;;
e) EXTRA_CROSS_DIR="$OPTARG" ;;
p) MONO_PREFIX="$OPTARG" ;;
*) usage ;;
esac
done
@@ -160,5 +222,6 @@ done
setup
build
doinstall
show_build_info
popd > /dev/null
+161 -22
View File
@@ -6,7 +6,7 @@ AC_CANONICAL_SYSTEM
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,2.9)
AM_INIT_AUTOMAKE(mono,2.10.10)
AM_MAINTAINER_MODE
API_VER=2.0
@@ -78,6 +78,7 @@ esac
host_win32=no
target_win32=no
platform_android=no
case "$host" in
*-mingw*|*-*-cygwin*)
AC_DEFINE(HOST_WIN32,1,[Host Platform is Win32])
@@ -172,6 +173,41 @@ case "$host" in
with_sigaltstack=no
use_sigposix=yes
;;
*-*-linux-android*)
host_win32=no
platform_android=yes
AC_DEFINE(PLATFORM_ANDROID,1,[Targeting the Android platform])
AC_DEFINE(TARGET_ANDROID,1,[Targeting the Android platform])
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libdl="-ldl"
libgc_threads=pthreads
use_sigposix=yes
with_tls=pthread
with_sigaltstack=no
with_static_mono=no
# Android doesn't support boehm, as it's missing <link.h>
support_boehm=no
with_gc=sgen
# isinf(3) requires -lm; see isinf check below
LDFLAGS="$LDFLAGS -lm"
# Bionic's <pthread.h> sets PTHREAD_STACK_MIN=2*PAGE_SIZE; doesn't define
# PAGE_SIZE; breaks mono/io-layer/collection.c
# Bionic doesn't provide S_IWRITE; breaks io-layer/io.c
CFLAGS="$CFLAGS -DPAGE_SIZE=4096 -DS_IWRITE=S_IWUSR"
CXXFLAGS="$CXXFLAGS -DPAGE_SIZE=4096 -DS_IWRITE=S_IWUSR"
# to bypass the underscore linker check, can't work when cross-compiling
mono_cv_uscore=yes
;;
*-*-linux*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
@@ -248,12 +284,12 @@ case "$host" in
if test "x$cross_compiling" = "xyes"; then
has_broken_apple_cpp=yes
fi
dnl Snow Leopard is horribly broken -- it reports itself as i386-apple-darwin10.0.0, but
dnl Snow Leopard is horribly broken -- it reports itself as i386-apple-darwin*, but
dnl its gcc defaults to 64-bit mode. They have also deprecated the usage of ucontext
dnl we need to set some flags to build our 32-bit binaries on 10.6 properly
case "$host" in
dnl Snow Leopard config.guess reports as this
i*86-*-darwin10*)
dnl Snow Leopard and newer config.guess reports as this
i*86-*-darwin*)
BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
CPPFLAGS="$CPPFLAGS $BROKEN_DARWIN_FLAGS"
CFLAGS="$CFLAGS $BROKEN_DARWIN_FLAGS"
@@ -294,6 +330,7 @@ AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes)
AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
@@ -443,6 +480,20 @@ if test x"$GCC" = xyes; then
AC_MSG_RESULT(no)
CFLAGS=$ORIG_CFLAGS
])
ORIG_CFLAGS=$CFLAGS
# Check for the normal version, since gcc ignores unknown -Wno options
CFLAGS="$CFLAGS -Wunused-but-set-variable"
AC_MSG_CHECKING(for -Wno-unused-but-set-variable option to gcc)
AC_TRY_COMPILE([], [
void main () { }
], [
AC_MSG_RESULT(yes)
CFLAGS="$ORIG_CFLAGS -Wno-unused-but-set-variable"
], [
AC_MSG_RESULT(no)
CFLAGS=$ORIG_CFLAGS
])
else
# The Sun Forte compiler complains about inline functions that access static variables
# so disable all inlining.
@@ -657,7 +708,7 @@ DISABLED_FEATURES=none
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, normalization, assembly_remapping.],
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, normalization, assembly_remapping, shared_perfcounters.],
[
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
eval "mono_feature_disable_$feature='yes'"
@@ -782,6 +833,11 @@ if test "x$mono_feature_disable_assembly_remapping" = "xyes"; then
AC_MSG_NOTICE([Disabled Assembly remapping.])
fi
if test "x$mono_feature_disable_shared_perfcounters" = "xyes"; then
AC_DEFINE(DISABLE_SHARED_PERFCOUNTERS, 1, [Disable shared perfcounters.])
AC_MSG_NOTICE([Disabled Shared perfcounters.])
fi
AC_MSG_CHECKING(for visibility __attribute__)
AC_TRY_COMPILE([], [
void __attribute__ ((visibility ("hidden"))) doit (void) {}
@@ -813,6 +869,9 @@ if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
fi
AC_ARG_ENABLE(boehm, [ --disable-boehm Disable the Boehm GC.], support_boehm=$enableval,support_boehm=${support_boehm:-yes})
AM_CONDITIONAL(SUPPORT_BOEHM, test x$support_boehm = xyes)
dnl
dnl Boehm GC configuration
dnl
@@ -851,6 +910,14 @@ case "x$gc" in
if test "x$found_gc_enable" = "xyes"; then
BOEHM_DEFINES="-DHAVE_GC_ENABLE $BOEHM_DEFINES"
fi
# check whether we need to explicitly allow
# thread registering
AC_CHECK_LIB(gc, GC_allow_register_threads, found_allow_register_threads="yes",,$libdl)
if test "x$found_allow_register_threads" = "xyes"; then
AC_DEFINE(HAVE_GC_ALLOW_REGISTER_THREADS, 1, [GC requires thread registration])
fi
;;
xincluded)
@@ -1032,19 +1099,18 @@ if test x$target_win32 = xno; then
AC_DEFUN([LARGE_FILES], [
large_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $1"
AC_TRY_RUN([
AC_TRY_COMPILE([
#include <sys/types.h>
#include <limits.h>
], [
/* Lifted this compile time assert method from: http://www.jaggersoft.com/pubs/CVu11_3.html */
#define COMPILE_TIME_ASSERT(pred) \
switch(0){case 0:case pred:;}
#define BIG_OFF_T (((off_t)1<<62)-1+((off_t)1<<62))
int main(void) {
int big_off_t=((BIG_OFF_T%2147483629==721) &&
(BIG_OFF_T%2147483647==1));
if(big_off_t) {
exit(0);
} else {
exit(1);
}
int main(void)
{
COMPILE_TIME_ASSERT(sizeof(off_t) * CHAR_BIT == 64);
return 0;
}
], [
AC_MSG_RESULT(ok)
@@ -1053,7 +1119,7 @@ if test x$target_win32 = xno; then
large_offt=yes
], [
AC_MSG_RESULT(no)
], "")
])
CPPFLAGS=$large_CPPFLAGS
])
@@ -1552,6 +1618,12 @@ if test x$target_win32 = xno; then
AC_DEFINE(HAVE_EPOLL, 1, [epoll supported])
fi
havekqueue=no
AC_CHECK_FUNCS(kqueue, , AC_MSG_CHECKING(for kqueue in sys/event.h)
AC_TRY_LINK([#include <sys/event.h>],
[ kqueue(); ],
AC_DEFINE(HAVE_KQUEUE, 1, [Have kqueue]) AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)))
dnl ******************************
dnl *** Checks for SIOCGIFCONF ***
dnl ******************************
@@ -1746,6 +1818,11 @@ if test x$target_win32 = xno; then
dnl * on xp+
AC_DEFINE(HAVE_GETPROCESSID, 1, [Define if GetProcessId is available])
else
dnl *********************************
dnl *** Checks for Windows compilation ***
dnl *********************************
AC_CHECK_HEADERS(winternl.h)
jdk_headers_found=no
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
@@ -2027,9 +2104,13 @@ if test "x$enable_llvm" = "xyes"; then
llvm_version=`$LLVM_CONFIG --version`
major_version=`echo $llvm_version | cut -c 1`
minor_version=`echo $llvm_version | cut -c 3`
AC_MSG_CHECKING(LLVM version)
AC_MSG_RESULT($llvm_version)
if echo $llvm_version | grep -q 'mono'; then
AC_DEFINE(LLVM_MONO_BRANCH, 1, [Whenever we are using the mono branch of LLVM])
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MONO_BRANCH"
else
AC_MSG_ERROR([Compiling with stock LLVM is not supported, please use the Mono LLVM repo at https://github.com/mono/llvm, with the GIT branch which matches this version of mono, i.e. 'mono-2-10' for Mono 2.10.])
fi
AC_DEFINE_UNQUOTED(LLVM_MAJOR_VERSION, $major_version, [Major version of LLVM libraries])
@@ -2249,8 +2330,10 @@ case "$host" in
arch_target=arm;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -DARM_FPU_NONE=1"
CPPFLAGS="$CPPFLAGS -DARM_FPU_VFP=1 -D__ARM_EABI__ -DHAVE_ARMV6=1"
jit_wanted=true
# libgc's gc_locks.h depends on this
NESTED_LIBGC_FLAGS="$NESTED_LIBGC_FLAGS -DHAVE_ARMV6"
sgen_supported=true
;;
arm*-linux*)
@@ -2283,12 +2366,12 @@ case "$host" in
esac
if test "x$host" != "x$target"; then
AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
case "$target" in
powerpc64-ps3-linux-gnu)
TARGET=POWERPC64
arch_target=powerpc64
AC_DEFINE(TARGET_PS3, 1, [...])
AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
# It would be better to just use TARGET_POWERPC64, but lots of code already
# uses this define
AC_DEFINE(__mono_ppc64__, 1, [...])
@@ -2301,7 +2384,6 @@ if test "x$host" != "x$target"; then
TARGET=POWERPC64
arch_target=powerpc64
AC_DEFINE(TARGET_XBOX360, 1, [...])
AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
# It would be better to just use TARGET_POWERPC64, but lots of code already
# uses this define
sizeof_register=8
@@ -2311,12 +2393,49 @@ if test "x$host" != "x$target"; then
TARGET=AMD64
arch_target=amd64
AC_DEFINE(TARGET_AMD64, 1, [...])
AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
AC_DEFINE(__mono_ilp32__, 1, [64 bit mode with 4 byte longs and pointers])
sizeof_register=8
;;
armv7l-unknown-linux-gnueabi*)
# TEGRA
TARGET=ARM;
arch_target=arm;
AC_DEFINE(TARGET_ARM, 1, [...])
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -DARM_FPU_VFP=1 -D__ARM_EABI__"
jit_wanted=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
;;
armv5tel-unknown-linux-gnueabi*)
TARGET=ARM;
arch_target=arm;
AC_DEFINE(TARGET_ARM, 1, [...])
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
jit_wanted=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
;;
armv5-*-linux-androideabi*)
TARGET=ARM;
arch_target=arm;
AC_DEFINE(TARGET_ARM, 1, [...])
AC_DEFINE(TARGET_ANDROID, 1, [...])
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__ -DARM_FPU_NONE=1"
jit_wanted=true
# Can't use tls, since it depends on the runtime detection of tls offset
# in mono-compiler.h
with_tls=pthread
;;
*)
AC_MSG_WARN([Cross compiling is only supported for targets matching 'powerpc64-{ps3,xbox360}-linux-gnu'])
AC_MSG_ERROR([Cross compiling is not supported for target $target])
esac
fi
@@ -2513,6 +2632,9 @@ if test "x$with_moonlight" != "xno"; then
mono_debugger_supported=no
fi
# mdb support for sgen is broken, disable it until further notice.
mono_debugger_supported=no
AC_MSG_CHECKING(if the Mono Debugger is supported on this platform)
if test "x$mono_debugger_supported" = "xyes"; then
BOEHM_DEFINES="$BOEHM_DEFINES -DMONO_DEBUGGER_SUPPORTED"
@@ -2548,6 +2670,18 @@ if test ${TARGET} = ARM && test x$cross_compiling = xno && test x$enable_mcs_bui
AC_MSG_RESULT($fpu)
CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu=1"
unset fpu
AC_MSG_CHECKING(for ARMV6)
AC_TRY_RUN([
int main () { __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory"); return 0; }
], armv6=yes, armv6=no)
AC_MSG_RESULT($armv6)
if test ${armv6} = yes; then
AC_DEFINE(HAVE_ARMV6, 1, "Host supports ARMV6 instructions")
# libgc's gc_locks.h depends on this
NESTED_LIBGC_FLAGS="$NESTED_LIBGC_FLAGS -DHAVE_ARMV6"
fi
fi
if test ${TARGET} = unknown; then
@@ -2964,6 +3098,11 @@ fi
enable_system_aot=yes
fi
if test "x$enable_loadedllvm" = "xyes"; then
# This seems to fail on the x86 buildbots
enable_system_aot=no
fi
if test x$host_win32 = xno -a x$platform_darwin != xyes -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
fi
+2
View File
@@ -3,3 +3,5 @@
/config
/.cvsignore
/*.pc
/gdb/mono-sgen-gdb.py
/mono-sgen-gdb.py
+8 -2
View File
@@ -21,8 +21,10 @@ pkgconfigdir = $(libdir)/pkgconfig
if SUPPORT_SGEN
SGENPCFILE=monosgen-2.pc
SGENGDBFILE=mono-sgen-gdb.py
else
SGENPCFILE=
SGENGDBFILE=
endif
if JIT_SUPPORTED
@@ -38,11 +40,15 @@ pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc mon
endif
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc monosgen-2.pc mono-sgen-gdb.py
mono_DATA = config \
browscap.ini
gdbdir = $(bindir)
gdb_DATA = gdb/mono-gdb.py
mono-sgen-gdb.py: gdb/mono-gdb.py
cp $< $@
gdb_DATA = gdb/mono-gdb.py $(SGENGDBFILE)
+3
View File
@@ -17,6 +17,7 @@
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
<dllmap dll="i:kernel32.dll">
@@ -25,4 +26,6 @@
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus@libsuffix@" />
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" />
</configuration>
+2
View File
@@ -288,6 +288,8 @@ def lookup_pretty_printer(val):
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoString *":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
+4
View File
@@ -84,6 +84,10 @@
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
+4
View File
@@ -98,6 +98,10 @@
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+38 -11
View File
@@ -40,23 +40,35 @@ AM_CONDITIONAL(CROSS_COMPILING, [test x$cross_compiling = xyes])
AC_C_BIGENDIAN([ORDER=G_BIG_ENDIAN],[ORDER=G_LITTLE_ENDIAN])
platform_darwin=no
platform_android=no
case $host in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
PATHSEP='\\'
SEARCHSEP=';'
OS="WIN32"
PIDTYPE='void *'
;;
*-*darwin*)
platform_darwin=yes
PATHSEP='/'
SEARCHSEP=':'
OS="UNIX"
PIDTYPE='int'
;;
*-*-linux-android*)
platform_android=yes
AC_DEFINE(PLATFORM_ANDROID,1,[Targeting the Android platform])
PATHSEP='/'
SEARCHSEP=':'
OS="UNIX"
PIDTYPE='int'
;;
*)
PATHSEP='/'
SEARCHSEP=':'
OS="UNIX"
PIDTYPE='int'
;;
esac
@@ -84,12 +96,16 @@ AC_SUBST(CFLAGS)
AC_SUBST(PATHSEP)
AC_SUBST(SEARCHSEP)
AC_SUBST(OS)
AC_SUBST(PIDTYPE)
AM_CONDITIONAL(HOST_WIN32, test x$OS = xWIN32)
AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_FUNCS(strndup strlcpy getpwuid_r strtok_r rewinddir vasprintf)
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv")
@@ -126,20 +142,11 @@ if test "x$have_iso_varargs" = "xyes"; then
fi
AC_SUBST(G_HAVE_ISO_VARARGS)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
AC_SUBST(HAVE_ALLOCA_H)
if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
GPOINTER_TO_INT="((gint)(long) (ptr))"
GPOINTER_TO_UINT="((guint)(long) (ptr))"
GINT_TO_POINTER="((gpointer)(glong) (v))"
GUINT_TO_POINTER="((gpointer)(gulong) (v))"
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
else
if test $ac_cv_sizeof_void_p = $ac_cv_sizeof_int; then
GPOINTER_TO_INT="((gint) (ptr))"
GPOINTER_TO_UINT="((guint) (ptr))"
GINT_TO_POINTER="((gpointer) (v))"
@@ -148,6 +155,26 @@ else
GSIZE_FORMAT='"u"'
G_GUINT64_FORMAT='"llu"'
G_GINT64_FORMAT='"lld"'
elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long; then
GPOINTER_TO_INT="((gint)(long) (ptr))"
GPOINTER_TO_UINT="((guint)(long) (ptr))"
GINT_TO_POINTER="((gpointer)(glong) (v))"
GUINT_TO_POINTER="((gpointer)(gulong) (v))"
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long_long; then
GPOINTER_TO_INT="((gint)(long long) (ptr))"
GPOINTER_TO_UINT="((guint)(unsigned long long) (ptr))"
GINT_TO_POINTER="((gpointer)(long long) (v))"
GUINT_TO_POINTER="((gpointer)(unsigned long long) (v))"
GSIZE="long long"
GSIZE_FORMAT='"I64u"'
G_GUINT64_FORMAT='"I64u"'
G_GINT64_FORMAT='"I64i"'
else
AC_MSG_ERROR([unsupported pointer size])
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+4 -1
View File
@@ -24,7 +24,6 @@ os_files = $(unix_files)
endif
libeglib_la_SOURCES = \
eglib-config.h \
eglib-remap.h \
sort.frag.h \
glib.h \
@@ -62,6 +61,10 @@ INCLUDES = -I$(srcdir)
if HOST_WIN32
libeglib_la_LIBADD = -lm $(ICONV_LIBS) -lpsapi
else
if PLATFORM_ANDROID
libeglib_la_LIBADD = -llog
endif
endif
libeglib_static_la_LIBADD = $(libeglib_la_LIBADD)
+2
View File
@@ -42,4 +42,6 @@ typedef signed @GSIZE@ gssize;
#define G_BREAKPOINT()
#endif
typedef @PIDTYPE@ GPid;
#endif
+2 -3
View File
@@ -62,8 +62,6 @@ typedef int pid_t;
#undef G_HAVE_STRNDUP
#define G_HAVE_GETOPT_H 1
int vasprintf(char **ret, const char *fmt, va_list ap);
/* disable the following warnings
* C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
* C4127: conditional expression is constant
@@ -71,4 +69,5 @@ int vasprintf(char **ret, const char *fmt, va_list ap);
#pragma warning(disable:4100 4127)
#endif
#endif
typedef void * GPid;
#endif
+5 -5
View File
@@ -47,14 +47,14 @@ g_dir_open (const gchar *path, guint flags, GError **error)
GDir *dir;
gunichar2* path_utf16;
gunichar2* path_utf16_search;
WIN32_FIND_DATA find_data;
WIN32_FIND_DATAW find_data;
g_return_val_if_fail (path != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
dir = g_new0 (GDir, 1);
path_utf16 = u8to16 (path);
path_utf16_search = g_malloc ((wcslen(path_utf16) + 3)*sizeof(gunichar2));
path_utf16_search = g_malloc ((wcslen((wchar_t *) path_utf16) + 3)*sizeof(gunichar2));
wcscpy (path_utf16_search, path_utf16);
wcscat (path_utf16_search, L"\\*");
@@ -72,7 +72,7 @@ g_dir_open (const gchar *path, guint flags, GError **error)
g_free (path_utf16_search);
g_free (path_utf16);
while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0)) {
while ((wcscmp ((wchar_t *) find_data.cFileName, L".") == 0) || (wcscmp ((wchar_t *) find_data.cFileName, L"..") == 0)) {
if (!FindNextFileW (dir->handle, &find_data)) {
if (error) {
gint err = errno;
@@ -91,7 +91,7 @@ g_dir_open (const gchar *path, guint flags, GError **error)
const gchar *
g_dir_read_name (GDir *dir)
{
WIN32_FIND_DATA find_data;
WIN32_FIND_DATAW find_data;
g_return_val_if_fail (dir != NULL && dir->handle != 0, NULL);
@@ -111,7 +111,7 @@ g_dir_read_name (GDir *dir)
dir->next = NULL;
return dir->current;
}
} while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0));
} while ((wcscmp ((wchar_t *) find_data.cFileName, L".") == 0) || (wcscmp ((wchar_t *) find_data.cFileName, L"..") == 0));
dir->next = u16to8 (find_data.cFileName);
return dir->current;
+5
View File
@@ -33,9 +33,14 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef _MSC_VER
#include <direct.h>
#endif
#ifdef G_OS_WIN32
int mkstemp (char *tmp_template);
#endif
+4
View File
@@ -39,9 +39,13 @@
#ifdef G_OS_WIN32
#include <io.h>
#define open _open
#ifndef S_ISREG
#define S_ISREG(x) ((x & _S_IFMT) == _S_IFREG)
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) ((x & _S_IFMT) == _S_IFDIR)
#endif
#endif
int mkstemp (char *tmp_template)
{
+2 -2
View File
@@ -579,13 +579,13 @@ g_direct_hash (gconstpointer v1)
gboolean
g_int_equal (gconstpointer v1, gconstpointer v2)
{
return GPOINTER_TO_INT (v1) == GPOINTER_TO_INT (v2);
return *(gint *)v1 == *(gint *)v2;
}
guint
g_int_hash (gconstpointer v1)
{
return GPOINTER_TO_UINT(v1);
return *(guint *)v1;
}
gboolean
+9 -7
View File
@@ -13,10 +13,6 @@
#pragma include_alias(<eglib-config.h>, <eglib-config.hw>)
#else
#include <stdint.h>
/* For pid_t */
#ifndef WIN32
#include <unistd.h>
#endif
#endif
#include <eglib-config.h>
@@ -44,6 +40,12 @@
G_BEGIN_DECLS
#ifdef G_OS_WIN32
/* MSC and Cross-compilatin will use this */
int vasprintf (char **strp, const char *fmt, va_list ap);
#endif
/*
* Basic data types
*/
@@ -112,7 +114,9 @@ typedef int32_t gboolean;
#define G_USEC_PER_SEC 1000000
#ifndef ABS
#define ABS(a) ((a) > 0 ? (a) : -(a))
#endif
#define G_STRUCT_OFFSET(p_type,field) offsetof(p_type,field)
@@ -673,7 +677,7 @@ gunichar *g_utf16_to_ucs4 (const gunichar2 *str, glong len, glong *items_read,
#define u8to16(str) g_utf8_to_utf16(str, (glong)strlen(str), NULL, NULL, NULL)
#ifdef G_OS_WIN32
#define u16to8(str) g_utf16_to_utf8(str, (glong)wcslen(str), NULL, NULL, NULL)
#define u16to8(str) g_utf16_to_utf8((gunichar2 *) (str), (glong)wcslen((wchar_t *) (str)), NULL, NULL, NULL)
#else
#define u16to8(str) g_utf16_to_utf8(str, (glong)strlen(str), NULL, NULL, NULL)
#endif
@@ -716,8 +720,6 @@ typedef enum {
G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6
} GSpawnFlags;
typedef pid_t GPid;
typedef void (*GSpawnChildSetupFunc) (gpointer user_data);
gboolean g_spawn_command_line_sync (const gchar *command_line, gchar **standard_output, gchar **standard_error, gint *exit_status, GError **error);
+4 -3
View File
@@ -80,7 +80,7 @@ g_unsetenv(const gchar *variable)
{
gunichar2 *var;
var = u8to16(variable);
SetEnvironmentVariableW(var, TEXT(""));
SetEnvironmentVariableW(var, L"");
g_free(var);
}
@@ -98,14 +98,15 @@ g_path_is_absolute (const char *filename)
{
g_return_val_if_fail (filename != NULL, FALSE);
if (filename[0] != '\0' && filename[1] != '\0')
if (filename[1] == ':' && filename[2] != '\0' &&
if (filename[0] != '\0' && filename[1] != '\0') {
if (filename[1] == ':' && filename[2] != '\0' &&
(filename[2] == '\\' || filename[2] == '/'))
return TRUE;
/* UNC paths */
else if (filename[0] == '\\' && filename[1] == '\\' &&
filename[2] != '\0')
return TRUE;
}
return FALSE;
}
+1 -1
View File
@@ -53,7 +53,7 @@ g_module_open (const gchar *file, GModuleFlags flags)
gunichar2 *file16;
file16 = u8to16(file);
module->main_module = FALSE;
module->handle = LoadLibrary (file16);
module->handle = LoadLibraryW (file16);
g_free(file16);
if (!module->handle) {
g_free (module);
+8 -9
View File
@@ -24,6 +24,7 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
@@ -111,28 +112,26 @@ g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask)
void
g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args)
{
#if PLATFORM_ANDROID
__android_log_vprint (to_android_priority (log_level), log_domain, format, args);
#else
char *msg;
vasprintf (&msg, format, args);
#if PLATFORM_ANDROID
__android_log_print (to_android_priority (log_level),
/* TODO: provide a proper app name */
"mono", "%s%s%s",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#else
printf ("%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#endif
free (msg);
if (log_level & fatal){
fflush (stdout);
fflush (stderr);
abort ();
}
#endif
if (log_level & fatal){
abort ();
}
}
void
+3 -1
View File
@@ -68,7 +68,9 @@ g_build_path (const gchar *separator, const gchar *first_element, ...)
g_string_append_len (result, s, p - s);
if (next && *next){
if (strncmp (separator, result->str + strlen (result->str) - slen, slen))
int reslen = strlen (result->str);
if (reslen >= slen && strncmp (separator, result->str + reslen - slen, slen))
g_string_append (result, separator);
for (; strncmp (next, separator, slen) == 0; )
+2 -2
View File
@@ -57,7 +57,7 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
} else if (quote_char) {
if (c == quote_char) {
quote_char = '\0';
if (fresh && g_ascii_isspace (*ptr)){
if (fresh && (g_ascii_isspace (*ptr) || *ptr == '\0')){
g_ptr_array_add (array, g_string_free (str, FALSE));
str = g_string_new ("");
}
@@ -225,7 +225,7 @@ g_shell_unquote (const gchar *quoted_string, GError **error)
}
} else if (*p == '\\'){
char c = *(++p);
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == 0))
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == '\'' || c == 0 ))
g_string_append_c (result, '\\');
if (c == 0)
break;
+2 -1
View File
@@ -79,6 +79,7 @@ gchar ***_NSGetEnviron();
extern char **environ;
#endif
#ifndef G_OS_WIN32
static int
safe_read (int fd, gchar *buffer, gint count, GError **error)
{
@@ -185,7 +186,7 @@ create_pipe (int *fds, GError **error)
}
return TRUE;
}
#endif /* G_OS_WIN32 */
gboolean
g_spawn_command_line_sync (const gchar *command_line,
gchar **standard_output,
+3
View File
@@ -358,6 +358,9 @@ g_strreverse (gchar *str)
if (str == NULL)
return NULL;
if (*str == 0)
return str;
len = strlen (str);
half = len / 2;
len--;
+6 -6
View File
@@ -300,13 +300,13 @@ g_filename_from_utf8 (const gchar *utf8string, gssize len, gsize *bytes_read, gs
gboolean
g_get_charset (G_CONST_RETURN char **charset)
{
if (my_charset == NULL) {
#ifdef G_OS_WIN32
static char buf[14];
sprintf (buf, "CP%u", GetACP ());
*charset = buf;
is_utf8 = FALSE;
static char buf [14];
sprintf (buf, "CP%u", GetACP ());
my_charset = buf;
is_utf8 = FALSE;
#else
if (my_charset == NULL){
/* These shouldn't be heap allocated */
#if HAVE_LOCALCHARSET_H
my_charset = locale_charset ();
@@ -316,12 +316,12 @@ g_get_charset (G_CONST_RETURN char **charset)
my_charset = "UTF-8";
#endif
is_utf8 = strcmp (my_charset, "UTF-8") == 0;
#endif
}
if (charset != NULL)
*charset = my_charset;
#endif
return is_utf8;
}
+3 -1
View File
@@ -71,7 +71,7 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
ret = 0;
/* Common case */
for (in_pos = 0; in_pos < len && str [in_pos] < 0x80; in_pos++)
for (in_pos = 0; in_pos < len && (guchar) str [in_pos] < 0x80; in_pos++)
ret ++;
if (in_pos == len) {
@@ -338,6 +338,7 @@ g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *item
} else {
surrogate = 0;
/* invalid surrogate pair */
++in_pos;
continue;
}
} else {
@@ -354,6 +355,7 @@ g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *item
else if (ch >= 0xD800 && ch <= 0xDBFF)
surrogate = ch;
else if (ch >= 0xDC00 && ch <= 0xDFFF) {
++in_pos;
/* invalid surrogate pair */
continue;
}
+3 -2
View File
@@ -9,7 +9,7 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
size_t buflen;
va_list ap2;
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
ap2 = ap;
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
#else
@@ -17,7 +17,7 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
len = vsnprintf(NULL, 0, fmt, ap2);
#endif
if (len > 0 && (buf = malloc((buflen = (size_t) (len + 1)))) != NULL) {
if (len >= 0 && (buf = malloc ((buflen = (size_t) (len + 1)))) != NULL) {
len = vsnprintf(buf, buflen, fmt, ap);
*ret = buf;
} else {
@@ -28,3 +28,4 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
va_end(ap2);
return len;
}
+12
View File
@@ -20,6 +20,8 @@ RESULT
test_buildpath ()
{
char *s;
char *buffer = "var/private";
char *dir = "/";
s = g_build_path ("/", "hola///", "//mundo", NULL);
if (strcmp (s, "hola/mundo") != 0)
@@ -99,6 +101,16 @@ test_buildpath ()
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
return FAILED ("must get an empty string");
// This is to test the regression introduced by Levi for the Windows support
// that code errouneously read below the allowed area (in this case dir [-1]).
// and caused all kinds of random errors.
dir = "//";
dir++;
s = g_build_filename (dir, buffer, NULL);
if (s [0] != '/')
return FAILED ("Must have a '/' at the start");
g_free (s);
return OK;
}
+17 -7
View File
@@ -296,27 +296,37 @@ test_split_set ()
RESULT
test_strreverse ()
{
RESULT res = OK;
gchar *a = g_strdup ("onetwothree");
gchar *a_target = "eerhtowteno";
gchar *b = g_strdup ("onetwothre");
gchar *b_target = "erhtowteno";
gchar *c = g_strdup ("");
gchar *c_target = "";
g_strreverse (a);
if (strcmp (a, a_target)) {
g_free (b);
g_free (a);
return FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", a, a_target);
res = FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", a, a_target);
goto cleanup;
}
g_strreverse (b);
if (strcmp (b, b_target)) {
g_free (b);
g_free (a);
return FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", b, b_target);
res = FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", b, b_target);
goto cleanup;
}
g_strreverse (c);
if (strcmp (c, c_target)) {
res = FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", b, b_target);
goto cleanup;
}
cleanup:
g_free (c);
g_free (b);
g_free (a);
return OK;
return res;
}
RESULT
+13
View File
@@ -569,6 +569,9 @@ void GC_stop_world()
thread_act_array_t act_list, prev_list;
mach_msg_type_number_t listcount, prevcount;
if (GC_notify_event)
GC_notify_event (GC_EVENT_PRE_STOP_WORLD);
# if DEBUG_THREADS
GC_printf1("Stopping the world from 0x%lx\n", mach_thread_self());
# endif
@@ -639,6 +642,9 @@ void GC_stop_world()
#endif
mach_port_deallocate(my_task, my_thread);
if (GC_notify_event)
GC_notify_event (GC_EVENT_POST_STOP_WORLD);
}
/* Caller holds allocation lock, and has held it continuously since */
@@ -654,6 +660,9 @@ void GC_start_world()
mach_msg_type_number_t listcount;
struct thread_basic_info info;
mach_msg_type_number_t outCount = THREAD_INFO_MAX;
if (GC_notify_event)
GC_notify_event (GC_EVENT_PRE_START_WORLD);
# if DEBUG_THREADS
GC_printf0("World starting\n");
@@ -700,6 +709,10 @@ void GC_start_world()
vm_deallocate(my_task, (vm_address_t)act_list, sizeof(thread_t) * listcount);
mach_port_deallocate(my_task, my_thread);
if (GC_notify_event)
GC_notify_event (GC_EVENT_POST_START_WORLD);
# if DEBUG_THREADS
GC_printf0("World started\n");
# endif
+8
View File
@@ -250,6 +250,14 @@
#endif
}
# define GC_TEST_AND_SET_DEFINED
inline static void GC_clear(volatile unsigned int *addr) {
#ifdef HAVE_ARMV6
/* Memory barrier */
__asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory");
#endif
*(addr) = 0;
}
# define GC_CLEAR_DEFINED
# endif /* ARM32 */
# ifdef CRIS
inline static int GC_test_and_set(volatile unsigned int *addr) {
+2
View File
@@ -371,6 +371,8 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES]));
# define GC_MACH_THREAD_STATE_FLAVOR PPC_THREAD_STATE
# elif defined(I386)
# define GC_MACH_THREAD_STATE_FLAVOR i386_THREAD_STATE
# elif defined(X86_64)
# define GC_MACH_THREAD_STATE_FLAVOR x86_THREAD_STATE64
# else
# define GC_MACH_THREAD_STATE_FLAVOR MACHINE_THREAD_STATE
# endif
+1 -1
View File
@@ -325,7 +325,7 @@
These aren't used when dyld support is enabled (it is by default) */
# define DATASTART ((ptr_t) get_etext())
# define DATAEND ((ptr_t) get_end())
# define STACKBOTTOM ((ptr_t) 0xc0000000)
# define STACKBOTTOM ((ptr_t) pthread_get_stackaddr_np(pthread_self()))
# define USE_MMAP
# define USE_MMAP_ANON
# define USE_ASM_PUSH_REGS
+8 -1
View File
@@ -2131,7 +2131,14 @@ void GC_unmap_gap(ptr_t start1, word bytes1, ptr_t start2, word bytes2)
len -= free_len;
}
# else
if (len != 0 && munmap(start_addr, len) != 0) ABORT("munmap failed");
if (len != 0) {
/* Immediately remap as above. */
void * result;
result = mmap(start_addr, len, PROT_NONE,
MAP_PRIVATE | MAP_FIXED | OPT_MAP_ANON,
zero_fd, 0/* offset */);
if (result != (void *)start_addr) ABORT("mmap(...PROT_NONE...) failed");
}
GC_unmapped_bytes += len;
# endif
}
+4 -4
View File
@@ -729,7 +729,7 @@ void nacl_shutdown_gc_thread()
/* Caller holds allocation lock. */
GC_thread GC_new_thread(pthread_t id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
GC_thread result;
static GC_bool first_thread_used = FALSE;
@@ -760,7 +760,7 @@ GC_thread GC_new_thread(pthread_t id)
/* Caller holds allocation lock. */
void GC_delete_thread(pthread_t id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
register GC_thread p = GC_threads[hv];
register GC_thread prev = 0;
@@ -796,7 +796,7 @@ void GC_delete_thread(pthread_t id)
/* This is OK, but we need a way to delete a specific one. */
void GC_delete_gc_thread(pthread_t id, GC_thread gc_id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
register GC_thread p = GC_threads[hv];
register GC_thread prev = 0;
@@ -825,7 +825,7 @@ void GC_delete_gc_thread(pthread_t id, GC_thread gc_id)
/* return the most recent one. */
GC_thread GC_lookup_thread(pthread_t id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
register GC_thread p = GC_threads[hv];
while (p != 0 && !pthread_equal(p -> id, id)) p = p -> next;
+19 -1
View File
@@ -6,7 +6,7 @@
.SH NAME
csharp, gsharp \- Interactive C# Shell
.SH SYNOPSIS
.B csharp [--attach PID] [file1 [file2]]
.B csharp [--attach PID] [-e EXPRESSION] [file1 [file2]]
[options]
.P
.B gsharp [file1 [file2]]
@@ -29,7 +29,22 @@ target process.
.PP
Files specified in the command line will be loaded and executed as
scripts.
.PP
Starting with Mono 2.10, the
.I csharp
command can be used as an interpreter executed by executables flagged
with the Unix execute attribute. To do this, make the first line of
your C# source code look like this:
.nf
"#!/usr/bin/csharp"
Console.WriteLine ("Hello, World");
.fi
.SH OPTIONS
The commands accept all of the commands that are available to the
.I mcs
command, so you can reference assemblies, specify paths, language
level and so on from the command line. In addition, the following
command line options are supported:
.TP
.I "\-\-attach"
This is an advanced option and should only be used if you have a deep
@@ -42,6 +57,9 @@ special measures to avoid crashing the target application while using
it. For example, you might have to take the proper locks before
issuing any commands that might affect the target process state, or
sending commands through a method dispatcher.
.TP
.I "\-e" EXPRESSION
This will evaluate the specified C# EXPRESSION and exit
.SH OPERATION
Once you launch the csharp command, you will be greeted with the
interactive prompt:
+5
View File
@@ -351,6 +351,11 @@ shell will perform globbing, so you might want to use it like this:
$ mcs -recurse:'*.cs'
.fi
.TP
.I \-sdk:VERSION
Used to specify the version of Base Class Library assemblies. The possible
values are: 2 (default), 4. The version number means which .NET version
should the produced assembly be compatible with.
.TP
.I \-\-shell
Starts up the compiler in interactive mode, providing a C# shell for
statements and expressions. A shortcut is to use the
+2
View File
@@ -603,6 +603,8 @@ Describes the return value of a method:
.fi
The \fIreturns\fR element can contain the following elements:
\fIc\fR,
\fIformat\fR,
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
+48
View File
@@ -175,6 +175,36 @@ extern void *mono_aot_module_hello_info;
mono_aot_register_module (mono_aot_module_hello_info);
.fi
.ne
.TP
.I mtriple=<TRIPLE>
Use the GNU style target triple <TRIPLE> to determine some code generation options, i.e.
--mtriple=armv7-linux-gnueabi will generate code that targets ARMv7. This is currently
only supported by the ARM backend. In LLVM mode, this triple is passed on to the LLVM
llc compiler.
.TP
.I tool-prefix=<PREFIX>
Prepends <PREFIX> to the name of tools ran by the AOT compiler, i.e. 'as'/'ld'. For
example, --tool=prefix=arm-linux-gnueabi- will make the AOT compiler run
'arm-linux-gnueabi-as' instead of 'as'.
.TP
.I llvm-path=<PREFIX>
Same for the llvm tools 'opt' and 'llc'.
.TP
.I stats
Print various stats collected during AOT compilation.
.TP
.I readonly-value=namespace.typename.fieldname=type/value
Override the value of a static readonly field. Usually, during JIT
compilation, the static constructor is ran eagerly, so the value of
a static readonly field is known at compilation time and the compiler
can do a number of optimizations based on it. During AOT, instead, the static
constructor can't be ran, so this option can be used to set the value of such
a field and enable the same set of optimizations.
Type can be any of i1, i2, i4 for integers of the respective sizes (in bytes).
Note that signed/unsigned numbers do not matter here, just the storage size.
This option can be specified multiple times and it doesn't prevent the static
constructor for the type defining the field to execute with the usual rules
at runtime (hence possibly computing a different value for the field).
.PP
For more information about AOT, see: http://www.mono-project.com/AOT
@@ -998,6 +1028,11 @@ for the fixed-heap Mark&Sweep collector (i.e. `marksweep-fixed' and
`k', `m' and `g' to specify kilo-, mega- and gigabytes, respectively.
The default is 512 megabytes.
.TP
\fBsoft-heap-limit=\fIsize\fR
Once the heap size gets larger than this size, ignore what the default
major collection trigger metric says and only allow four nursery size's
of major heap growth between major collections.
.TP
\fBwbarrier=\fIwbarrier\fR
Specifies which write barrier to use. Options are `cardtable' and
`remset'. The card table barrier is faster but less precise, and only
@@ -1021,6 +1056,16 @@ Enables or disables concurrent sweep for the Mark&Sweep collector. If
enabled, the sweep phase of the garbage collection is done in a thread
concurrently with the application. Concurrent sweep is disabled by
default.
.TP
\fBstack-mark=\fImark-mode\fR
Specifies how application threads should be scanned. Options are
`precise` and `conservative`. Precise marking allow the collector
to know what values on stack are references and what are not.
Conservative marking threats all values as potentially references
and leave them untouched. Precise marking reduces floating garbage
and can speed up nursery collection and allocation rate, it has
the downside of requiring a significant extra memory per compiled
method. The right option, unfortunately, requires experimentation.
.ne
.RE
.TP
@@ -1400,6 +1445,9 @@ be used when writing messages like this: Console.Error:MyProgramName.
See the System.Diagnostics.DefaultTraceListener documentation for more
information.
.TP
\fBMONO_WCF_TRACE\fR
This eases WCF diagnostics functionality by simply outputs all log messages from WCF engine to "stdout", "stderr" or any file passed to this environment variable. The log format is the same as usual diagnostic output.
.TP
\fBMONO_XEXCEPTIONS\fR
This throws an exception when a X11 error is encountered; by default a
message is displayed but execution continues
+77 -5
View File
@@ -41,8 +41,32 @@ Validate the project file against the schema
.B \//validate:<schema>
Validate the project file against the specified schema
.TP
.B \//consoleloggerparameters:<params>
Parameters for the console logger : PerfomanceSummary, NoSummary, NoItemAndPropertyList
.B \//consoleloggerparameters:<params> , /clp:<params>
Parameters for the console logger : PerfomanceSummary, Summary, NoSummary, NoItemAndPropertyList, Verbosity
.TP
.B \//filelogger[n] , /fl[n]
Logs the output to a file, named 'msbuild.log' by default. If the optional number 'n' is
specified, then it logs to 'msbuild[n].log' . Parameters for this logger, including
the log file name can be specified via a corresponding /flp[n] option. Default verbosity
for file loggers is 'detailed. 'n' can be between 1-9.
.TP
.B \//fileloggerparameters[n]:<params> , /flp[n]:<params>
Parameters for a file logger. This implies a corresponding /fl[n]. 'n' can be between
1-9, and is used to add upto 10 file loggers. Parameters can be, besides the ones available
for console logger:
.RS
.TP
.I LogFile=<file>
File to which the build log will be written.
.TP
.I Append
If this is used, then the log file is appended to, else a new one will be created.
.TP
.I Encoding=<encoding>
Encoding to use for the log file, eg. UTF-8, ASCII.
.TP
Eg: xbuild foo.csproj /flp:Verbosity=normal "/flp1:LogFile=build.log;Append;Encoding=ASCII"
.RE
.TP
.B \//nologo
Don't show the initial xbuild banner
@@ -74,13 +98,57 @@ to $prefix/lib/mono/xbuild . When used in Import, like:
xbuild tries various values for the msbuild property $(MSBuildExtensionsPath), in order:
1. Paths specified in the environment variable $MSBuildExtensionsPath.
2. $XDG_CONFIG_HOME/xbuild/tasks (or Environment.SpecialFolder.ApplicationData)
3. $prefix/lib/mono/xbuild (default location)
2. /Library/Frameworks/Mono.framework/External/xbuild on Mac OSX.
3. $XDG_CONFIG_HOME/xbuild/tasks (or Environment.SpecialFolder.ApplicationData)
4. $prefix/lib/mono/xbuild (default location)
Anywhere else in the project files, $(MSBuildExtensionsPath) will always resolve to the default
location. This is a xbuild-only feature.
This is also applicable for the properties $(MSBuildExtensionsPath32) and $(MSBuildExtensionsPath64),
and the environment variables have the corresponding names - MSBuildExtensionsPath32/64 .
.TP
.I "XBUILD_FRAMEWORK_FOLDERS_PATH"
With ToolsVersion 4.0, projects can target arbitrary frameworks referenced by TargetFrameworkMoniker,
which is of the format:
Identifier,Version=<version>[,Profile=<profile>]
Eg. ".NETFramework,Version=v4.0"
The 3 parts of the moniker are given by the msbuild properties:
$(TargetFrameworkIdentifier), $(TargetFrameworkVersion) and $(TargetFrameworkProfile)
This moniker maps to a framework description file on disk:
<framework_root>/Identifier/Version/[Profile]/RedistList/FrameworkList.xml
This file is used to determine the path where to find the framework assemblies for this particular framework.
Framework root here is configurable and is resolved in the following order:
.nf
1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
3. MSBuild property $(TargetFrameworkRoot)
4. $prefix/lib/mono/xbuild-frameworks (default location)
.fi
XBuild tries the paths given above, in order, till it finds a FrameworkList.xml for the moniker.
Running with /v:detailed or higher verbosity will show the various paths that it tries.
The FrameworkList.xml itself just has a root element like:
<FileList Name=".NET Framework 3.5" TargetFrameworkDirectory="..\\..\\..\\..\\3.5" IncludeFramework="v3.0">
</FileList>
Here the TargetFrameworkDirectory attribute specifies the directory where the assemblies for
this particular framework can be found. If this is not set, then the parent of the folder
containing the xml file is taken as the framework directory.
IncludeFramework attribute specifies the version of a framework (under the *same* $(TargetFrameworkIdentifier))
which should be included in the final list of Target framework directories.
.TP
.I "XBUILD_COLORS"
If this variable is set, it contains a string of the form
@@ -111,10 +179,14 @@ For example, you could set this variable from your shell:
You can disable the built-in color scheme by setting this variable to
"disable".
.SH NOTES
On Mac OSX, for locating pkg-config (.pc) files, xbuild additionally
looks in "/Library/Frameworks/Mono.framework/External/pkgconfig" .
.SH SEE ALSO
.BR mono(1), mcs(1)
.SH COPYRIGHT
Copyright (C) 2009 Novell, Inc (http://www.novell.com)
Copyright (C) 2011 Novell, Inc (http://www.novell.com)
.SH MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
.SH WEB SITE
+2
View File
@@ -26,6 +26,8 @@ PLATFORM_MAKE_CORLIB_CMP = yes
PLATFORM_CHANGE_SEPARATOR_CMD=tr '/' '\\\\'
PLATFORM_PATH_SEPARATOR = ;
override CURDIR:=$(shell cygpath -m $(CURDIR))
## not so simple :-)
#PLATFORM_AOT_SUFFIX = .dll
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
+1 -1
View File
@@ -22,7 +22,7 @@ EXTRA_DISTFILES = \
$(RESOURCE_FILES)
Commons.Xml.Relaxng.Rnc/RncParser.cs: Commons.Xml.Relaxng.Rnc/RncParser.jay $(topdir)/jay/skeleton.cs
$(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs Commons.Xml.Relaxng.Rnc/RncParser.jay > Commons.Xml.Relaxng.Rnc/RncParser.cs
$(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $(CURDIR)/Commons.Xml.Relaxng.Rnc/RncParser.jay > Commons.Xml.Relaxng.Rnc/RncParser.cs
BUILT_SOURCES = Commons.Xml.Relaxng.Rnc/RncParser.cs
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/compat/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Crc32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\StrangeCrc.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\ZipException.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
+107
View File
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.CJK</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP932.cs" />
<Compile Include="ISO2022JP.cs" />
<Compile Include="CP51932.cs" />
<Compile Include="CP936.cs" />
<Compile Include="CP949.cs" />
<Compile Include="CP950.cs" />
<Compile Include="CodeTable.cs" />
<Compile Include="DbcsEncoding.cs" />
<Compile Include="DbcsConvert.cs" />
<Compile Include="GB18030Encoding.cs" />
<Compile Include="GB18030Source.cs" />
<Compile Include="JISConvert.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="big5.table">
<LogicalName>big5.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="gb2312.table">
<LogicalName>gb2312.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="jis.table">
<LogicalName>jis.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="ks.table">
<LogicalName>ks.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="gb18030.table">
<LogicalName>gb18030.table</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
+107
View File
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.CJK</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP932.cs" />
<Compile Include="ISO2022JP.cs" />
<Compile Include="CP51932.cs" />
<Compile Include="CP936.cs" />
<Compile Include="CP949.cs" />
<Compile Include="CP950.cs" />
<Compile Include="CodeTable.cs" />
<Compile Include="DbcsEncoding.cs" />
<Compile Include="DbcsConvert.cs" />
<Compile Include="GB18030Encoding.cs" />
<Compile Include="GB18030Source.cs" />
<Compile Include="JISConvert.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="big5.table">
<LogicalName>big5.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="gb2312.table">
<LogicalName>gb2312.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="jis.table">
<LogicalName>jis.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="ks.table">
<LogicalName>ks.table</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="gb18030.table">
<LogicalName>gb18030.table</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
+79
View File
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="ByteEncoding.cs" />
<Compile Include="Handlers.cs" />
<Compile Include="Manager.cs" />
<Compile Include="MonoEncoding.cs" />
<Compile Include="Strings.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
+79
View File
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="ByteEncoding.cs" />
<Compile Include="Handlers.cs" />
<Compile Include="Manager.cs" />
<Compile Include="MonoEncoding.cs" />
<Compile Include="Strings.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.MidEast</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP1254.cs" />
<Compile Include="CP1255.cs" />
<Compile Include="CP1256.cs" />
<Compile Include="CP28596.cs" />
<Compile Include="CP28598.cs" />
<Compile Include="CP28599.cs" />
<Compile Include="CP38598.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.MidEast</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP1254.cs" />
<Compile Include="CP1255.cs" />
<Compile Include="CP1256.cs" />
<Compile Include="CP28596.cs" />
<Compile Include="CP28598.cs" />
<Compile Include="CP28599.cs" />
<Compile Include="CP38598.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.Other</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP1251.cs" />
<Compile Include="CP1257.cs" />
<Compile Include="CP1258.cs" />
<Compile Include="CP20866.cs" />
<Compile Include="CP21866.cs" />
<Compile Include="CP28594.cs" />
<Compile Include="CP28595.cs" />
<Compile Include="CP57002.cs" />
<Compile Include="CP874.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.Other</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP1251.cs" />
<Compile Include="CP1257.cs" />
<Compile Include="CP1258.cs" />
<Compile Include="CP20866.cs" />
<Compile Include="CP21866.cs" />
<Compile Include="CP28594.cs" />
<Compile Include="CP28595.cs" />
<Compile Include="CP57002.cs" />
<Compile Include="CP874.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.Rare</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP866.cs" />
<Compile Include="CP1026.cs" />
<Compile Include="CP869.cs" />
<Compile Include="CP870.cs" />
<Compile Include="CP875.cs" />
<Compile Include="CP1047.cs" />
<Compile Include="CP1140.cs" />
<Compile Include="CP1141.cs" />
<Compile Include="CP1142.cs" />
<Compile Include="CP1143.cs" />
<Compile Include="CP1144.cs" />
<Compile Include="CP1145.cs" />
<Compile Include="CP1146.cs" />
<Compile Include="CP1147.cs" />
<Compile Include="CP1148.cs" />
<Compile Include="CP1149.cs" />
<Compile Include="CP20273.cs" />
<Compile Include="CP20277.cs" />
<Compile Include="CP20278.cs" />
<Compile Include="CP20280.cs" />
<Compile Include="CP20284.cs" />
<Compile Include="CP20285.cs" />
<Compile Include="CP20290.cs" />
<Compile Include="CP20297.cs" />
<Compile Include="CP20420.cs" />
<Compile Include="CP20424.cs" />
<Compile Include="CP20871.cs" />
<Compile Include="CP21025.cs" />
<Compile Include="CP37.cs" />
<Compile Include="CP500.cs" />
<Compile Include="CP708.cs" />
<Compile Include="CP852.cs" />
<Compile Include="CP855.cs" />
<Compile Include="CP857.cs" />
<Compile Include="CP858.cs" />
<Compile Include="CP862.cs" />
<Compile Include="CP864.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.Rare</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP866.cs" />
<Compile Include="CP1026.cs" />
<Compile Include="CP869.cs" />
<Compile Include="CP870.cs" />
<Compile Include="CP875.cs" />
<Compile Include="CP1047.cs" />
<Compile Include="CP1140.cs" />
<Compile Include="CP1141.cs" />
<Compile Include="CP1142.cs" />
<Compile Include="CP1143.cs" />
<Compile Include="CP1144.cs" />
<Compile Include="CP1145.cs" />
<Compile Include="CP1146.cs" />
<Compile Include="CP1147.cs" />
<Compile Include="CP1148.cs" />
<Compile Include="CP1149.cs" />
<Compile Include="CP20273.cs" />
<Compile Include="CP20277.cs" />
<Compile Include="CP20278.cs" />
<Compile Include="CP20280.cs" />
<Compile Include="CP20284.cs" />
<Compile Include="CP20285.cs" />
<Compile Include="CP20290.cs" />
<Compile Include="CP20297.cs" />
<Compile Include="CP20420.cs" />
<Compile Include="CP20424.cs" />
<Compile Include="CP20871.cs" />
<Compile Include="CP21025.cs" />
<Compile Include="CP37.cs" />
<Compile Include="CP500.cs" />
<Compile Include="CP708.cs" />
<Compile Include="CP852.cs" />
<Compile Include="CP855.cs" />
<Compile Include="CP857.cs" />
<Compile Include="CP858.cs" />
<Compile Include="CP862.cs" />
<Compile Include="CP864.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.West</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP10000.cs" />
<Compile Include="CP10079.cs" />
<Compile Include="CP1250.cs" />
<Compile Include="CP1252.cs" />
<Compile Include="CP1253.cs" />
<Compile Include="CP28592.cs" />
<Compile Include="CP28593.cs" />
<Compile Include="CP28597.cs" />
<Compile Include="CP28605.cs" />
<Compile Include="CP437.cs" />
<Compile Include="CP850.cs" />
<Compile Include="CP860.cs" />
<Compile Include="CP861.cs" />
<Compile Include="CP863.cs" />
<Compile Include="CP865.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>I18N.West</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\..\build\common\Consts.cs" />
<Compile Include="CP10000.cs" />
<Compile Include="CP10079.cs" />
<Compile Include="CP1250.cs" />
<Compile Include="CP1252.cs" />
<Compile Include="CP1253.cs" />
<Compile Include="CP28592.cs" />
<Compile Include="CP28593.cs" />
<Compile Include="CP28597.cs" />
<Compile Include="CP28605.cs" />
<Compile Include="CP437.cs" />
<Compile Include="CP850.cs" />
<Compile Include="CP860.cs" />
<Compile Include="CP861.cs" />
<Compile Include="CP863.cs" />
<Compile Include="CP865.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="I18N.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>IBM.Data.DB2</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ClientUtils.cs" />
<Compile Include=".\IBM.Data.DB2\DB2CLIWrapper.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Command.cs" />
<Compile Include=".\IBM.Data.DB2\DB2CommandBuilder.cs" />
<Compile Include=".\IBM.Data.DB2\DB2OpenConnection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Connection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ConnectionPool.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ConnectionSettings.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Constants.cs" />
<Compile Include=".\IBM.Data.DB2\DB2DataAdapter.cs" />
<Compile Include=".\IBM.Data.DB2\DB2DataReader.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Environment.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Error.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ErrorCollection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Exception.cs" />
<Compile Include=".\IBM.Data.DB2\DB2InfoMessageEventHandler.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Parameter.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ParameterCollection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventArgs.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventHandler.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventArgs.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventHandler.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Transaction.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Type.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
<Reference Include="System.Data.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Data.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>IBM.Data.DB2</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ClientUtils.cs" />
<Compile Include=".\IBM.Data.DB2\DB2CLIWrapper.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Command.cs" />
<Compile Include=".\IBM.Data.DB2\DB2CommandBuilder.cs" />
<Compile Include=".\IBM.Data.DB2\DB2OpenConnection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Connection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ConnectionPool.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ConnectionSettings.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Constants.cs" />
<Compile Include=".\IBM.Data.DB2\DB2DataAdapter.cs" />
<Compile Include=".\IBM.Data.DB2\DB2DataReader.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Environment.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Error.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ErrorCollection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Exception.cs" />
<Compile Include=".\IBM.Data.DB2\DB2InfoMessageEventHandler.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Parameter.cs" />
<Compile Include=".\IBM.Data.DB2\DB2ParameterCollection.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventArgs.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventHandler.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventArgs.cs" />
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventHandler.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Transaction.cs" />
<Compile Include=".\IBM.Data.DB2\DB2Type.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
<Reference Include="System.Data.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Data.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipNameTransform.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\FastZip.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\StrangeCRC.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\CRC32.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Exception.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\FileSystemScanner.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\PathFilter.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\INameTransform.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\NameFilter.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZIPConstants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZipException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Encryption\PkzipClassic.cs" />
<Compile Include="ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Main.cs" />
<Compile Include="ICSharpCode.SharpZipLib\SharpZipBaseException.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<NoStdLib>true</NoStdLib>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mscorlib</RootNamespace>
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipNameTransform.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\FastZip.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\StrangeCRC.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Checksums\CRC32.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Exception.cs" />
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\FileSystemScanner.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\PathFilter.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\INameTransform.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Core\NameFilter.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipInputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZIPConstants.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipOutputStream.cs" />
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZipException.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Encryption\PkzipClassic.cs" />
<Compile Include="ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
<Compile Include="ICSharpCode.SharpZipLib\Main.cs" />
<Compile Include="ICSharpCode.SharpZipLib\SharpZipBaseException.cs" />
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
+4 -16
View File
@@ -166,33 +166,21 @@ namespace IKVM.Reflection.Emit
{
return 0;
}
if (x.tryOffset >= y.handlerOffset && x.tryOffset + x.tryLength <= y.handlerOffset + y.handlerLength)
{
return -1;
}
if (y.tryOffset >= x.handlerOffset && y.tryOffset + y.tryLength <= x.handlerOffset + x.handlerLength)
{
return 1;
}
if (x.tryOffset == y.tryOffset && x.tryLength == y.tryLength)
else if (x.tryOffset == y.tryOffset && x.tryLength == y.tryLength)
{
return x.ordinal < y.ordinal ? -1 : 1;
}
if (x.tryOffset + x.tryLength <= y.tryOffset)
else if (x.tryOffset >= y.tryOffset && x.handlerOffset + x.handlerLength <= y.handlerOffset + y.handlerLength)
{
return -1;
}
if (y.tryOffset + y.tryLength <= x.tryOffset)
else if (y.tryOffset >= x.tryOffset && y.handlerOffset + y.handlerLength <= x.handlerOffset + x.handlerLength)
{
return 1;
}
if (x.tryOffset > y.tryOffset || (x.tryOffset == y.tryOffset && x.tryLength < y.tryLength))
{
return -1;
}
else
{
return 1;
return x.ordinal < y.ordinal ? -1 : 1;
}
}
}
+69 -1
View File
@@ -1,5 +1,6 @@
/*
Copyright (C) 2010 Jeroen Frijters
Copyright (C) 2011 Marek Safar
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -57,7 +58,8 @@ namespace IKVM.Reflection
[DllImport("fusion", CharSet = CharSet.Unicode)]
private static extern int CompareAssemblyIdentity(string pwzAssemblyIdentity1, bool fUnified1, string pwzAssemblyIdentity2, bool fUnified2, out bool pfEquivalent, out AssemblyComparisonResult pResult);
private static bool CompareAssemblyIdentityPure(string assemblyIdentity1, bool unified1, string assemblyIdentity2, bool unified2, out AssemblyComparisonResult result)
// internal for use by mcs
internal static bool CompareAssemblyIdentityPure(string assemblyIdentity1, bool unified1, string assemblyIdentity2, bool unified2, out AssemblyComparisonResult result)
{
ParsedAssemblyName name1;
ParsedAssemblyName name2;
@@ -109,6 +111,11 @@ namespace IKVM.Reflection
result = AssemblyComparisonResult.EquivalentPartialMatch;
return true;
}
else if (IsFrameworkAssembly(name2))
{
result = partial ? AssemblyComparisonResult.EquivalentPartialFXUnified : AssemblyComparisonResult.EquivalentFXUnified;
return true;
}
else if (name1.Version < name2.Version)
{
if (unified2)
@@ -141,6 +148,11 @@ namespace IKVM.Reflection
return true;
}
}
else if (IsStrongNamed(name1))
{
result = AssemblyComparisonResult.NonEquivalent;
return false;
}
else
{
result = partial ? AssemblyComparisonResult.EquivalentPartialWeakNamed : AssemblyComparisonResult.EquivalentWeakNamed;
@@ -148,6 +160,62 @@ namespace IKVM.Reflection
}
}
static bool IsFrameworkAssembly(ParsedAssemblyName name)
{
// A list of FX assemblies which require some form of remapping
// When 4.0 + 1 version is release, assemblies introduced in v4.0
// will have to be added
switch (name.Name)
{
case "System":
case "System.Core":
case "System.Data":
case "System.Data.DataSetExtensions":
case "System.Data.Linq":
case "System.Data.OracleClient":
case "System.Data.Services":
case "System.Data.Services.Client":
case "System.IdentityModel":
case "System.IdentityModel.Selectors":
case "System.Runtime.Remoting":
case "System.Runtime.Serialization":
case "System.ServiceModel":
case "System.Transactions":
case "System.Windows.Forms":
case "System.Xml":
case "System.Xml.Linq":
return name.PublicKeyToken == "b77a5c561934e089";
case "System.Configuration":
case "System.Configuration.Install":
case "System.Design":
case "System.DirectoryServices":
case "System.Drawing":
case "System.Drawing.Design":
case "System.EnterpriseServices":
case "System.Management":
case "System.Messaging":
case "System.Runtime.Serialization.Formatters.Soap":
case "System.Security":
case "System.ServiceProcess":
case "System.Web":
case "System.Web.Mobile":
case "System.Web.Services":
return name.PublicKeyToken == "b03f5f7f11d50a3a";
case "System.ComponentModel.DataAnnotations":
case "System.ServiceModel.Web":
case "System.Web.Abstractions":
case "System.Web.Extensions":
case "System.Web.Extensions.Design":
case "System.Web.DynamicData":
case "System.Web.Routing":
return name.PublicKeyToken == "31bf3856ad364e35";
}
return false;
}
// note that this is the fusion specific parser, it is not the same as System.Reflection.AssemblyName
private static bool ParseAssemblyName(string fullName, out ParsedAssemblyName parsedName)
{
@@ -167,11 +167,7 @@ namespace IKVM.Reflection.Reader
internal float ReadSingle()
{
if (end - pos < 4)
throw new BadImageFormatException();
float value = BitConverter.ToSingle(buffer, pos);
pos += 4;
return value;
return SingleConverter.Int32BitsToSingle(ReadInt32());
}
internal double ReadDouble()
+1 -1
View File
@@ -741,7 +741,7 @@ namespace IKVM.Reflection
return GetNestedType(name, BindingFlags.Public);
}
public Type GetNestedType(string name, BindingFlags bindingAttr)
public virtual Type GetNestedType(string name, BindingFlags bindingAttr)
{
foreach (Type type in GetNestedTypes(bindingAttr))
{
+24 -1
View File
@@ -1,5 +1,5 @@
/*
Copyright (C) 2008-2010 Jeroen Frijters
Copyright (C) 2008-2011 Jeroen Frijters
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -265,4 +265,27 @@ namespace IKVM.Reflection
return h;
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Explicit)]
struct SingleConverter
{
[System.Runtime.InteropServices.FieldOffset(0)]
private int i;
[System.Runtime.InteropServices.FieldOffset(0)]
private float f;
internal static int SingleToInt32Bits(float v)
{
SingleConverter c = new SingleConverter();
c.f = v;
return c.i;
}
internal static float Int32BitsToSingle(int v)
{
SingleConverter c = new SingleConverter();
c.i = v;
return c.f;
}
}
}
+1 -12
View File
@@ -153,18 +153,7 @@ namespace IKVM.Reflection.Writer
internal void Write(float value)
{
byte[] s = BitConverter.GetBytes(value);
if (BitConverter.IsLittleEndian) {
Write(s);
} else {
if (pos + 4 > buffer.Length)
Grow(4);
buffer[pos++] = s [3];
buffer[pos++] = s [2];
buffer[pos++] = s [1];
buffer[pos++] = s [0];
}
Write(SingleConverter.SingleToInt32Bits(value));
}
internal void Write(double value)
+12 -6
View File
@@ -102,15 +102,15 @@ net_2_0_dirs := \
Mono.Tasklets \
Mono.CSharp \
Moonlight.Build.Tasks \
WindowsBase \
System.Data.Services \
System.Data.Services.Client \
System.Data.Services \
System.Net
net_2_0_only_dirs := \
System.Web.Extensions_1.0 \
System.Web.Extensions.Design_1.0 \
Compat.ICSharpCode.SharpZipLib
Compat.ICSharpCode.SharpZipLib \
WindowsBase \
System.Data.Services.Client
moonlight_dirs := \
corlib \
@@ -144,6 +144,7 @@ mobile_dirs := \
System.Transactions \
System.Data \
Mono.Cairo \
System.Numerics \
Mono.Data.Sqlite
net_3_5_only_dirs := \
@@ -156,18 +157,23 @@ net_4_0_dirs := \
System.Dynamic \
System.Numerics \
Microsoft.CSharp \
Microsoft.Build \
System.Windows.Forms.DataVisualization \
System.ComponentModel.Composition \
System.Xaml \
WindowsBase \
System.Data.Services.Client \
System.ServiceModel.Routing \
System.ServiceModel.Discovery \
System.Runtime.Caching \
System.Runtime.DurableInstancing \
Mono.CodeContracts
Mono.CodeContracts \
Microsoft.Web.Infrastructure \
WebMatrix.Data
net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs)
moonlight_raw_SUBDIRS := $(moonlight_dirs)
monodroid_SUBDIRS := $(mobile_dirs)
monodroid_SUBDIRS := $(mobile_dirs) Mono.CSharp Microsoft.CSharp
monotouch_SUBDIRS := $(mobile_dirs)
net_3_5_SUBDIRS := $(net_3_5_only_dirs)
net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs)
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -148,7 +148,7 @@ namespace System.Windows.Forms.CarbonInternal {
Control c = Control.FromHandle (hwnd.client_window);
if (c != null) {
Form form = c.FindForm ();
if (form != null) {
if (form != null && XplatUICarbon.UnactiveWindow != form.Handle) {
Driver.SendMessage (form.Handle, Msg.WM_ACTIVATE, (IntPtr) WindowActiveFlags.WA_INACTIVE, IntPtr.Zero);
XplatUICarbon.ActiveWindow = IntPtr.Zero;
}
@@ -33,6 +33,7 @@ using System.ComponentModel.Design.Serialization;
using System.Collections;
using System.Runtime.InteropServices;
using System.Threading;
using System.Collections.Generic;
namespace System.Windows.Forms {
[DesignerCategory("Form")]
@@ -1792,13 +1793,13 @@ namespace System.Windows.Forms {
XplatUI.UngrabWindow(capture_window);
}
var disable = new List<Form> ();
foreach (Form form in Application.OpenForms)
{
if (form.Enabled == true)
{
disabled_by_showdialog.Add(form);
form.Enabled = false;
}
if (form.Enabled)
disable.Add (form);
foreach (Form form in disable){
disabled_by_showdialog.Add (form);
form.Enabled = false;
}
modal_dialogs.Add(this);
@@ -654,6 +654,11 @@ namespace System.Windows.Forms
public int Init ()
{
int p = (int) Environment.OSVersion.Platform;
if ((p != 4) && (p != 6) && (p != 128))
// Not running on Unix.
return -1;
CheckFDOMimePaths ();
if (!fdo_mime_available)
@@ -114,7 +114,8 @@ namespace System.Windows.Forms {
#region Public Static Methods
public static Screen FromControl(Control control) {
return Screen.FromPoint(control.Location);
var point = control.Parent != null ? control.Parent.PointToScreen(control.Location) : control.Location;
return Screen.FromPoint(point);
}
public static Screen FromHandle(IntPtr hwnd) {
@@ -122,7 +123,8 @@ namespace System.Windows.Forms {
control = Control.FromHandle(hwnd);
if (control != null) {
return Screen.FromPoint(control.Location);
var point = control.Parent != null ? control.Parent.PointToScreen(control.Location) : control.Location;
return Screen.FromPoint(point);
}
return Screen.PrimaryScreen;
}
@@ -237,8 +237,8 @@ namespace System.Windows.Forms
if (value != auto_size) {
auto_size = value;
if (auto_size) {
if (PreferredHeight != ClientSize.Height) {
ClientSize = new Size(ClientSize.Width, PreferredHeight);
if (PreferredHeight != Height) {
Height = PreferredHeight;
}
}
}
@@ -466,14 +466,16 @@ namespace System.Windows.Forms
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
// This returns the preferred outer height, not the client height.
public int PreferredHeight {
get {
int clientDelta = Height - ClientSize.Height;
if (BorderStyle != BorderStyle.None)
return Font.Height + 7;
return Font.Height + 7 + clientDelta;
// usually in borderless mode the top margin is 0, but
// try to access it, in case it was set manually, as ToolStrip* controls do
return Font.Height + TopMargin;
return Font.Height + TopMargin + clientDelta;
}
}
@@ -993,7 +995,7 @@ namespace System.Windows.Forms
base.OnFontChanged (e);
if (auto_size && !document.multiline) {
if (PreferredHeight != ClientSize.Height) {
if (PreferredHeight != Height) {
Height = PreferredHeight;
}
}
@@ -1762,8 +1764,8 @@ namespace System.Windows.Forms
{
if (!richtext) {
if (!document.multiline) {
if (PreferredHeight != ClientSize.Height) {
ClientSize = new Size (ClientSize.Width, PreferredHeight);
if (PreferredHeight != Height) {
Height = PreferredHeight;
}
}
}
@@ -48,6 +48,7 @@ namespace System.Windows.Forms {
// Internal members available to the event handler sub-system
internal static IntPtr FocusWindow;
internal static IntPtr ActiveWindow;
internal static IntPtr UnactiveWindow;
internal static IntPtr ReverseWindow;
internal static IntPtr CaretWindow;
@@ -785,6 +786,7 @@ namespace System.Windows.Forms {
internal override void Activate(IntPtr handle) {
if (ActiveWindow != IntPtr.Zero) {
UnactiveWindow = ActiveWindow;
ActivateWindow (HIViewGetWindow (ActiveWindow), false);
}
ActivateWindow (HIViewGetWindow (handle), true);
@@ -62,7 +62,7 @@ namespace Microsoft.Build.BuildEngine {
protected void Init ()
{
// all referenced item lists
consumedItemsByName = new Dictionary<string, BuildItemGroup> (StringComparer.InvariantCultureIgnoreCase);
consumedItemsByName = new Dictionary<string, BuildItemGroup> (StringComparer.OrdinalIgnoreCase);
// all referenced metadata
consumedMetadataReferences = new List<MetadataReference> ();
@@ -72,10 +72,10 @@ namespace Microsoft.Build.BuildEngine {
protected void BatchAndPrepareBuckets ()
{
batchedItemsByName = new Dictionary<string, BuildItemGroup> (StringComparer.InvariantCultureIgnoreCase);
batchedItemsByName = new Dictionary<string, BuildItemGroup> (StringComparer.OrdinalIgnoreCase);
// These will passed as is for every batch
commonItemsByName = new Dictionary<string, BuildItemGroup> (StringComparer.InvariantCultureIgnoreCase);
commonItemsByName = new Dictionary<string, BuildItemGroup> (StringComparer.OrdinalIgnoreCase);
ValidateUnqualifiedMetadataReferences ();
@@ -159,7 +159,7 @@ namespace Microsoft.Build.BuildEngine {
ICollection<Dictionary<string, BuildItemGroup>> Bucketize ()
{
var buckets = new Dictionary<string, Dictionary<string, BuildItemGroup>> (
StringComparer.InvariantCultureIgnoreCase);
StringComparer.OrdinalIgnoreCase);
// For each item list represented in "BatchedItemNames", and then for each item
// within that list, get the values for that item for each of the metadata in
@@ -199,7 +199,7 @@ namespace Microsoft.Build.BuildEngine {
if (!buckets.TryGetValue (bucket_key, out bucket))
// new bucket
buckets [bucket_key] = bucket = new Dictionary<string, BuildItemGroup> (
StringComparer.InvariantCultureIgnoreCase);
StringComparer.OrdinalIgnoreCase);
string itemGroup_key = item.Name;
BuildItemGroup itemGroup;
@@ -35,14 +35,21 @@ namespace Microsoft.Build.BuildEngine {
internal class BuildChoose {
BuildWhen otherwise;
Project project;
XmlElement xmlElement;
//Project project;
//ImportedProject importedProject;
//XmlElement xmlElement;
List <BuildWhen> whens;
public BuildChoose (XmlElement xmlElement, Project project)
: this (xmlElement, project, null)
{
this.xmlElement = xmlElement;
this.project = project;
}
internal BuildChoose (XmlElement xmlElement, Project project, ImportedProject importedProject)
{
//this.xmlElement = xmlElement;
//this.project = project;
//this.importedProject = importedProject;
this.whens = new List <BuildWhen> ();
foreach (XmlNode xn in xmlElement.ChildNodes) {
@@ -65,6 +72,9 @@ namespace Microsoft.Build.BuildEngine {
otherwise = new BuildWhen (xe, project);
}
}
DefinedInFileName = importedProject != null ? importedProject.FullFileName :
project != null ? project.FullFileName : null;
}
public void Evaluate ()
@@ -85,6 +95,8 @@ namespace Microsoft.Build.BuildEngine {
get { return whens; }
set { whens = value; }
}
internal string DefinedInFileName { get; private set; }
}
}
@@ -64,7 +64,7 @@ namespace Microsoft.Build.BuildEngine {
this.name = itemName;
this.finalItemSpec = taskItem.ItemSpec;
this.itemInclude = Utilities.Escape (taskItem.ItemSpec);
this.itemInclude = MSBuildUtils.Escape (taskItem.ItemSpec);
this.evaluatedMetadata = (Hashtable) taskItem.CloneCustomMetadata ();
this.unevaluatedMetadata = (Hashtable) taskItem.CloneCustomMetadata ();
}
@@ -127,7 +127,7 @@ namespace Microsoft.Build.BuildEngine {
{
if (ReservedNameUtils.IsReservedMetadataName (metadataName)) {
string metadata = ReservedNameUtils.GetReservedMetadata (FinalItemSpec, metadataName, evaluatedMetadata);
return (metadataName.ToLower () == "fullpath") ? Utilities.Escape (metadata) : metadata;
return (metadataName.ToLower () == "fullpath") ? MSBuildUtils.Escape (metadata) : metadata;
}
if (evaluatedMetadata.Contains (metadataName))
@@ -140,7 +140,7 @@ namespace Microsoft.Build.BuildEngine {
{
if (ReservedNameUtils.IsReservedMetadataName (metadataName)) {
string metadata = ReservedNameUtils.GetReservedMetadata (FinalItemSpec, metadataName, unevaluatedMetadata);
return (metadataName.ToLower () == "fullpath") ? Utilities.Escape (metadata) : metadata;
return (metadataName.ToLower () == "fullpath") ? MSBuildUtils.Escape (metadata) : metadata;
} else if (unevaluatedMetadata.Contains (metadataName))
return (string) unevaluatedMetadata [metadataName];
else
@@ -199,7 +199,7 @@ namespace Microsoft.Build.BuildEngine {
metadataName));
if (treatMetadataValueAsLiteral && !HasParentItem)
metadataValue = Utilities.Escape (metadataValue);
metadataValue = MSBuildUtils.Escape (metadataValue);
if (FromXml) {
XmlElement element = itemElement [metadataName];
@@ -231,7 +231,7 @@ namespace Microsoft.Build.BuildEngine {
evaluatedMetadata [name] = (string) e.ConvertTo (parent_item_group.ParentProject,
typeof (string), ExpressionOptions.ExpandItemRefs);
} else
evaluatedMetadata [name] = Utilities.Unescape (value);
evaluatedMetadata [name] = MSBuildUtils.Unescape (value);
unevaluatedMetadata [name] = value;
}
@@ -247,9 +247,9 @@ namespace Microsoft.Build.BuildEngine {
internal void Evaluate (Project project, bool evaluatedTo)
{
// FIXME: maybe make Expression.ConvertTo (null, ...) work as Utilities.Unescape ()?
// FIXME: maybe make Expression.ConvertTo (null, ...) work as MSBuildUtils.Unescape ()?
if (project == null) {
this.finalItemSpec = Utilities.Unescape (Include);
this.finalItemSpec = MSBuildUtils.Unescape (Include);
return;
}
@@ -76,6 +76,9 @@ namespace Microsoft.Build.BuildEngine {
buildItems.Add (bi);
project.LastItemGroupContaining [bi.Name] = this;
}
DefinedInFileName = importedProject != null ? importedProject.FullFileName :
project != null ? project.FullFileName : null;
}
public BuildItem AddNewItem (string itemName,
@@ -303,6 +306,8 @@ namespace Microsoft.Build.BuildEngine {
}
}
internal string DefinedInFileName { get; private set; }
internal bool FromXml {
get {
return itemGroupElement != null;
@@ -35,6 +35,7 @@ using System.Xml;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Mono.XBuild.Utilities;
namespace Microsoft.Build.BuildEngine {
public class BuildProperty {
@@ -80,7 +81,7 @@ namespace Microsoft.Build.BuildEngine {
this.propertyType = PropertyType.Normal;
this.parentProject = parentProject;
this.name = propertyElement.Name;
this.value = Utilities.UnescapeFromXml (propertyElement.InnerXml);
this.value = MSBuildUtils.UnescapeFromXml (propertyElement.InnerXml);
this.isImported = false;
}
@@ -70,7 +70,10 @@ namespace Microsoft.Build.BuildEngine {
AddProperty (bp);
}
} else
this.propertiesByName = new Dictionary <string, BuildProperty> (StringComparer.InvariantCultureIgnoreCase);
this.propertiesByName = new Dictionary <string, BuildProperty> (StringComparer.OrdinalIgnoreCase);
DefinedInFileName = importedProject != null ? importedProject.FullFileName :
(project != null ? project.FullFileName : null);
}
public BuildProperty AddNewProperty (string propertyName,
@@ -287,7 +290,9 @@ namespace Microsoft.Build.BuildEngine {
propertiesByName [propertyName] = value;
}
}
internal string DefinedInFileName { get; private set; }
internal GroupingCollection GroupingCollection {
get { return parentCollection; }
set { parentCollection = value; }
@@ -33,13 +33,13 @@ using System.Xml;
namespace Microsoft.Build.BuildEngine {
internal class BuildWhen {
Project parentProject;
//Project parentProject;
GroupingCollection groupingCollection;
XmlElement whenElement;
public BuildWhen (XmlElement whenElement, Project parentProject)
{
this.parentProject = parentProject;
//this.parentProject = parentProject;
this.groupingCollection = new GroupingCollection (parentProject);
if (whenElement == null)
throw new ArgumentNullException ("whenElement");
@@ -72,7 +72,9 @@ namespace Microsoft.Build.BuildEngine {
public override bool CanEvaluateToBool (Project context)
{
return left.CanEvaluateToBool (context) && right.CanEvaluateToBool (context);
// Short-circuiting, check only left expr, right
// would be required only if left == true
return left.CanEvaluateToBool (context);
}
public override bool CanEvaluateToNumber (Project context)
@@ -77,7 +77,9 @@ namespace Microsoft.Build.BuildEngine {
else if (falseValues [evaluatedToken.Value] != null)
return false;
else
throw new InvalidProjectFileException ();
throw new ExpressionEvaluationException (
String.Format ("Expression \"{0}\" evaluated to \"{1}\" instead of a boolean value",
token.Value, evaluatedToken.Value));
}
public override float NumberEvaluate (Project context)
@@ -46,7 +46,7 @@ namespace Microsoft.Build.BuildEngine {
Type t = typeof (ConditionFunctionExpression);
string [] names = new string [] { "Exists", "HasTrailingSlash" };
functions = new Dictionary <string, MethodInfo> ();
functions = new Dictionary <string, MethodInfo> (StringComparer.OrdinalIgnoreCase);
foreach (string name in names)
functions.Add (name, t.GetMethod (name, BindingFlags.NonPublic | BindingFlags.Static));
}
@@ -60,10 +60,10 @@ namespace Microsoft.Build.BuildEngine {
public override bool BoolEvaluate (Project context)
{
if (!functions.ContainsKey (name))
throw new InvalidOperationException ();
throw new InvalidOperationException ("Unknown function named: " + name);
if (functions [name] == null)
throw new InvalidOperationException ();
throw new InvalidOperationException ("Unknown function named: " + name);
MethodInfo mi = functions [name];
object [] argsArr = new object [args.Count + 1];
@@ -53,12 +53,22 @@ namespace Microsoft.Build.BuildEngine {
if (String.IsNullOrEmpty (condition))
return true;
ConditionExpression ce = ParseCondition (condition);
try {
ConditionExpression ce = ParseCondition (condition);
if (!ce.CanEvaluateToBool (context))
throw new InvalidProjectFileException (String.Format ("Can not evaluate \"{0}\" to bool.", condition));
if (!ce.CanEvaluateToBool (context))
throw new InvalidProjectFileException (String.Format ("Can not evaluate \"{0}\" to bool.", condition));
return ce.BoolEvaluate (context);
return ce.BoolEvaluate (context);
} catch (ExpressionParseException epe) {
throw new InvalidProjectFileException (
String.Format ("Unable to parse condition \"{0}\" : {1}", condition, epe.Message),
epe);
} catch (ExpressionEvaluationException epe) {
throw new InvalidProjectFileException (
String.Format ("Unable to evaluate condition \"{0}\" : {1}", condition, epe.Message),
epe);
}
}
public static ConditionExpression ParseCondition (string condition)
@@ -49,7 +49,7 @@ namespace Microsoft.Build.BuildEngine {
// bool ignoreWhiteSpace = true;
static TokenType[] charIndexToTokenType = new TokenType[128];
static Dictionary <string, TokenType> keywords = new Dictionary <string, TokenType> (StringComparer.InvariantCultureIgnoreCase);
static Dictionary <string, TokenType> keywords = new Dictionary <string, TokenType> (StringComparer.OrdinalIgnoreCase);
static ConditionTokenizer ()
{
@@ -197,8 +197,68 @@ namespace Microsoft.Build.BuildEngine {
public void ApplyParameter (string parameterName,
string parameterValue)
{
// FIXME: what we should do here? in msbuild it isn't
// changing "parameters" property
switch (parameterName) {
case "PerformanceSummary":
this.performanceSummary = true;
break;
case "Summary":
this.showSummary = true;
break;
case "NoSummary":
this.showSummary = false;
break;
case "NoItemAndPropertyList":
this.noItemAndPropertyList = true;
break;
default:
if (parameterName.StartsWith ("Verbosity="))
ParseVerbosity (parameterName);
break;
}
}
void ParseVerbosity (string s)
{
string key, value;
if (!TrySplitKeyValuePair (s, out key, out value))
throw new LoggerException ("Unknown Verbosity, should be set as 'Verbosity=<verbosity>'");
switch (value) {
case "q":
case "quiet":
Verbosity = LoggerVerbosity.Quiet;
break;
case "m":
case "minimal":
Verbosity = LoggerVerbosity.Minimal;
break;
case "n":
case "normal":
Verbosity = LoggerVerbosity.Normal;
break;
case "d":
case "detailed":
Verbosity = LoggerVerbosity.Detailed;
break;
case "diag":
case "diagnostic":
Verbosity = LoggerVerbosity.Diagnostic;
break;
default:
throw new LoggerException (String.Format ("Unknown verbosity - '{0}'", s));
}
}
bool TrySplitKeyValuePair (string pair, out string key, out string value)
{
key = value = null;
string[] parts = pair.Split ('=');
if (parts.Length != 2)
return false;
key = parts [0];
value = parts [1];
return true;
}
public virtual void Initialize (IEventSource eventSource)
@@ -220,6 +280,9 @@ namespace Microsoft.Build.BuildEngine {
eventSource.MessageRaised += MessageHandler;
eventSource.WarningRaised += WarningHandler;
eventSource.ErrorRaised += ErrorHandler;
if (!String.IsNullOrEmpty (parameters))
ParseParameters ();
}
public void BuildStartedHandler (object sender, BuildStartedEventArgs args)
@@ -456,9 +519,11 @@ namespace Microsoft.Build.BuildEngine {
StringBuilder sb = new StringBuilder ();
for (int i = 0; i < indent; i++)
sb.Append ('\t');
sb.Append (message);
writeHandler (sb.ToString ());
string indent_str = sb.ToString ();
foreach (string line in message.Split (new string[] {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries))
writeHandler (indent_str + line);
} else {
writeHandler (message);
}
@@ -605,21 +670,8 @@ namespace Microsoft.Build.BuildEngine {
private void ParseParameters ()
{
string[] splittedParameters = parameters.Split (';');
foreach (string s in splittedParameters ) {
switch (s) {
case "PerformanceSummary":
this.performanceSummary = true;
break;
case "NoSummary":
this.showSummary = false;
break;
case "NoItemAndPropertyList":
this.noItemAndPropertyList = true;
break;
default:
throw new ArgumentException ("Invalid parameter : " + s);
}
}
foreach (string s in splittedParameters )
ApplyParameter (s, null);
}
public virtual void Shutdown ()
@@ -777,8 +829,6 @@ namespace Microsoft.Build.BuildEngine {
if (value == null)
throw new ArgumentNullException ();
parameters = value;
if (parameters != String.Empty)
ParseParameters ();
}
}
@@ -57,7 +57,6 @@ namespace Microsoft.Build.BuildEngine {
{
Dictionary <string, bool> excludedItems;
List <ITaskItem> includedItems;
string[] splitExclude;
if (includes == null)
throw new ArgumentNullException ("Includes");
@@ -84,7 +83,7 @@ namespace Microsoft.Build.BuildEngine {
FileInfo[] fileInfo;
string name = include_item.ItemSpec;
if (name.IndexOf ('?') == -1 && name.IndexOf ('*') == -1) {
if (!HasWildcard (name)) {
if (!excludedItems.ContainsKey (Path.GetFullPath(name)))
includedItems.Add (include_item);
} else {
@@ -111,9 +110,14 @@ namespace Microsoft.Build.BuildEngine {
int wildcard_offset = full_path.IndexOf ("**");
foreach (FileInfo fi in fileInfo) {
if (!excludedItems.ContainsKey (fi.FullName)) {
string itemName = fi.FullName;
if (!Path.IsPathRooted (name) && itemName.Length > baseDirectory.FullName.Length && itemName.StartsWith (baseDirectory.FullName))
itemName = itemName.Substring (baseDirectory.FullName.Length + 1);
if (!excludedItems.ContainsKey (itemName) && !excludedItems.ContainsKey (Path.GetFullPath (itemName))) {
TaskItem item = new TaskItem (include_item);
item.ItemSpec = fi.FullName;
item.ItemSpec = itemName;
if (wildcard_offset >= 0) {
string rec_dir = Path.GetDirectoryName (fi.FullName.Substring (wildcard_offset));
if (rec_dir.Length > 0)
@@ -152,6 +156,7 @@ namespace Microsoft.Build.BuildEngine {
// skip the "drive:"
offset = 1;
}
fileInfo = ParseIncludeExclude (separatedPath, offset, baseDirectory);
foreach (FileInfo fi in fileInfo)
if (!excludedItems.ContainsKey (fi.FullName))
@@ -161,55 +166,66 @@ namespace Microsoft.Build.BuildEngine {
private FileInfo[] ParseIncludeExclude (string[] input, int ptr, DirectoryInfo directory)
{
return ParseIncludeExclude (input, ptr, directory, false);
}
private FileInfo[] ParseIncludeExclude (string[] input, int ptr, DirectoryInfo directory, bool recursive)
{
DirectoryInfo[] di;
List <FileInfo> fileInfos = new List<FileInfo> ();
if (input.Length > 1 && ptr == 0 && input [0] == String.Empty)
ptr++;
if (input.Length == ptr + 1) {
FileInfo[] fi;
fi = directory.GetFiles (input [ptr]);
return fi;
} else {
DirectoryInfo[] di;
FileInfo[] fi;
List <FileInfo> fileInfos = new List <FileInfo> ();
if (input [ptr] == ".") {
di = new DirectoryInfo [1];
di [0] = directory;
} else if (input [ptr] == "..") {
di = new DirectoryInfo [1];
di [0] = directory.Parent;
} else if (input[ptr] == "**")
{
// Read this directory and all subdirectories recursive
Stack<DirectoryInfo> currentDirectories = new Stack<DirectoryInfo>();
currentDirectories.Push(directory);
List<DirectoryInfo> allDirectories = new List<DirectoryInfo>();
while (currentDirectories.Count > 0)
{
DirectoryInfo current = currentDirectories.Pop();
allDirectories.Insert (0, current);
foreach (DirectoryInfo dir in current.GetDirectories())
{
currentDirectories.Push(dir);
}
}
// No further directories shall be read
di = allDirectories.ToArray();
} else {
di = directory.GetDirectories (input [ptr]);
}
foreach (DirectoryInfo info in di) {
fi = ParseIncludeExclude (input, ptr + 1, info);
foreach (FileInfo file in fi)
fileInfos.Add (file);
}
fi = new FileInfo [fileInfos.Count];
int i = 0;
foreach (FileInfo file in fileInfos)
fi [i++] = file;
return fi;
string cur = input.Length > ptr ? input[ptr] : input[input.Length-1];
bool dot = cur == ".";
recursive = recursive || cur == "**";
bool parent = cur == "..";
if (input.Length <= ptr + 1) {
if (parent)
directory = directory.Parent;
if ((input.Length == ptr + 1 && !recursive) || input.Length <= ptr)
return directory.GetFiles (cur);
}
if (dot) {
di = new DirectoryInfo [1];
di [0] = directory;
} else if (parent) {
di = new DirectoryInfo [1];
di [0] = directory.Parent;
} else if (recursive)
{
// Read this directory and all subdirectories recursive
Stack<DirectoryInfo> currentDirectories = new Stack<DirectoryInfo>();
currentDirectories.Push(directory);
List<DirectoryInfo> allDirectories = new List<DirectoryInfo>();
while (currentDirectories.Count > 0)
{
DirectoryInfo current = currentDirectories.Pop();
allDirectories.Insert (0, current);
foreach (DirectoryInfo dir in current.GetDirectories())
{
currentDirectories.Push(dir);
}
}
// No further directories shall be read
di = allDirectories.ToArray();
} else
di = directory.GetDirectories (cur);
foreach (DirectoryInfo info in di)
fileInfos.AddRange (ParseIncludeExclude (input, ptr + 1, info, recursive));
return fileInfos.ToArray ();
}
public static bool HasWildcard (string expression)
{
return expression.IndexOf ('?') >= 0 || expression.IndexOf ('*') >= 0;
}
public DirectoryInfo BaseDirectory {
@@ -31,6 +31,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Mono.XBuild.Utilities;
@@ -44,7 +45,7 @@ namespace Microsoft.Build.BuildEngine {
const string defaultTasksProjectName = "Microsoft.Common.tasks";
EventSource eventSource;
bool buildStarted;
ToolsetDefinitionLocations toolsetLocations;
//ToolsetDefinitionLocations toolsetLocations;
BuildPropertyGroup global_properties;
//IDictionary importedProjects;
List <ILogger> loggers;
@@ -72,7 +73,7 @@ namespace Microsoft.Build.BuildEngine {
public Engine (ToolsetDefinitionLocations locations)
: this (ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version20))
{
toolsetLocations = locations;
//toolsetLocations = locations;
}
public Engine (BuildPropertyGroup globalProperties)
@@ -85,7 +86,7 @@ namespace Microsoft.Build.BuildEngine {
: this (ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version20))
{
this.global_properties = globalProperties;
toolsetLocations = locations;
//toolsetLocations = locations;
}
// engine should be invoked with path where binary files are
@@ -228,6 +229,33 @@ namespace Microsoft.Build.BuildEngine {
IDictionary targetOutputs,
BuildSettings buildFlags, string toolsVersion)
{
bool result = false;
try {
StartEngineBuild ();
result = BuildProjectFileInternal (projectFile, targetNames, globalProperties, targetOutputs, buildFlags, toolsVersion);
return result;
} catch (InvalidProjectFileException ie) {
this.LogErrorWithFilename (projectFile, ie.Message);
this.LogMessage (MessageImportance.Low, String.Format ("{0}: {1}", projectFile, ie.ToString ()));
return false;
} catch (Exception e) {
if (buildStarted) {
this.LogErrorWithFilename (projectFile, e.Message);
this.LogMessage (MessageImportance.Low, String.Format ("{0}: {1}", projectFile, e.ToString ()));
}
throw;
} finally {
EndEngineBuild (result);
}
}
bool BuildProjectFileInternal (string projectFile,
string[] targetNames,
BuildPropertyGroup globalProperties,
IDictionary targetOutputs,
BuildSettings buildFlags, string toolsVersion)
{
if ((buildFlags & BuildSettings.DoNotResetPreviouslyBuiltTargets) != BuildSettings.DoNotResetPreviouslyBuiltTargets)
builtTargetsOutputByName.Clear ();
@@ -308,8 +336,10 @@ namespace Microsoft.Build.BuildEngine {
internal void RemoveLoadedProject (Project p)
{
if (p.FullFileName != String.Empty)
if (!String.IsNullOrEmpty (p.FullFileName)) {
ClearBuiltTargetsForProject (p);
projects.Remove (p.FullFileName);
}
}
internal void AddLoadedProject (Project p)
@@ -328,8 +358,7 @@ namespace Microsoft.Build.BuildEngine {
project.CheckUnloaded ();
if (project.FullFileName != String.Empty)
projects.Remove (project.FullFileName);
RemoveLoadedProject (project);
project.Unload ();
}
@@ -364,12 +393,25 @@ namespace Microsoft.Build.BuildEngine {
loggers.Clear ();
}
internal void StartProjectBuild (Project project, string [] target_names)
void StartEngineBuild ()
{
if (!buildStarted) {
LogBuildStarted ();
buildStarted = true;
}
}
void EndEngineBuild (bool succeeded)
{
if (buildStarted && currentlyBuildingProjectsStack.Count == 0) {
LogBuildFinished (succeeded);
buildStarted = false;
}
}
internal void StartProjectBuild (Project project, string [] target_names)
{
StartEngineBuild ();
if (currentlyBuildingProjectsStack.Count == 0 ||
String.Compare (currentlyBuildingProjectsStack.Peek ().FullFileName, project.FullFileName) != 0)
@@ -395,10 +437,15 @@ namespace Microsoft.Build.BuildEngine {
String.Compare (top_project.FullFileName, currentlyBuildingProjectsStack.Peek ().FullFileName) != 0)
LogProjectFinished (top_project, succeeded);
if (currentlyBuildingProjectsStack.Count == 0) {
LogBuildFinished (succeeded);
buildStarted = false;
}
EndEngineBuild (succeeded);
}
internal void ClearBuiltTargetsForProject (Project project)
{
string project_key = project.GetKeyForTarget (String.Empty, false);
var to_remove_keys = BuiltTargetsOutputByName.Keys.Where (key => key.StartsWith (project_key)).ToList ();
foreach (string to_remove_key in to_remove_keys)
BuiltTargetsOutputByName.Remove (to_remove_key);
}
void LogProjectStarted (Project project, string [] target_names)
@@ -508,16 +555,14 @@ namespace Microsoft.Build.BuildEngine {
public string DefaultToolsVersion {
get {
if (String.IsNullOrEmpty (defaultToolsVersion))
#if NET_4_0
return "4.0";
#elif NET_3_5
return "3.5";
#else
return "2.0";
#endif
return defaultToolsVersion;
// This is used as the fall back version if the
// project can't find a version to use
// Hard-coded to 2.0, so it allows even vs2005 projects
// to build correctly, as they won't have a ToolsVersion
// set!
return String.IsNullOrEmpty (defaultToolsVersion)
? "2.0"
: defaultToolsVersion;
}
set {
if (Toolsets [value] == null)
@@ -57,69 +57,87 @@ namespace Microsoft.Build.BuildEngine {
{
if (customEventRaised != null)
customEventRaised (sender, cbea);
FireAnyEvent (sender, cbea);
}
public void FireErrorRaised (object sender, BuildErrorEventArgs beea)
{
if (errorRaised != null)
errorRaised (sender, beea);
FireAnyEvent (sender, beea);
}
public void FireMessageRaised (object sender, BuildMessageEventArgs bmea)
{
if (messageRaised != null)
messageRaised (sender, bmea);
FireAnyEvent (sender, bmea);
}
public void FireWarningRaised (object sender, BuildWarningEventArgs bwea)
{
if (warningRaised != null)
warningRaised (sender, bwea);
FireAnyEvent (sender, bwea);
}
public void FireTargetStarted (object sender, TargetStartedEventArgs tsea)
{
if (targetStarted != null)
targetStarted (sender, tsea);
FireAnyEvent (sender, tsea);
}
public void FireTargetFinished (object sender, TargetFinishedEventArgs tfea)
{
if (targetFinished != null)
targetFinished (sender, tfea);
FireAnyEvent (sender, tfea);
}
public void FireBuildStarted (object sender, BuildStartedEventArgs bsea)
{
if (buildStarted != null)
buildStarted (sender, bsea);
FireAnyEvent (sender, bsea);
}
public void FireBuildFinished (object sender, BuildFinishedEventArgs bfea)
{
if (buildFinished != null)
buildFinished (sender, bfea);
FireAnyEvent (sender, bfea);
}
public void FireProjectStarted (object sender, ProjectStartedEventArgs psea)
{
if (projectStarted != null)
projectStarted (sender, psea);
FireAnyEvent (sender, psea);
}
public void FireProjectFinished (object sender, ProjectFinishedEventArgs pfea)
{
if (projectFinished != null)
projectFinished (sender, pfea);
FireAnyEvent (sender, pfea);
}
public void FireTaskStarted (object sender, TaskStartedEventArgs tsea)
{
if (taskStarted != null)
taskStarted (sender, tsea);
FireAnyEvent (sender, tsea);
}
public void FireTaskFinished (object sender, TaskFinishedEventArgs tfea)
{
if (taskFinished != null)
taskFinished (sender, tfea);
FireAnyEvent (sender, tfea);
}
public void FireAnyEvent (object sender, BuildEventArgs bea)
{
if (anyEventRaised != null)
anyEventRaised (sender, bea);
}
public event AnyEventHandler AnyEventRaised {
@@ -283,4 +301,4 @@ namespace Microsoft.Build.BuildEngine {
}
}
#endif
#endif
Loaded 100 of 1934 files, more files were not shown because too many files have changed in this diff. Show more