Commit Graph
65 Commits
Author SHA1 Message Date
Marcos Henrich a6a4d75dda Changed mono_path profile replacement to be case insensitive. 2014-08-22 22:20:53 +08:00
Etienne CHAMPETIER 919e7caf88 Fix CreateErrorFromString: match.Result("${column}") may contain a '+', trim it
Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-04-08 16:27:49 +02:00
Jonathan Pryor 4672f532ea [System] Fix the CSharpCodeCompiler error parsing regex.
Use the same regex as xbuild uses for error parsing; see 7a2d2c24.
2013-09-24 17:14:55 -04:00
Marek Safar c95627ec73 Add 4.5 profile sdk for CSharpCodeProvider. Fixes #3582 2012-11-12 09:54:53 +01:00
Marek Safar d5d4b9c22b Fix some warnings 2012-06-08 12:48:08 +01:00
Filip Lundgren b8e54c3796 CSharpCodeCompiler ctor: Corrected Windows mcs path, now resides in 4.5 directory. 2012-05-13 02:42:48 +03:00
Maciej Paszta 89cf1c22b9 Fix for bug #701733 2011-07-05 07:42:02 +02:00
Marek Habersack 70ae1133b4 [tests,runtime] A kludge to make 2.0 tests using CodeDOM work
When running the 2.0 test suite some assemblies will invoke mcs via
CodeDOM and the new mcs process will find the MONO_PATH variable in its
environment pointing to the net_2_0 library which will cause the runtime
to attempt to load the 2.0 corlib into 4.0 process and thus mcs will
fail. At the same time, we must not touch MONO_PATH when running outside
the test suite, thus the kludge.
2011-03-25 14:19:48 +01:00
Marek Safar bfbfdf16a2 Remove some weird and unused MONO_PATH acrobatics 2011-02-22 16:50:45 +00:00
Marek Safar cc3be8ed58 Fix CodeDom mcs path 2011-01-20 11:38:50 +00:00
Marek Safar 1244cd3ac6 CSharpCodeCompiler NET_2_0 cleanup 2011-01-20 11:27:48 +00:00
Marek Habersack c6c642eec3 commit 9405fa168b1255c51bb31ef17511c05593b08caa
Author: Marek Habersack <[email protected]>
Date:   Sat Mar 6 03:37:53 2010 +0100

    2010-03-06  Marek Habersack  <[email protected]>

    	* CompilerCollection.cs: in the 4.0 profile, the latest C#
    	standard is the compiler's default.

    2010-03-06  Marek Habersack  <[email protected]>

    	* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
    	standard is the default one.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidatorTestGenerated.cs: added

    	* RequestValidator.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* TestWorkerRequest.cs: added overloads of GetRawUrl and
    	GetUriPath which make sure that the returned paths do not contain
    	more than one leading / character.

    	* TestRunItem.cs: added new TestRunData property - to contain
    	per-appdomain test run data.

    	* TestCallback.cs: added a TestRunItem parameter.

    	* StandaloneTest.cs: runner object is created for each test item
    	now.
    	Added test progress feedback.

    	* ITestRunner.cs: added two properties, TestRunData - to return
    	collected test result data, if any, and Domain which returns the
    	current AppDomain.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidatorTest.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* HttpRequest.cs: cache RawUrl value.
    	Added new internal property, PathNoValidation, which returns
    	request path without validating it.
    	Implemented 4.0 extensible validation.

    	* HttpApplication.cs: Pipeline () validates the request path, if
    	new validation mode is enabled, before doing anything else.
    	Added a generic LoadType overload which checks whether the loaded
    	type, if any, derives from the type specified in the method's
    	specialization.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidator.cs: added

    	* RequestValidationSource.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* WebConfigurationManager.cs: do not use Request.Path - it may
    	fail because of invalid web.config file, use
    	Request.PathNoValidation instead.

    	* VersionConverter.cs: added

    	* PropertyHelper.cs: added a Version converter helper.

    	* HttpRuntimeSection.cs: added 4.0 properties -
    	RequestPathInvalidCharacters, RequestValidationType and
    	RequestValidationMode.

svn path=/trunk/mcs/; revision=153172
2010-03-06 02:48:31 +00:00
Marek Habersack 967d91ffa4 2009-12-02 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: added support for dmcs

