Commit Graph
417 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Miguel de Icaza d6c6b28516 [build] Address the System.Configuration test problem
The compiler seems to ignore reference assemblies with a full path when the
-lib: directive is passed, so things like:

      -lib:FOO -r:BAR/bar.dll

Would resolve bar.dll to FOO/bar.dll, instead of BAR/bar.dll.

This is a problem with the test suite as it needs to reference the
final build of System.Configuration from $(the_libdir_base) and not
the intermediate step.

To work around this issue, we introduce "test_remove" variable that is
a piece of text that will be removed from the TEST_COMPILE variable
when this is evaluated.

This means that it gets CSCOMPILE and then it removes the bits that we
are not interested in.
2014-05-27 14:59:33 -04:00
Rodrigo Kumpera d8eaf057ce [System.Configuration] Temporary fix for system.configuration test suite. 2014-05-27 11:04:42 -04:00
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Miguel de Icaza ae90d07888 [build] Ensure that staged build directories are set on LOCAL_MCS_FLAGS
The LOCAL_MCS_FLAGS are passed to the compiler before the standard
directory for the profile.  This is important both for correctness,
and also assists the solution generator, since we can now precisely
determine which intermediate project must be referenced.
2014-05-23 17:15:52 -04:00
Marek Safar e00a400b3b Merge pull request #164 from LogosBible/AppSettingsFileChanges
Use the configuration file path directory for AppSettings File directory
2014-05-22 09:13:56 +02:00
Miguel de Icaza dad7d32075 [build] System.Configuration: fix signatures.
We must use the secxml library directory to reference System, not
bare.

The bare build does not contain a full signature for some interfaces
(there is a using XmlNode = object in a few interfaces that
System.Configuration depends on).

So System.Configuration must reference the System that has been
compiled with XML support.
2014-05-18 23:11:29 -04:00
Miguel de Icaza 9adb22769b [build] Prevent cyclic targets from being built in parallel
Since we are invoking make recursively to satisfy the dependencies
for any of the cyclic components, we need to inform make to not try
to parallelize any work on any of the cyclic dependencies, otherwise
multiple builds will execute building the same binary, and the result
will be truncated outputs.

For example, System's Makefile would launch all the parallel builds for
the dependencies:

        $(secxml_libdir)/System.dll             \
        $(the_libdir_base)System.Xml.dll        \
        $(the_libdir_base)Mono.Security.dll     \
        $(bare_libdir)/System.dll

They could be launched in parallel, and in turn the makefiles on those
directories might try simultaneously to invoke recursively a component
that has not been built yet.

So we use .NOTPARALLEL to flag all the cyclic dependencies on a given
directory to instruct make to not run those in parallel.
2014-05-09 11:27:53 -04:00
Miguel de Icaza e0e3f3cd4f [build] Staged setup for building assemblies with cyclic dependencies
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies.   This deals directly with
the following cycle:

    System.dll requires:
	System.Configuration.dll
	Mono.Security.dll
	System.Xml.dll

	They all require System.dll to be built

    System.Xml requires:
	System.dll
	System.Configuration.dll

    System.Security.dll requires:
	System.dll
	Mono.Security.dll
	System.Xml.dll

Principle
=========

The patch works by directing the build infrastructure to place
intermediate build steps on their own directory.  For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".

The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.

The third time is the final build, and that one ends in the profile
directory.

The same principle is applied to System.Xml.

Better Dependency Tracking
==========================

To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies.  This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.

Bug fixes
=========

We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support.  This patch introduces back the changes to build System.Xml
in two steps.

This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).

Details
=======

library.make:

	Introduces a new "the_libdir_base" which is the raw directory
	where the final output will go.   This points to the same location
	that libdir_base previously pointed to.

	The existing libdir_base is modified to contain an optional
	"intermediate" directory, where intermediate builds can be
	placed.

Other cycles
============

The System.Design assembly was listed as having cycles, but while this
cycle exists in theory, in practice we have not implemented any of the
code that brings the cycle in System.Windows.Forms.Design's
ImageListImageEditor and chances are, we wont any time soon.
2014-05-09 11:27:53 -04:00
Tom Philpot dbee33d41c Add tests for AppSettingsSection. 2014-05-05 08:18:02 -07:00
Tom Philpot 8553af0d71 Use the configuration file path directory as the working directory for the file attribute of the appSettings section instead of the current working directory. 2014-05-03 06:42:00 -07:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Andrés G. Aragoneses d4ed8a8e9e [System.Configuration/Test] Try to track down failure in buildbot
This TestConnectionStringRetrieval unit test (committed by me some months
ago) succeeds for me in a clean checkout, but I don't understand why it
fails in the buildbot, so let's place some sanity check in it.
2013-11-14 13:08:07 +01:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Andres G. Aragoneses 7c6681afd0 [Sys.Configuration] Remove unneeded NET_2_0 ifdefs 2013-05-20 17:55:09 +01:00
Andres G. Aragoneses b0801115fc [Sys.Configuration] Remove a misleading MonoTODO in ConnectionStrings
The ConnectionStrings property of System.Configuration.ConfigurationManager
works perfectly, so this MonoTODO is not needed.

