mono.git
13 years ago[xbuild] Fix test on windows.
Ankit Jain [Wed, 9 Mar 2011 12:31:15 +0000 (18:01 +0530)]
[xbuild] Fix test on windows.

AssignTargetPathTest.TestLink : Fix test on windows

13 years ago[xbuild] Clean up test logs.
Ankit Jain [Wed, 9 Mar 2011 12:23:05 +0000 (17:53 +0530)]
[xbuild] Clean up test logs.

Remove unnecessary debug spew for tests that pass.

13 years agoSome attempts to make KnownTypeCollection parallel access safe.
Atsushi Eno [Wed, 9 Mar 2011 13:50:25 +0000 (22:50 +0900)]
Some attempts to make KnownTypeCollection parallel access safe.

13 years agoRemove old windows threading workaround.
Atsushi Eno [Wed, 9 Mar 2011 12:17:59 +0000 (21:17 +0900)]
Remove old windows threading workaround.

13 years agoMicrosoft.Build.Tasks: vbnc2 must be used for the 2.0 profile
Rolf Bjarne Kvinge [Tue, 8 Mar 2011 23:15:30 +0000 (00:15 +0100)]
Microsoft.Build.Tasks: vbnc2 must be used for the 2.0 profile

13 years agoChecking array elements is done using ImplicitReferenceConversionExists
Marek Safar [Wed, 9 Mar 2011 08:16:08 +0000 (08:16 +0000)]
Checking array elements is done using ImplicitReferenceConversionExists

13 years agoRemove more temporary expressions from probing converts
Marek Safar [Tue, 8 Mar 2011 19:50:10 +0000 (19:50 +0000)]
Remove more temporary expressions from probing converts

13 years agoDon't allocate conversion expression for probing implicit type-parameter conversion
Marek Safar [Tue, 8 Mar 2011 19:26:35 +0000 (19:26 +0000)]
Don't allocate conversion expression for probing implicit type-parameter conversion

13 years agoClean up more static state
Marek Safar [Tue, 8 Mar 2011 17:14:57 +0000 (17:14 +0000)]
Clean up more static state

13 years agoRemove more static stuff
Marek Safar [Tue, 8 Mar 2011 16:29:48 +0000 (16:29 +0000)]
Remove more static stuff

13 years agoAuto detect BOM-less utf-16 and utf-32. Fixed bug #674580.
Atsushi Eno [Wed, 9 Mar 2011 06:56:16 +0000 (15:56 +0900)]
Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580.

13 years agoImplement support for QNameIndex (0xBC) in attribute nodes.
Peter Gerbrandt [Wed, 9 Mar 2011 04:59:15 +0000 (13:59 +0900)]
Implement support for QNameIndex (0xBC) in attribute nodes.

13 years agoTemporarily disable InternalsVisibleTo(System.ServiceModel).
Atsushi Eno [Wed, 9 Mar 2011 01:18:42 +0000 (10:18 +0900)]
Temporarily disable InternalsVisibleTo(System.ServiceModel).

until mcs (in 2-10 or later release) fixes the issue.

13 years agoAvoid null refs when capacity set to 0
Gonzalo Paniagua Javier [Tue, 8 Mar 2011 23:05:15 +0000 (18:05 -0500)]
Avoid null refs when capacity set to 0

This fixes bug #676060.

