This documentation is archived and is not being maintained.

IProjectFile Interface

Note: This API is now obsolete.

Interface for a Team Foundation Server build project file (TfsBuild.proj).

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

[ObsoleteAttribute("This interface has been deprecated. Please remove all references.", 
public interface IProjectFile

The IProjectFile type exposes the following members.

Public propertyConfigurationsGets the list of configurations to build.
Public propertyMetadataFilesGets the list of metadata files containing test lists to run.
Public propertyRunCodeAnalysisGets or sets the code analysis run type.
Public propertyRunTestGets or sets a flag describing whether to run tests.
Public propertySolutionsGets the list of solutions and projects to be built.
Public propertyTestContainersGets the list of test assemblies containing tests to run.

Public methodAddConfigurationToBuildAdds a configuration to build to the list of configurations.
Public methodAddMetadataFileAdds a metadata file to the list of MetadataFiles.
Public methodAddSolutionToBuildAdds a new solution-to-build to the list of Solutions.
Public methodAddTestContainerAdds a test container assembly file to the list of TestContainers.
Public methodSaveGenerates the project file and saves it to the specified version control path. Also generates an empty TfsBuild.rsp file in the same location.