svn path=/trunk/mcs/; revision=147403
2009-12-02 09:10:08 +00:00
Gonzalo Paniagua Javier c8928818b7 2009-04-22 Gonzalo Paniagua Javier <[email protected]>
* Microsoft.CSharp/CSharpCodeCompiler.cs:
	* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
	problem running the specified exec.


svn path=/trunk/mcs/; revision=132387
2009-04-22 18:35:40 +00:00
Marek Habersack f84da3a92c 2009-04-17 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: pass current application's domain
	PrivateBinPath to gmcs using its /lib parameter and put the same
	value in the MONO_PATH environment variable. Fixes bug #493874

svn path=/trunk/mcs/; revision=131983
2009-04-17 09:39:00 +00:00
Miguel de Icaza 1755003275 A bug fix for 459450
2008-12-25  Miguel de Icaza  <[email protected]>

	* ProcessTest.cs: Created a test case from bug 459450.

2008-12-25   Leszek Ciesielski <[email protected]>

	* System.Diagnostics/Process.cs: Raise the
	Process.OutputDataReceived and Process.ErrorDataReceived with null
	arguments at the end.   This is the documented behavior:

	http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx

	And CruiseControl.NET depended on this.   Bug #459450.
	
	* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
	depened on the previous broken behavior.



svn path=/trunk/mcs/; revision=122125
2008-12-25 17:44:52 +00:00
Jb Evain c1407c9775 2008-07-22 Jb Evain <[email protected]>
* CSharpCodeProvider.cs: fix the constructor to take an IDictionary
	instead of a plain Dictionary for provider options.
	* CSharpCodeGenerator.cs, CSharpCodeCompiler.cs: update accordingly.
	Fixes #411105.



