Commit Graph
382 Commits
Author SHA1 Message Date
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 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 a3de5976ed Merge pull request #1041 from mono/staged-cyclic-builds
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.
2014-05-16 15:48:41 -04:00
Miguel de Icaza effaf02382 Adjust the path for Mono.Security 2014-05-14 23:25:28 -04:00
Joel Martinez e9068ebf5b [docs] documentation import for 'returns' elements. 2014-05-12 14:52:53 -04:00
Joel Martinez d4fcdb95b4 [docs] namespace documentation import. 2014-05-12 14:52:47 -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 8cb819d880 Use LOCAL_MCS_FLAGS to prepend the directories 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
Joel Martinez 6999270099 [docs] Import of Microsoft BCL Documentation.
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Joel Martinez 46bf898791 docupdate: System.Security documentation update 2014-03-10 15:14:01 -04:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02: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
Miguel de Icaza 8a5f02ff75 Remove more old compile defines 2012-07-18 22:27:21 -04:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Marek Safar d5d4b9c22b Fix some warnings 2012-06-08 12:48:08 +01:00
Miguel de Icaza 1c19405a83 [class libraries] drop NET_1_0 definitions 2012-06-02 21:46:34 -04:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00: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
Marek Safar 3ecb5142f6 Introduce separate .net 4.5 profile 2011-09-23 19:37:04 +01:00
Sebastien Pouliot 29cbc706f4 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 09:58:14 -04:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Marek Safar 659a007604 Turn X509Certificate2UI into static class for 4.0 2011-01-17 14:08:36 +00:00
Marek Safar aad016fd87 Clean up few more warnings 2010-10-15 15:20:25 +01:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Atsushi Eno 642ee8319d 2010-07-09 Atsushi Enomoto <[email protected]>
* SignedXml.cs : avoid using LoadXml() to load xml element as in
	  literal string. Use ImportNode() instead.
	  Copy namespaces for a referenced node found in envelope document too.


svn path=/trunk/mcs/; revision=160143
2010-07-09 16:24:09 +00:00
Jonathan Chambers 8c5f97d5a4 2010-06-10 Jonathan Chambers <[email protected]>
* Add System.Security.csproj and new configurations for Mono.Security and System.

svn path=/trunk/mcs/; revision=158846
2010-06-11 21:18:35 +00:00
Jb Evain b3f3ef56c8 rename net_2_1 to moonlight
svn path=/trunk/mcs/; revision=153638
2010-03-16 08:32:37 +00:00
Sebastien Pouliot 14846e6f2f Security fix for CVE-2009-0217
svn path=/trunk/mcs/; revision=137886
2009-07-14 18:45:19 +00:00
Robert Jordan fc7def2009 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136968
2009-06-26 15:00:46 +00:00
Robert Jordan d05e8a0a33 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136962
2009-06-26 14:00:28 +00:00
Marek Safar 2d36f50709 2009-06-05 Marek Safar <[email protected]>
* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
	dependency.


svn path=/trunk/mcs/; revision=135540
2009-06-05 16:27:11 +00:00
Marek Safar 6f667408d9 Add handling of new net_4_0 profile
svn path=/trunk/mcs/; revision=135326
2009-06-03 17:46:12 +00:00
Sebastien Pouliot 54587bcdea 2008-11-01 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Add new tests to build
		System.Security.Cryptography.Pkcs/CmsRecipientCollectionTest.cs
		System.Security.Cryptography.Xml/TransformTest.cs
		System.Security.Cryptography.Xml/XmlDecryptionTransformTest.cs


