5 Commits
Author SHA1 Message Date
Marek Habersack ecce3f42e4 [asp.net] Ignore directories that don't exist instead of throwing. 2011-01-31 11:06:41 +01:00
Marek Habersack f775654495 [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:35:06 +01:00
Marek Habersack 1e9e697cc9 2008-04-07 Marek Habersack <[email protected]>
* VirtualPath.cs: added

2008-04-08  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web/VirtualPath.cs

2008-04-08  Marek Habersack  <[email protected]>

	* DefaultVirtualDirectory.cs: fixed the constructor - derive
	virtual directory from the original path.
	AddDirectories and AddFiles combine the virtual paths properly
	now.

2008-04-08  Marek Habersack  <[email protected]>

	* TemplateParser.cs: CodeFile/Src handling uses
	HostingEnvironment.VirtualPathProvider to check for file
	existence.

2008-04-08  Marek Habersack  <[email protected]>

	* TemplateParser.cs: CodeFile/Src handling uses
	HostingEnvironment.VirtualPathProvider to check for file
	existence.

2008-04-08  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.

	* BuildManager.cs: switched to VirtualPath instead of a string
	path in several methods.
	Batch compilation is turned off if we have a custom
	VirtualPathProvider which implements only the VirtualFile and
	falls back to DefaultVirtualDirectory implementation for directory
	access.

	* GenericBuildProvider.cs: AddCodeFile accepts a virtual path.

	* BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.

	* AssemblyBuilder.cs: constructors use the new VirtualPath class
	now.
	AddCodeFile can use the VirtualPathProvider if necessary now.
	BuildAssembly overloads accept VirtualPath parameter instead of a
	string path now.

	* TemplateBuildProvider.cs: GetCodeBehindSource returns the
	virtual path now.

svn path=/trunk/mcs/; revision=100063
2008-04-07 23:00:16 +00:00
Gonzalo Paniagua Javier f32bc54c72 2006-02-02 Gonzalo Paniagua Javier <[email protected]>
* DefaultVirtualDirectory.cs: implemented missing bits.
	* DefaultVirtualFile.cs: fix ctor scope.
	* DefaultVirtualPathProvider.cs: implemented GetFile and GetDirectory.


svn path=/trunk/mcs/; revision=56480
2006-02-02 18:20:47 +00:00
Gonzalo Paniagua Javier fbc96a6dfb 2006-02-01 Gonzalo Paniagua Javier <[email protected]>
* DefaultVirtualDirectory.cs:
	* DefaultVirtualPathProvider.cs:
	* VirtualFile.cs:
	* DefaultVirtualFile.cs: almost done with the default
	VirtualPathProvider which just maps to on-disk directories/files.


svn path=/trunk/mcs/; revision=56430
2006-02-02 01:01:42 +00:00