A unit test is also added to demonstrate that it's fully working and to
prevent it failing in the future.
2013-05-20 17:36:24 +01:00
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Martin Baulig 5892855775 [System.Configuration]: Fix IsModified() logic for complex elements. 2012-12-29 01:25:48 +01:00
Martin Baulig 0b57238424 [System.Configuration]: SaveMode and UserLevel.
* Configuration.Save() and SaveAs() now honors the
  `ConfigurationSaveMode' argument.

* Check whether the file has been modified prior to saving.

* Fix ConfigurationUserLevel inheritance.

* Implement ConfigurationElement.IsModified().

* New ConfigurationSaveTest.cs test:

  - load a custom section using different parent configuration
    files using ExeConfigurationFileMap and different
    ConfigurationUserLevel values.

  - save configuration using different ConfigurationSaveMode
    arguments and different inherited parent configurations.

* ExeConfigurationFileMapTest.cs: Add error checks for missing
  required filenames.

* New TestUtil.cs helper class:

  - RunWithTempFile() and RunWithTempFiles() helper functions.
  - DotNetVersion, ThisDllName and ThisConfigFileName properties,
    moving all the #ifdef's into one central place.
2012-12-21 10:20:18 +01:00
Martin Baulig bb0721b63f [System.Configuration]: Imlement ConfigurationElement.EvaluationContext. 2012-11-21 02:03:20 +01:00
Martin Baulig 14ec9c7fb7 [System.Configuration]: Fix filenames in ExeConfigurationFileMap. 2012-11-21 02:03:03 +01:00
Martin Baulig 35fed1244f Fix ConfigurationManagerTest for .NET 4.0 and 4.5.
Use a new 'DotNetVersion' property rather than hardcoding 'net_2_0'.
2012-11-21 02:02:54 +01:00
Andres G. Aragoneses 49886383b0 [System.Configuration] IntegerValidator's maxValue was 0 even if not used
When using IntegerValidator, if only MinValue is used, max value should
not be set by default to 0. Fix and unit tests included.

This fixes BNC#654721 (https://bugzilla.novell.com/show_bug.cgi?id=654721)
and therefore allows Enyim.Memcached to be used with Mono.
2012-10-31 23:40:39 +00:00
Marek Safar 452fcbb7d9 Better build profile check 2012-10-22 13:19:34 +01:00
Thorsten Tarrach 48bc60b40b Not validating if null value is null
This allows parsing of enterprise library config extensions and is in line with the way MS .net handles things.
2012-07-04 13:46:34 +02:00
Thorsten Tarrach e45b72508a Improved error messages so that it becomes clear where configuration errors come from 2012-07-04 13:16:34 +02:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Miguel de Icaza 2ff32b7ea6 [System.Configuration] Fix System.Configuration to cope with XmlReaders which might not be ConfigXmlTextReaders, fixes test suite 2012-05-30 17:55:57 -04:00
Miguel de Icaza 477b011228 [System.Configuration] Disable broken test 2012-05-30 17:55:56 -04:00
QuickJack 117ceb10b7 Fixes a waring in System.Configuration. 2012-05-08 20:28:07 +02:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Miguel de Icaza e7951e6ee0 Merge pull request #205 from m3rlinez/master
System.Configuration: Matched `configSource` behavior with MS.NET
2012-03-19 08:54:51 -07:00
Marek Safar 4bdd2d7170 Fix few unit tests 2012-03-15 14:06:46 +00:00
Marek Safar 9b3232e7df Merge pull request #228 from QuickJack/3e163743eda89cc8c239779a75dd245be12aee3c
Fixes a bunch of warnings in System.Configuration
2012-02-24 00:21:12 -08:00
QuickJack 3e163743ed Fixes a bunch of warnings in System.Configuration. 2012-02-23 23:42:05 +01:00
Marek Safar 2869713c48 Fix some compiler warnings 2012-02-17 12:37:25 +00:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00:00
Gonzalo Paniagua Javier c251b192a5 Merge pull request #217 from QuickJack/master
Fixes several bugs and issues in Mono's configuration stack
2012-02-17 04:03:07 -08:00
Marek Safar 261e0ba03b Merge pull request #225 from mistoll/master
bug 3412 unit test
2012-02-12 09:14:39 -08:00
Michael Stoll 6bfc9f01db Added unit test for bug #3412 2012-02-12 18:08:49 +01:00
Marek Safar 88fde5a568 Add VS project files for test project 2012-02-10 14:56:23 +00:00
Marek Safar 91d40d754d Update class library csproj files 2012-02-09 11:25:18 +00:00
Martin 38e3af5810 Extents #217 by brackets according to gonzalo's suggestion. 2012-02-05 13:35:21 +01:00
Martin fb8f50a75a Removes unnecessary whitespace which was added in #217 2012-02-05 13:30:44 +01:00
Martin 132c8fd83a Provides basic support for ConfigurationElement.ElementInformation.IsPresent. 2012-01-18 10:45:58 +01:00
Martin 103ec0854c Provides basic support for ConfigurationElement.ElementInformation.IsPresent 2012-01-18 10:38:44 +01:00
Martin 447fb3c842 Extension to commit 17bd0c42c5. This ensures that inheritedLimitIndex will always be >= 0. 2012-01-11 12:12:33 +01:00