-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9561 from harleend/dev/hadhaliw/ExportInitialRule…
…sSubscriptions Export initial rules subscriptions
- Loading branch information
Showing
15 changed files
with
92 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...em.Managed.VS/ProjectSystem/VS/Tree/Dependencies/DependenciesTreeBuildRuleRequirements.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. | ||
|
||
using Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Subscriptions.MSBuildDependencies; | ||
|
||
namespace Microsoft.VisualStudio.ProjectSystem.VS.Tree.Dependencies; | ||
|
||
/// <summary> | ||
/// Exports the set of rules required for the dependencies tree in Visual Studio. | ||
/// </summary> | ||
/// <remarks> | ||
/// The dependencies tree handles this metadata a little differently to other components in the project system that export it. | ||
/// The dependencies tree works a little differently between VS and VS Code. | ||
/// <list type="bullet"> | ||
/// <item>In VS (which loads this assembly) the dependencies tree is loaded eagerly. We want the targets referenced by these rules to be included in the first design-time build.</item> | ||
/// <item>In VS Code (which uses the shared layer) the tree is loaded lazily, and we don't want these targets included in the first design-time build.</item> | ||
/// </list> | ||
/// For this reason, we export the rules here in the VS-only layer, rather than in the shared layer (like other components). | ||
/// </remarks> | ||
internal static class DependenciesTreeBuildRuleRequirements | ||
{ | ||
[AppliesTo(AnalyzerDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedAnalyzerReference.SchemaName)] | ||
public static int AnalyzerReference; | ||
|
||
[AppliesTo(AssemblyDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedAssemblyReference.SchemaName)] | ||
public static int AssemblyReference; | ||
|
||
[AppliesTo(ComDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedCOMReference.SchemaName)] | ||
public static int ComReference; | ||
|
||
[AppliesTo(FrameworkDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedFrameworkReference.SchemaName)] | ||
public static int FrameworkReference; | ||
|
||
[AppliesTo(PackageDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedPackageReference.SchemaName)] | ||
public static int PackageReference; | ||
|
||
[AppliesTo(ProjectDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedProjectReference.SchemaName)] | ||
public static int ProjectReference; | ||
|
||
[AppliesTo(SdkDependencyFactory.AppliesTo)] | ||
[ExportInitialBuildRulesSubscriptions(ResolvedSdkReference.SchemaName)] | ||
public static int SdkReference; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters