Skip to content

Commit 8a7611c

Browse files
Merge pull request #13701 from MicrosoftDocs/ghogen-patch-95
Recommend using project references instead of project dependencies
2 parents a922459 + f4d910c commit 8a7611c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ide/how-to-create-and-remove-project-dependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Create and remove project dependencies'
33
description: Create and remove your project's dependency on code from other projects in Visual Studio, and view the build order for the solution.
4-
ms.date: 03/14/2024
4+
ms.date: 03/12/2025
55
ms.topic: how-to
66
f1_keywords:
77
- VS.ProjectDependenciesDlg
@@ -22,7 +22,7 @@ manager: mijacobs
2222
When building a solution that contains multiple projects, it can be necessary to build certain projects first, to generate compiled binaries used by other projects. When a project consumes output generated by another project, the project that generates the output is referred to as a project dependency of the project that consumes the output. Such dependency relationships can be defined in the **Project Dependencies** dialog box.
2323

2424
> [!TIP]
25-
> A project dependency is automatically created when you add a project-to-project reference from one project to another project. Before you perform these steps, consider if you should instead create a project-to-project reference, which in addition to creating a dependency relationship between the projects, also creates a reference that you can use to build code that uses classes, interfaces, and other code entities from the other project. See [Managing references in a project](managing-references-in-a-project.md#project-to-project-references).
25+
> The feature discussed in this article, manually managing project dependencies, is distinct from project-to-project references used in modern project types, and reflects a method of handling dependencies between projects that predates MSBuild. Unless you're working with a project type that doesn't support project-to-project references, it's not necessary to explicitly add project dependencies as described in this article. A project dependency is automatically created when you add a project-to-project reference from one project to another project. In most cases, you should instead create a project-to-project reference, which in addition to creating a dependency relationship between the projects, also creates a reference that you can use to build code that uses classes, interfaces, and other code entities from the other project. See [Managing references in a project](managing-references-in-a-project.md#project-to-project-references).
2626
2727
## To assign dependencies to projects
2828

0 commit comments

Comments
 (0)