1 write to ProjectStyle
NuGet.Commands (1)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
203ProjectStyle = project.PackageSpec.RestoreMetadata.ProjectStyle,
25 references to ProjectStyle
NuGet.Commands (25)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
115if (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)
477request.ProjectStyle); 626if (request.ProjectStyle != ProjectStyle.ProjectJson 673var propsXML = GenerateMSBuildFile(props, request.ProjectStyle); 674var targetsXML = GenerateMSBuildFile(targets, request.ProjectStyle); 685AddNuGetPropertiesToFirstImport(files, packageFolders, repositoryRoot, request.ProjectStyle, assetsFilePath, restoreSuccess, request.EnvironmentVariableReader);
RestoreCommand\Utility\NoOpRestoreUtilities.cs (8)
48if (request.ProjectStyle == ProjectStyle.DotnetCliTool && lockFile != null) 83if (request.ProjectStyle == ProjectStyle.PackageReference 84|| request.ProjectStyle == ProjectStyle.ProjectJson) 89else if (request.ProjectStyle == ProjectStyle.DotnetCliTool) 110if (request.ProjectStyle == ProjectStyle.PackageReference) 205if (request.ProjectStyle == ProjectStyle.ProjectJson 206|| request.ProjectStyle == ProjectStyle.PackageReference) 223if (request.ProjectStyle == ProjectStyle.DotnetCliTool)