NAntContrib Help Task Reference <vssdelete> | v0.91 |
Used to delete or Destroy files or projects in Visual Source Safe.
Attribute | Type | Description | Required |
---|---|---|---|
destroy | bool | Determines whether or not the item is Destroyed. The default is false. | False |
dbpath | file | The path to the folder that contains "srcsafe.ini". | True |
path | string | The Visual SourceSafe project or file path you wish the perform the action on (starting with "$/"). | True |
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
password | string | The password to use to login to the SourceSafe database. | False |
unless | bool | Opposite of if . If false then the task will be executed; otherwise, skipped. The default is false. |
False |
user | string |
Deprecated. The name of the user needed to access the Visual SourceSafe database. When no username is specified and "Use network name for automatic user log in" is enabled, then the current Windows username will be used to log in. |
False |
username | string | The name of the user needed to access the Visual SourceSafe database. When no username is specified and "Use network name for automatic user log in" is enabled for the Visual SourceSafe database, then the current Windows username will be used to log in. |
False |
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
version | string | A version of the path to reference. Accepts multiple forms, including the label, version number, or date of the version. If omitted, the latest version is used. | False |
Delete a project from a local sourcesafe database.
<vssdelete user="myusername" password="mypassword" dbpath="C:\VSS\srcsafe.ini" path="$/MyProduct" />
Delete a file from the remote sourcesafe database.
<vsscheckin user="myusername" password="mypassword" dbpath="\\MyServer\VSS\srcsafe.ini" path="$/MyProduct/myFile.cs" />
Destroy a project from a local sourcesafe database.
<vssdelete user="myusername" password="mypassword" dbpath="C:\VSS\srcsafe.ini" path="$/MyProduct" Destroy="true" />
Destroy a file from the remote sourcesafe database.
<vssdelete user="myusername" password="mypassword" dbpath="\\MyServer\VSS\srcsafe.ini" path="$/MyProduct/myFile.cs" Destroy="true" />