svn path=/trunk/mcs/; revision=108446
2008-07-22 06:02:13 +00:00
Atsushi Eno dcbf633d29 2008-06-05 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : in 2.0 profile, do not capture stdout (we
	  didn't do that in 1.0 either). Fixed bug #379535.


svn path=/trunk/mcs/; revision=105026
2008-06-05 13:30:51 +00:00
Martin Baulig 9e58d125e4 2008-05-07 Martin Baulig <[email protected]>
* CSharpCodeCompiler.cs: Don't mess around with the
	MONO_INSIDE_MDB environment variable, it may only be modified by
	the debugger.


svn path=/trunk/mcs/; revision=102742
2008-05-07 17:24:26 +00:00
Marek Habersack 7260189c1d remove cwl
svn path=/trunk/mcs/; revision=96716
2008-02-27 00:50:18 +00:00
Marek Habersack c563bf4d8e 2008-02-27 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: use asynchronous method of capturing mcs
	output in the 2.0+ profile.

svn path=/trunk/mcs/; revision=96714
2008-02-27 00:39:00 +00:00
Marek Habersack 93b63dd25d 2008-02-26 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: CompilerResults.Output can now be set
	internally.
2008-02-26  Marek Habersack  <[email protected]>

	* CompilerResults.cs: Output can be set internally.

svn path=/trunk/mcs/; revision=96615
2008-02-26 10:19:42 +00:00
Atsushi Eno 4f0424aeb2 2008-02-26 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : build fix.
          CompilerResults.Output is read only.


svn path=/trunk/mcs/; revision=96610
2008-02-26 04:19:13 +00:00
Marek Habersack b9325f5379 2008-02-25 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: ignore standard output and report only
	lines printed to stdandard error to the caller.

svn path=/trunk/mcs/; revision=96585
2008-02-25 20:53:41 +00:00
Zoltan Varga 90c5073a1c 2008-01-16 Zoltan Varga <[email protected]>
* CSharpCodeCompiler.cs: Avoid setting results.CompiledAssembly since it might
	be a netmodule. Fixes #353536.

svn path=/trunk/mcs/; revision=92998
2008-01-15 23:01:05 +00:00
Marek Habersack 3a5c04ba93 2008-01-14 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: 3.0 is the default version now.

svn path=/trunk/mcs/; revision=92839
2008-01-14 10:44:35 +00:00
Marek Habersack aebcf9e99f 2008-01-10 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: check if running under the debugger and,
	if yes, make sure that gmcs runs correctly by removing the
	MONO_INSIDE_MDB environment variable before executing gmcs and
	restore it after the compiler process exits. Fixes bug #352377

svn path=/trunk/mcs/; revision=92575
2008-01-10 10:03:01 +00:00
Marek Habersack f3e716d95e 2007-12-15 Marek Habersack <[email protected]>
* System.dll.sources: added
	System.CodeDom.Compiler/CompilerProviderOption.cs and
	System.CodeDom.Compiler/CompilerProviderOptionsCollection.cs
2007-12-15  Marek Habersack  <[email protected]>

	* CSharpCodeProvider.cs: added support for the 2.0sp1 constructor
	which takes a Dictionary <string, string> parameter with compiler
	provider options. If any options are present, the
	generator/compiler are created using appropriate constructor
	overload.

	* CSharpCodeGenerator.cs: added support for the 2.0sp1 constructor
	which takes a Dictionary <string, string> parameter with compiler
	provider options.

	* CSharpCodeCompiler.cs: added support for the 2.0sp1 constructor
	which takes a Dictionary <string, string> parameter with compiler
	provider options. The "CompilerVersion" option is supported, with
	possible values "2.0" (currently maps to -langversion:Default) and
	"3.5" (currently maps to -langversion:linq).
2007-12-15  Marek Habersack  <[email protected]>

	* Compiler.cs: added support for the default collection of
	<providerOption> child elements and corresponding public
	properties (ProviderOptions and ProviderOptionsDictionary).

	* CompilerInfo.cs: added ProviderOptions dictionary, to hold
	values from the <providerOption> collection of the
	system.codeDom/compilers/compiler/ element.
	CodeDomProviderType throws an exception if the provider type
	cannot be found, as per MSDN.
	CreateProvider uses the new provider constructor which takes
	provider options dictionary as its parameter, if found in the
	provider type.

	* CompilerCollection.cs: compiler defaults are initialized using
	the provider options dictionary, with one option present -
	"CompilerVersion" set to "2.0".
	Two dictionaries to map languages and extensions to compiler
	information objects added.

	* CompilerProviderOption.cs: added - implements the
	<providerOption> element.

	* CompilerProviderOptionsCollection.cs: added - implements
	collection for the 2.0sp1 <providerOption> child element of the
	system.codeDom/compilers/compiler element.


svn path=/trunk/mcs/; revision=91337
2007-12-15 01:46:04 +00:00
Miguel de Icaza 7b3e73cc6c Apply fix from Geoff Norton, for bug Bug 319486
svn path=/trunk/mcs/; revision=88794
2007-11-03 18:02:33 +00:00
Gert Driesen c0dcd13022 * CSharpCodeCompiler.cs: Also generate temp filename for OutputAssembly
if its a zero-length string. Fixed bug #80920. Set extension to exe or
dll depending on whether we're generating an executable or not.
* CSharpCodeProviderTest.cs: Added test for generating executable.
Modified existing test to use zero-length OutputAssembly, and verify
expected OutputAssembly after generating assembly.

svn path=/trunk/mcs/; revision=73262
2007-02-21 17:28:22 +00:00
Gert Driesen b304019c0c * CSharpCodeProviderTest.cs: Modified tests to verify fix for bug
#78384, and check support for linked resources.
* VBCodeProviderTest.cs: Modified tests to verify fix for bug
#78384, and check support for linked resources.
* CSharpCodeCompiler.cs: Added support for embedded resources, fixes
bug #78384. Added support for linked resources. Removed unnecessary
null check for options.ReferencedAssemblies.

svn path=/trunk/mcs/; revision=63465
2006-08-08 08:08:21 +00:00
Andrew Skiba 75bc0abfda * SharpCodeCompiler.cs: find mono.exe in mono/mini; fixes #78731
* Process.cs: throw FileNotFoundException earlier; give more diagnostics.

svn path=/trunk/mcs/; revision=62662
2006-07-16 16:25:25 +00:00
Marek Safar 180e69cbe3 2006-04-30 Marek Safar <[email protected]>
* CSharpCodeCompiler.cs: mcs does not like /r:"" syntax; fixes #78038.

svn path=/trunk/mcs/; revision=60100
2006-04-30 11:18:00 +00:00
Miguel de Icaza 4a618c3073 2005-10-19 Miguel de Icaza <[email protected]>
* CSharpCodeCompiler.cs: Quote the directory, to fix #76469

svn path=/trunk/mcs/; revision=51940
2005-10-19 20:01:01 +00:00
Gonzalo Paniagua Javier 1046f8157f 2005-08-22 Gonzalo Paniagua Javier <[email protected]>
* CSharpCodeCompiler.cs: patch from Maksim Vorobiev that prevents
	InvalidOperationException if the thread running mcs is aborted.


svn path=/trunk/mcs/; revision=48688
2005-08-22 19:39:30 +00:00
Gonzalo Paniagua Javier 22df684e18 2005-08-20 Gonzalo Paniagua Javier <[email protected]>
* CSharpCodeCompiler.cs: made the colon optional so that both mcs and
	gmcs work.


svn path=/trunk/mcs/; revision=48608
2005-08-20 20:36:26 +00:00
Gonzalo Paniagua Javier 8cf2678544 2005-08-08 Gonzalo Paniagua Javier <[email protected]>
* CSharpCodeCompiler.cs: added missing colon after the line,column
	parenthesis in the regex that parses the errors to make this work with
	HEAD mcs.


svn path=/trunk/mcs/; revision=48102
2005-08-08 06:06:25 +00:00
Gonzalo Paniagua Javier ea5ec7c37b 2005-06-23 Gonzalo Paniagua Javier <[email protected]>
* CSharpCodeCompiler.cs: use UTF8 in the StreamWriter, as it did before
	r45802 removed it accidentally. Fixes bug #75361.


svn path=/trunk/mcs/; revision=46420
2005-06-23 12:48:37 +00:00
Gert Driesen 35886f0a7f * CSharpCodeCompiler.cs: Temp source files should have extension ".cs".
svn path=/trunk/mcs/; revision=45845
2005-06-13 04:36:05 +00:00
Gert Driesen 9ab64a10b8 * CSharpCodeGenerator.cs: Win32 resources are supported. Fixes bug #75218.
* CSharpCodeCompiler.cs: Clean up temporary files after compilation. Fixes
bug #75221. Added support for Win32 resources. Fixes bug #75218.
* CSharpCodeProviderTest.cs: Added tests for bug #75218 and #75221.

svn path=/trunk/mcs/; revision=45802
2005-06-11 05:55:17 +00:00
Gonzalo Paniagua Javier df25b5cc91 Patch by Gert Driesen that makes CodeDom compilers for VB.NET and C# handle
the GenerateInMemory option. Fixes bug #74959.

svn path=/trunk/mcs/; revision=45175
2005-05-30 03:31:21 +00:00
Gonzalo Paniagua Javier 58fdbc5655 2005-04-18 Gonzalo Paniagua Javier <[email protected]>
* CSharpCodeCompiler.cs: fix problem with the output CS8028.


svn path=/trunk/mcs/; revision=43231
2005-04-18 22:16:39 +00:00
Atsushi Eno 55c6e338ff 2005-02-03 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : On windows, use gmcs under 2.0 profile too.



svn path=/trunk/mcs/; revision=40030
2005-02-03 03:03:46 +00:00
Gonzalo Paniagua Javier ca6dec168c stdout->stderr
svn path=/trunk/mcs/; revision=37727
2004-12-14 07:28:08 +00:00
Gonzalo Paniagua Javier e03a35daa8 2004-12-13 Gonzalo Paniagua Javier <[email protected]>
* CSharpCodeCompiler.cs: ignore the 'BETA SOFTWARE blah' from gmcs.


svn path=/trunk/mcs/; revision=37723
2004-12-14 04:57:19 +00:00
Marek Safar bfd8b9f4b3 2004-10-02 Marek Safar <[email protected]>
* CSharpCodeCompiler.cs: Fix #65722.

svn path=/trunk/mcs/; revision=34601
2004-10-01 22:12:13 +00:00
Lluis Sanchez 6ac70f813a * CSharpCodeCompiler.cs: Hack to make code generation work in 2.0.
svn path=/trunk/mcs/; revision=31378
2004-07-22 17:36:52 +00:00
Atsushi Eno 1bb01d3e28 2004-07-13 Peter Williams <[email protected]>
* CSharpCodeCompiler.cs (CompileAssemblyFromDomBatch): Include
	counter in the extension so that batch compilations work.
	(CompileAssemblyFromSourceBatch): Same.

svn path=/trunk/mcs/; revision=31111
2004-07-14 00:10:12 +00:00
Atsushi Eno 28ff9d2fd7 2004-06-28 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then
	  check mcs.exe. It enables xsp working with mono windows installer.

svn path=/trunk/mcs/; revision=30472
2004-06-28 09:43:53 +00:00
Atsushi Eno edb0c6019c 2004-06-24 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : On windows we use fixed mono.exe and mcs.exe
	  located by mscorlib.dll.

svn path=/trunk/mcs/; revision=30289
2004-06-24 11:56:57 +00:00