Share via


WebSettings.WebProjectCacheDirectory Property

Definition

Gets or sets the offline location of project files.

public:
 property System::String ^ WebProjectCacheDirectory { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ WebProjectCacheDirectory { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(3)]
public string WebProjectCacheDirectory { [System.Runtime.InteropServices.DispId(3)] get; [System.Runtime.InteropServices.DispId(3)] set; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
[<set: System.Runtime.InteropServices.DispId(3)>]
member this.WebProjectCacheDirectory : string with get, set
Public Property WebProjectCacheDirectory As String

Property Value

A string specifying the default Web cache directory.

Attributes

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

Applies to