Share via


WebSettings.WebProjectCacheDirectory Property

Gets or sets the offline ___location of project files.

Namespace:  VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

Syntax

'Declaration
Property WebProjectCacheDirectory As String
string WebProjectCacheDirectory { get; set; }
property String^ WebProjectCacheDirectory {
    String^ get ();
    void set (String^ value);
}
abstract WebProjectCacheDirectory : string with get, set
function get WebProjectCacheDirectory () : String 
function set WebProjectCacheDirectory (value : String)

Property Value

Type: String
A string specifying the default Web cache directory.

Remarks

The WebProjectCacheDirectory property points to the root of the offline cache, the ___location where files are stored when working with Web projects offline. When a project is taken offline, a subdirectory is created in the offline cache, according to a naming system described below.

Files from Web projects authored using file-share access are compiled and edited directly in the shared ___location. In contrast, files from Web projects authored using FrontPage access have http: file paths, so it is not possible to compile and edit them on the server ___location. For this reason, the files in such projects are compiled and edited in the offline ___location. Therefore, FrontPage-authored projects access the offline ___location during the authoring process, even when the project is online.

The project system creates the following directory structure:

\WebProjectCacheDirectory

     \ServerName1

          \ProjectName1

          \ProjectName2

     \ServerName2

          \ProjectName3

As an example, suppose you create the following four Web projects:

The directory structure created will be as follows:

\WebProjectCacheDirectory

     \ServerName1

          \WebProject1

               \SubProject1

          \WebProject2

     \www.microsoft.com

          \WebProject3

.NET Framework Security

See Also

Reference

WebSettings Interface

VSLangProj Namespace