svn path=/trunk/mcs/; revision=117623
2008-11-02 00:29:40 +00:00
Sebastien Pouliot bd6370ad74 2008-11-01 Sebastien Pouliot <[email protected]>
* EncryptedXml.cs: Add proper null check inside methods.
	* SignedXml.cs: GetIdElement returns null if either of its parameter
	is null.
	* Transform.cs: Comment compatibility-NRE in GetDigestedOutput.
	* XmlDecryptionTransform.cs: IsTargetElement returns null if either
	of its parameter is null.
	* XmlDsigC14NTransform.cs: Comment compatibility-NRE in 
	GetDigestedOutput.
	* XmlDsigExcC14NTransform.cs: Comment compatibility-NRE in 
	GetDigestedOutput.
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117622
2008-11-02 00:25:45 +00:00
Sebastien Pouliot 899b4184dc 2008-11-01 Sebastien Pouliot <[email protected]>
* CmsRecipientCollection.cs: Add comment about compatibility-NRE
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117621
2008-11-02 00:22:45 +00:00
Sebastien Pouliot 1bad75202f 2008-11-01 Sebastien Pouliot <[email protected]>
* EncryptedXmlTest.cs: Add null check test cases for many methods.
	* SignedXmlTest.cs: New. Check that GetIdElement returns null when
	either parameter is null.
	* TransformTest.cs: New. Check null check behavior.
	* XmlDecryptionTransformTest.cs: New. Check null check behavior.
	* XmlDsigC14NTransformTest.cs: Confirm MS.NET NRE behavior inside
	GetDigestedOutput method.
	* XmlDsigExcC14NTransformTest.cs: Confirm MS.NET NRE behavior inside
	GetDigestedOutput method.


svn path=/trunk/mcs/; revision=117620
2008-11-02 00:21:25 +00:00
Sebastien Pouliot a484ae2897 2008-11-01 Sebastien Pouliot <[email protected]>
* CmsRecipientCollectionTest.cs: Verify NRE behavior of ctor.


svn path=/trunk/mcs/; revision=117619
2008-11-02 00:18:43 +00:00
Jonathan Pryor ee97d1824e Migrating from monodoc/class/System.Security to mcs/class/System.Security/Documentation...
svn path=/trunk/mcs/; revision=116214
2008-10-17 14:12:08 +00:00
Gert Driesen 19098dd864 * XmlDsigXsltTranformTest.cs: Added test for .ctor (bool).
* XmlDsigEnvelopedTransformTest.cs: Added test for .ctor (bool). Use
Assert class. Improved properties tests.
* XmlDsigC14TransformTest.cs: Added test for .ctor (bool).
* XmlDsigExcC14NTransformTest.cs: Added .ctor tests and added asserts
IncludsiveNamespacesPrefixList
* XmlDsigExcC14NWithCommentsTransformTest.cs: Added basic .ctor and
properties tests.
* XmlDsigC14NWithCommentsTransformTest.cs: Fixed line endings.
* XmlLicenseTransformTest.cs: Added basic .ctor and properties tests.
* XmlDsigBase64Transform.cs: Use constant for Algorithm namespace.
* XmlDsigExcC14NTransform.cs: Fixed ctors to use WithComments
algorithm if includeComments is true. Assign includeNamespacesPrefixList
to instance field.
* XmlDsigExcC14NWithCommentsTransform.cs: Remove unnecessary
assignment to Algorithm now that base ctor is fixed.
* XmlDsigC14NWithCommentsTransform.cs: Remove unnecessary assignment
to Algorithm now that base ctor is fixed.
* XmlDsigC14NTransform.cs: In default ctor, just invoke .ctor (bool).
In .ctor (bool), assign WithComments algorithm if includeComments is
true. Use constants for Algorithm namespace.
* XmlDsigEnvelopedSignatureTransform.cs: Use constant for Algorithm
namespace.
* XmlDsigXPathTransform.cs: Use constant for Algorithm namespace.
* XmlDsigXsltTransform.cs: Use constant for Algorithm namespace.
* XmlLicenseTransform.cs: Assign Algorithm in ctor.
* XmlSignature.cs: Added constant for XmlLicenseTransform algorithm.
* System.Security_test.dll.sources: Added XmlLicenseTransformTest.cs
and XmlDsigExcC14NWithCommentsTransformTest.cs.

svn path=/trunk/mcs/; revision=115803
2008-10-14 18:33:13 +00:00
Sebastien Pouliot dcb051c81a 2008-10-12 Sebastien Pouliot <[email protected]>
* EnvelopedCms.cs, SignedCms.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115569
2008-10-12 15:05:08 +00:00
Sebastien Pouliot aef5ecbb98 2008-10-12 Sebastien Pouliot <[email protected]>
* EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115568
2008-10-12 15:03:58 +00:00
Sebastien Pouliot 2e14e0c6c1 2008-10-12 Sebastien Pouliot <[email protected]>
* DataProtectionPermissionAttribute.cs, DataProtectionPermission.cs:
	Remove unneeded field initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115567
2008-10-12 15:02:52 +00:00