This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
NuGet.Packaging.VisualStudio.15/ProjectSystem
NuGet.Packaging.VisualStudio/Targets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using Microsoft . VisualStudio . ProjectSystem ;
22
3- using System . Collections . Immutable ;
4-
53namespace NuGet . Packaging . VisualStudio
64{
75 internal static class NuProjCapabilities
86 {
9- public const string NuProj = "PackagingProject" ;
7+ public const string NuProj = "PackagingProject" ;
8+
9+ public const string HandlesOwnReload = ProjectCapabilities . HandlesOwnReload ;
10+ public const string OpenProjectFile = nameof ( OpenProjectFile ) ;
1011
11- public static readonly ImmutableHashSet < string > ProjectSystem = Empty . CapabilitiesSet . Union ( new [ ]
12- {
13- NuProj ,
14- ProjectCapabilities . ProjectConfigurationsDeclaredAsItems ,
15- ProjectCapabilities . ReferencesFolder ,
16- } ) ;
12+ public const string DefaultCapabilities = HandlesOwnReload + "; " +
13+ OpenProjectFile ;
1714 }
18- }
15+ }
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ namespace NuGet.Packaging.VisualStudio
1414 Constants . Language ,
1515 Guids . PackageGuid ,
1616 PossibleProjectExtensions = Constants . ProjectExtension ,
17- ProjectTemplatesDir = @"..\..\Templates\Projects\NuProj" ) ]
17+ ProjectTemplatesDir = @"..\..\Templates\Projects\NuProj" ,
18+ Capabilities = NuProjCapabilities . DefaultCapabilities ) ]
1819 internal sealed class NuProjUnconfiguredProject
1920 {
2021 [ Import ]
Original file line number Diff line number Diff line change @@ -84,9 +84,7 @@ Copyright (c) .NET Foundation. All rights reserved.
8484 VisualStudioWellKnownOutputGroups;
8585 SingleFileGenerators;
8686 DeclaredSourceItems;
87- UserSourceItems;
88- HandlesOwnReload;
89- OpenProjectFile" />
87+ UserSourceItems" />
9088
9189 <!-- Reference Manager capabilities -->
9290 <ProjectCapability Include =" ReferenceManagerAssemblies" />
You can’t perform that action at this time.
0 commit comments