13 years ago[System.Json] Fix loader.
Miguel de Icaza [Tue, 8 Mar 2011 22:51:20 +0000 (17:51 -0500)]
[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

13 years agoMake print take an object
Miguel de Icaza [Tue, 8 Mar 2011 22:51:09 +0000 (17:51 -0500)]
Make print take an object

13 years agoTurn the method to upper case.
Gonzalo Paniagua Javier [Tue, 8 Mar 2011 22:34:53 +0000 (17:34 -0500)]
Turn the method to upper case.

Fixes bug #675731.

13 years agoPass -w to the diff to avoid CR/LF issues.
joncham [Tue, 8 Mar 2011 21:59:02 +0000 (16:59 -0500)]
Pass -w to the diff to avoid CR/LF issues.

13 years agoReduce peverify errors on moonlight tuned assemblies
Sebastien Pouliot [Tue, 8 Mar 2011 20:20:46 +0000 (15:20 -0500)]
Reduce peverify errors on moonlight tuned assemblies

* InjectSecurityAttributes.cs: When (and only when) we remove the
security declarations we must set HasSecurity to false. This greatly
reduce peverify errors on the moonlight tuned assemblies

13 years agoNo need to create an extra instance of Worker.
Gonzalo Paniagua Javier [Tue, 8 Mar 2011 17:34:14 +0000 (12:34 -0500)]
No need to create an extra instance of Worker.

13 years agoFix windows build
Rodrigo Kumpera [Tue, 8 Mar 2011 16:32:33 +0000 (17:32 +0100)]
Fix windows build

13 years agoIn XNodeWriter, extra xmlns was written and often rejected for duplicate decls.
Atsushi Eno [Tue, 8 Mar 2011 14:52:26 +0000 (23:52 +0900)]
In XNodeWriter, extra xmlns was written and often rejected for duplicate decls.

Fixed bug #675620.

13 years ago[677550] Fixes fixed buffer regressions
Marek Safar [Tue, 8 Mar 2011 14:40:44 +0000 (14:40 +0000)]
[677550] Fixes fixed buffer regressions

13 years agoEnhance the check for internal protected members used via a qualifier
Marek Safar [Tue, 8 Mar 2011 14:07:05 +0000 (14:07 +0000)]
Enhance the check for internal protected members used via a qualifier

13 years agoFix invalid il body for few tests
Marek Safar [Tue, 8 Mar 2011 14:02:36 +0000 (14:02 +0000)]
Fix invalid il body for few tests

13 years agoFixes build
Marek Safar [Tue, 8 Mar 2011 13:57:15 +0000 (13:57 +0000)]
Fixes build

13 years agoFixed few unit tests build issues
Marek Safar [Tue, 8 Mar 2011 08:57:27 +0000 (08:57 +0000)]
Fixed few unit tests build issues

13 years agoMore xml output fixes in XmlSyndicationContent and SydicationElementExtension.
Atsushi Eno [Tue, 8 Mar 2011 13:04:18 +0000 (22:04 +0900)]
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.

13 years ago[xbuild] Implement FileLogger . Fix #676650 .
Ankit Jain [Tue, 8 Mar 2011 12:38:13 +0000 (18:08 +0530)]
[xbuild] Implement FileLogger . Fix #676650 .

* FileLogger.cs: Implement

Add corresponding command line args for file loggers.
Update man page.

13 years ago[xbuild] ConsoleLogger - parse params only on Initialize.
Ankit Jain [Tue, 8 Mar 2011 12:09:12 +0000 (17:39 +0530)]
[xbuild] ConsoleLogger - parse params only on Initialize.

13 years agoUse ip as scratch reg when saving the LMF on arm, instead of r2.
Zoltan Varga [Tue, 8 Mar 2011 12:28:31 +0000 (13:28 +0100)]
Use ip as scratch reg when saving the LMF on arm, instead of r2.

13 years agoRefactor the LMF save/restore code into separate functions on ARM, and optimize it...
Zoltan Varga [Tue, 8 Mar 2011 11:59:21 +0000 (12:59 +0100)]
Refactor the LMF save/restore code into separate functions on ARM, and optimize it a little.

13 years agoFix some warnings.
Zoltan Varga [Tue, 8 Mar 2011 11:14:52 +0000 (12:14 +0100)]
Fix some warnings.

13 years agoGet rid of mono_allocate_stack_slots, since all callers use the _full version.
Zoltan Varga [Tue, 8 Mar 2011 11:10:02 +0000 (12:10 +0100)]
Get rid of mono_allocate_stack_slots, since all callers use the _full version.

13 years agoCouple of fixes around XmlSyndicationContent.GetReaderAtContent().
Atsushi Eno [Tue, 8 Mar 2011 09:56:00 +0000 (18:56 +0900)]
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.

13 years agoSimplify checking for few more special compiler types
Marek Safar [Tue, 8 Mar 2011 08:43:17 +0000 (08:43 +0000)]
Simplify checking for few more special compiler types

13 years agoClean up predefined members caching
Marek Safar [Mon, 7 Mar 2011 18:14:21 +0000 (18:14 +0000)]
Clean up predefined members caching

13 years agoRemove wrong buffer size check in XmlTextReader.ReadChrs().
Atsushi Eno [Tue, 8 Mar 2011 06:26:51 +0000 (15:26 +0900)]
Remove wrong buffer size check in XmlTextReader.ReadChrs().

13 years agoMake sure to call MoveToContent() to correctly determine node type.
Atsushi Eno [Tue, 8 Mar 2011 05:52:04 +0000 (14:52 +0900)]
Make sure to call MoveToContent() to correctly determine node type.

Fix "Dictionary deserialization from xml with indent" issue.

13 years agoDateTimeOffset child elements have fixed namespace.
Atsushi Eno [Tue, 8 Mar 2011 02:01:57 +0000 (11:01 +0900)]
DateTimeOffset child elements have fixed namespace.

13 years agoMerge branch 'sgen-job-distribution'
Mark Probst [Tue, 8 Mar 2011 00:32:42 +0000 (01:32 +0100)]
Merge branch 'sgen-job-distribution'

13 years ago[sgen] Store the destination's vtable before CASing the forwarding pointer.
Mark Probst [Mon, 7 Mar 2011 18:05:46 +0000 (19:05 +0100)]
[sgen] Store the destination's vtable before CASing the forwarding pointer.

Sometimes the binary protocol crashed because we were not doing this
before.  It should not be strictly necessary if the binary protocol
is turned off, though.

13 years ago[sgen] Make scan from remsets a job.
Mark Probst [Fri, 4 Mar 2011 00:03:50 +0000 (01:03 +0100)]
[sgen] Make scan from remsets a job.

13 years ago[sgen] Parallel nursery collection.
Mark Probst [Thu, 3 Mar 2011 23:35:59 +0000 (00:35 +0100)]
[sgen] Parallel nursery collection.

Do parallel nursery collections when using the parallel
Mark&Sweep collector.

13 years ago[sgen] Scanning of finalizer entries in a job.
Mark Probst [Thu, 3 Mar 2011 16:10:25 +0000 (17:10 +0100)]
[sgen] Scanning of finalizer entries in a job.

13 years ago[sgen] Job for scan thread data.
Mark Probst [Wed, 2 Mar 2011 23:50:49 +0000 (00:50 +0100)]
[sgen] Job for scan thread data.

13 years ago[sgen] Jobs for scanning from registered roots.
Mark Probst [Wed, 2 Mar 2011 15:49:36 +0000 (16:49 +0100)]
[sgen] Jobs for scanning from registered roots.

13 years ago[sgen] Remove an incorrect assertion in the workers code and explain.
Mark Probst [Mon, 7 Mar 2011 23:30:42 +0000 (00:30 +0100)]
[sgen] Remove an incorrect assertion in the workers code and explain.

13 years ago[sgen] Job queue.
Mark Probst [Tue, 1 Mar 2011 18:51:26 +0000 (19:51 +0100)]
[sgen] Job queue.

We want to make worker threads not only process gray objects but
do other jobs as well, like scanning roots or remsets.  To that end
we need a job distribution system.

13 years ago[sgen] Separate step for starting marking in workers.
Mark Probst [Thu, 24 Feb 2011 16:10:24 +0000 (17:10 +0100)]
[sgen] Separate step for starting marking in workers.

13 years agoHost name is the same when querying localhost
Gonzalo Paniagua Javier [Mon, 7 Mar 2011 23:50:07 +0000 (18:50 -0500)]
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.

13 years agoBring missing types into Moonlight 4
Sebastien Pouliot [Mon, 7 Mar 2011 21:19:24 +0000 (16:19 -0500)]
Bring missing types into Moonlight 4

* System.Diagnostics.Contracts.Internal/ContractHelper.cs:
* System.Diagnostics.Contracts/Contract.cs:
* System.Diagnostics.Contracts/ContractException.cs:
* System.Diagnostics.Contracts/ContractFailedEventArgs.cs:
* System.Diagnostics.Contracts/ContractShouldAssertException.cs:
* System.Runtime.ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs:
Add || MOONLIGHT to include the types in Moonlight 4

* moonlight_raw_corlib.dll.sources: Bring missing types into Moonlight 4

13 years agoFix up devel packages in spec file
Andrew Jorgensen [Mon, 7 Mar 2011 20:01:17 +0000 (13:01 -0700)]
Fix up devel packages in spec file

13 years agoImplement some DynamicILInfo methods.
Zoltan Varga [Mon, 7 Mar 2011 19:19:04 +0000 (20:19 +0100)]
Implement some DynamicILInfo methods.

13 years agoFix the previous change.
Zoltan Varga [Mon, 7 Mar 2011 17:03:38 +0000 (18:03 +0100)]
Fix the previous change.

13 years agoFix out-of-tree builds.
Zoltan Varga [Mon, 7 Mar 2011 16:59:45 +0000 (17:59 +0100)]
Fix out-of-tree builds.

13 years agoEmpty element is valid here in silverlight secrity element.
Atsushi Eno [Mon, 7 Mar 2011 16:49:33 +0000 (01:49 +0900)]
Empty element is valid here in silverlight secrity element.

13 years agoXmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Atsushi Eno [Mon, 7 Mar 2011 15:47:41 +0000 (00:47 +0900)]
XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.

Fixed bug #676020.

13 years agoForgot to add the actual new client proxy.
Atsushi Eno [Mon, 7 Mar 2011 15:41:41 +0000 (00:41 +0900)]
Forgot to add the actual new client proxy.

13 years ago2011-02-17 Juho Vähä-Herttua <juhovh@iki.fi>
Juho Vähä-Herttua [Thu, 17 Feb 2011 12:43:13 +0000 (14:43 +0200)]
2011-02-17 Juho Vähä-Herttua <juhovh@iki.fi>

        * CngAlgorithm.cs, CngAlgorithmGroup.cs: Change the private
        variable name to match .NET when the class is serialized
        * CngKeyBlobFormat.cs: New.
        * CngKeyCreationParameters.cs: New.
        * CngProperty.cs: New.
        * CngPropertyCollection.cs: New.
        * CngProvider.cs: New.
        * CngUIPolicy.cs: New.

13 years agoAvoid an assert when returning nullable null's from sdb invokes. Fixes #676587.
Zoltan Varga [Mon, 7 Mar 2011 10:54:51 +0000 (11:54 +0100)]
Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587.

13 years agoClean up handling of few special runtime types
Marek Safar [Fri, 4 Mar 2011 14:30:16 +0000 (14:30 +0000)]
Clean up handling of few special runtime types

13 years agoClean up null-literal underlying type
Marek Safar [Fri, 4 Mar 2011 12:30:07 +0000 (12:30 +0000)]
Clean up null-literal underlying type

13 years agoSet ProhibitDtd = false on uri-based Load(). Fixed bug #676009.
Atsushi Eno [Mon, 7 Mar 2011 08:07:37 +0000 (17:07 +0900)]
Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009.

13 years agoCouple of fixed to support new DateTimeOffset serialization in .NET WCF.
Atsushi Eno [Mon, 7 Mar 2011 07:45:33 +0000 (16:45 +0900)]
Couple of fixed to support new DateTimeOffset serialization in .NET WCF.

13 years ago[Mono.Options] Add option header support.
Jonathan Pryor [Mon, 7 Mar 2011 00:30:48 +0000 (19:30 -0500)]
[Mono.Options] Add option header support.

Option headers can be provided via OptionSet.Add(string), and allows
forgoing the use of a separate mechanism to provide contextual output.

For example, one used to do this:

bool show_help = false;
new OptionSet  {
// ...
{ "help|h|?", v => show_help = v != null },
}.Parse (args);

if (show_help) {
Console.WriteLine ("usage: sample-app ARGS");
p.WriteOptionDescriptions (Console.Out);
// ...
}

Using the new header support, the "contextual" output can be merged
with the option specification:

bool show_help = false;
new OptionSet {
"usage: sample-app ARGS",
{ "help|h|?", v => show_help = v != null },
}.Parse (args);

if (show_help)
p.WriteOptionDescriptions (Console.Out);

Furthermore, headers can be provided "inline", thus serving as a
mechanism to categorize options:

// mcs options
var p = new OptionSet {
"Mono C# compiler, Copyright 2001 - 2011 Novell, Inc.",
"mcs [options] source-files",
// ...
"Resources:",
{ "linkresource|linkres:", v => /* ... */ },
// ...
"",
"Options can be of the form -option or /option",
};

13 years agoFlush documentation.
Jonathan Pryor [Sun, 6 Mar 2011 19:50:23 +0000 (14:50 -0500)]
Flush documentation.

No "real" changes; just properties going from "set; get;" to
"get; set;" (why did that change?!) and updating the included
updated sample sources into the docs (s/NDesk.Options/Mono.Options/g).

13 years agoUpdate example output before running mdoc.
Jonathan Pryor [Sun, 6 Mar 2011 19:46:47 +0000 (14:46 -0500)]
Update example output before running mdoc.

The example output is included into the mdoc-updated documentation;
thus, we want to have updated (correct) output before we run
mdoc-update.

We do this by making $(the_libir)/.doc-stamp target depend upon
$(DOC_EXAMPLES_OUTPUT) instead of the doc-update-local target.

13 years agoDo not store binary files.
Jonathan Pryor [Sun, 6 Mar 2011 19:42:29 +0000 (14:42 -0500)]
Do not store binary files.

The `doc-update-local` target will create these as needed.

13 years agoDistribute Mono.Options examples source, input, output.
Jonathan Pryor [Sun, 6 Mar 2011 19:41:14 +0000 (14:41 -0500)]
Distribute Mono.Options examples source, input, output.

13 years agoRemove unnecessary file.
Jonathan Pryor [Sun, 6 Mar 2011 19:39:36 +0000 (14:39 -0500)]
Remove unnecessary file.

13 years agoAdd support for executing samples for documentation output.
Jonathan Pryor [Sun, 6 Mar 2011 19:32:43 +0000 (14:32 -0500)]
Add support for executing samples for documentation output.

The Documentation/en/examples/*.in files are command-lines for the
corresponding Documentation/en/examples/*.exe files, and the
stdout & stderr is recorded from these executions and appended
to Documentation/en/examples/*.txt. This allows the actual
documentation in Documentation/en/*/*.xml to include the *.txt
and *.cs files.

13 years agoForgot to add test xml files.
Atsushi Eno [Mon, 7 Mar 2011 04:59:22 +0000 (13:59 +0900)]
Forgot to add test xml files.

13 years agoFixed xsd derived simpleType cast failures on uint. Fixed bug #676993.
Atsushi Eno [Mon, 7 Mar 2011 04:56:37 +0000 (13:56 +0900)]
Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993.

13 years agoSupport for the same interface as service contract and as callback contract.
Peter Gerbrandt [Mon, 7 Mar 2011 03:51:19 +0000 (12:51 +0900)]
Support for the same interface as service contract and as callback contract.

13 years agoReplace SRE-based client proxy generator with RealProxy.
Atsushi Eno [Mon, 7 Mar 2011 03:29:39 +0000 (12:29 +0900)]
Replace SRE-based client proxy generator with RealProxy.

Now PE verified workaround should be unnecessary.

13 years agoRefactor the LMF creation code into separate functions on amd64. Create a variable...
Zoltan Varga [Sun, 6 Mar 2011 17:56:59 +0000 (18:56 +0100)]
Refactor the LMF creation code into separate functions on amd64. Create a variable for the LMF instead of allocating space for it in mono_arch_allocate_vars ().

13 years agoDon't register emulation for CEE_ opcodes, its not needed.
Zoltan Varga [Sun, 6 Mar 2011 10:29:33 +0000 (11:29 +0100)]
Don't register emulation for CEE_ opcodes, its not needed.

13 years agoMove MonoContext defines to mono-context.h on arm.
Zoltan Varga [Sat, 5 Mar 2011 21:36:05 +0000 (22:36 +0100)]
Move MonoContext defines to mono-context.h on arm.

13 years agoFix arm build.
Zoltan Varga [Sat, 5 Mar 2011 21:20:48 +0000 (22:20 +0100)]
Fix arm build.

13 years agoFix the win32 build
Rodrigo Kumpera [Fri, 4 Mar 2011 22:04:36 +0000 (23:04 +0100)]
Fix the win32 build

13 years agoSpeed up suspending when running under the loader lock.
Zoltan Varga [Fri, 4 Mar 2011 18:28:00 +0000 (19:28 +0100)]
Speed up suspending when running under the loader lock.

13 years agoInstall a mono-sgen-gdb.py as well.
Zoltan Varga [Fri, 4 Mar 2011 16:33:07 +0000 (17:33 +0100)]
Install a mono-sgen-gdb.py as well.

13 years agoLog all sdb log messages to the log file instead of stdout.
Zoltan Varga [Fri, 4 Mar 2011 11:50:19 +0000 (12:50 +0100)]
Log all sdb log messages to the log file instead of stdout.

13 years agoWiring of BuildinType
Marek Safar [Fri, 4 Mar 2011 11:08:11 +0000 (11:08 +0000)]
Wiring of BuildinType

13 years agoUnify predefined type user operators calling
Marek Safar [Fri, 4 Mar 2011 09:09:57 +0000 (09:09 +0000)]
Unify predefined type user operators calling

13 years agoWiring of BuildinType
Marek Safar [Thu, 3 Mar 2011 17:44:34 +0000 (17:44 +0000)]
Wiring of BuildinType

13 years ago[xbuild] LogExtensions.LogError - disambiguate.
Ankit Jain [Thu, 3 Mar 2011 22:58:38 +0000 (04:28 +0530)]
[xbuild] LogExtensions.LogError - disambiguate.

* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.

13 years agoWhen running in a linked environment, this file might not exist
Geoff Norton [Thu, 3 Mar 2011 22:54:47 +0000 (17:54 -0500)]
When running in a linked environment, this file might not exist

13 years ago[xbuild] Set @(CollectedBuildOutput) for projects build from .sln .
Ankit Jain [Thu, 3 Mar 2011 22:47:22 +0000 (04:17 +0530)]
[xbuild] Set @(CollectedBuildOutput) for projects build from .sln .

13 years ago[xbuild] Add missing api for Target.
Ankit Jain [Thu, 3 Mar 2011 22:41:55 +0000 (04:11 +0530)]
[xbuild] Add missing api for Target.

* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.

13 years agoChecking if a type is a reference must be gsharing aware.
Rodrigo Kumpera [Thu, 3 Mar 2011 21:56:14 +0000 (22:56 +0100)]
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.

13 years ago[xbuild] Fix bug #676671. Raise AnyEvent .
Ankit Jain [Thu, 3 Mar 2011 19:41:26 +0000 (01:11 +0530)]
[xbuild] Fix bug #676671. Raise AnyEvent .

13 years ago[xbuild] Add hooks for extending .sln builds.
Ankit Jain [Thu, 3 Mar 2011 17:41:57 +0000 (23:11 +0530)]
[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.

13 years ago[xbuild] Update man page with info about FrameworkList.xml
Ankit Jain [Thu, 3 Mar 2011 17:39:17 +0000 (23:09 +0530)]
[xbuild] Update man page with info about FrameworkList.xml

13 years ago[xbuild] Add support for wildcards in Import.
Ankit Jain [Thu, 3 Mar 2011 15:59:40 +0000 (21:29 +0530)]
[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.

13 years ago[xbuild] ImportedProject - remove unnecessary catch/throw
Ankit Jain [Thu, 3 Mar 2011 14:32:08 +0000 (20:02 +0530)]
[xbuild] ImportedProject - remove unnecessary catch/throw

Remove the catch { throw; }, this truncated the stack also.

13 years ago[xbuild] ImportCollections.TryGetImport and other fixes
Ankit Jain [Thu, 3 Mar 2011 14:31:23 +0000 (20:01 +0530)]
[xbuild] ImportCollections.TryGetImport and other fixes

13 years ago[xbuild] Expression.ParseAs<T> - new method
Ankit Jain [Thu, 3 Mar 2011 14:30:54 +0000 (20:00 +0530)]
[xbuild] Expression.ParseAs<T> - new method

13 years ago[xbuild] DirectoryScanner.HasWildcard - new method
Ankit Jain [Thu, 3 Mar 2011 14:30:13 +0000 (20:00 +0530)]
[xbuild] DirectoryScanner.HasWildcard - new method