WebSettings::WebProjectCacheDirectory Property

 

Gets or sets the offline location of project files.

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

property String^ WebProjectCacheDirectory {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

A string specifying the default Web cache directory.

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:

  • http://ServerName1/WebProject1

  • http://ServerName1/WebProject1/SubProject1

  • http://ServerName1/WebProject2

  • http://www.microsoft.com/WebProject3

The directory structure created will be as follows:

\WebProjectCacheDirectory

     \ServerName1

          \WebProject1

               \SubProject1

          \WebProject2

     \www.microsoft.com

          \WebProject3

Return to top
Show: