1 write to ProjectStyle
NuGet.Commands (1)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
201ProjectStyle = project.PackageSpec.RestoreMetadata.ProjectStyle,
27 references to ProjectStyle
NuGet.Commands (27)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
114if (request.Request.ProjectStyle == ProjectStyle.DotnetCliTool)
RestoreCommand\RequestFactory\RestoreArgs.cs (4)
189if (request.ProjectStyle == ProjectStyle.PackageReference) 193else if (request.ProjectStyle != ProjectStyle.DotnetCliTool) 214if (request.ProjectStyle == ProjectStyle.ProjectJson 217request.ValidateRuntimeAssets = request.ProjectStyle == ProjectStyle.ProjectJson;
RestoreCommand\RestoreCommand.cs (7)
347_request.ProjectStyle, 505_request.ProjectStyle, 660&& _request.ProjectStyle == ProjectStyle.DotnetCliTool) 1464if (_request.ProjectStyle == ProjectStyle.DotnetCliTool && _request.AllowNoOp) 1492if (_request.ProjectStyle == ProjectStyle.DotnetCliTool) 1529if (_request.ProjectStyle == ProjectStyle.DotnetCliTool) 2299context.IsMsBuildBased = request.ProjectStyle != ProjectStyle.DotnetCliTool;
RestoreCommand\Utility\BuildAssetsUtils.cs (5)
457request.ProjectStyle); 606if (request.ProjectStyle != ProjectStyle.ProjectJson 653var propsXML = GenerateMSBuildFile(props, request.ProjectStyle); 654var targetsXML = GenerateMSBuildFile(targets, request.ProjectStyle); 665AddNuGetPropertiesToFirstImport(files, packageFolders, repositoryRoot, request.ProjectStyle, assetsFilePath, restoreSuccess);
RestoreCommand\Utility\NoOpRestoreUtilities.cs (10)
42if (request.ProjectStyle == ProjectStyle.ProjectJson 43|| request.ProjectStyle == ProjectStyle.PackageReference) 64if (request.ProjectStyle == ProjectStyle.DotnetCliTool && lockFile != null) 107if (request.ProjectStyle == ProjectStyle.PackageReference 108|| request.ProjectStyle == ProjectStyle.ProjectJson) 112else if (request.ProjectStyle == ProjectStyle.DotnetCliTool) 133if (request.ProjectStyle == ProjectStyle.PackageReference) 228if (request.ProjectStyle == ProjectStyle.ProjectJson 229|| request.ProjectStyle == ProjectStyle.PackageReference) 246if (request.ProjectStyle == ProjectStyle.DotnetCliTool)