16 instantiations of LockFileFormat
aspire-managed (1)
NuGet\Commands\LayoutCommand.cs (1)
78var lockFileFormat = new LockFileFormat();
dotnet (6)
CommandFactory\CommandResolution\MSBuildProject.cs (2)
149return new LockFileFormat() 171lockFile = new LockFileFormat()
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
255lockFile = new LockFileFormat()
ToolPackage\ToolPackageDownloader.cs (1)
205new LockFileFormat().Write(assetFilePath, lockFile);
ToolPackage\ToolPackageInstance.cs (2)
73lockFile = new LockFileFormat().Read(stream, resolvedAssetsFileNameFullPath); 166var lockFile = new LockFileFormat().Read(assetsJsonParentDirectory.WithFile(AssetsFileName).Value);
NuGet.Build.Tasks.Pack (3)
GetProjectReferencesFromAssetsFileTask.cs (1)
55var lockFileFormat = new LockFileFormat();
PackTaskLogic.cs (2)
211var lockFileFormat = new LockFileFormat(); 360var lockFileFormat = new LockFileFormat();
NuGet.CommandLine.XPlat (3)
Commands\Package\Update\PackageUpdateIO.cs (1)
470assetsFile = new LockFileFormat().Read(assetsFilePath);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
249var lockFileFormat = new LockFileFormat();
Commands\Why\WhyCommandRunner.cs (1)
272var lockFileFormat = new LockFileFormat();
NuGet.Commands (1)
RestoreCommand\RestoreResult.cs (1)
187var lockFileFormat = new LockFileFormat();
NuGet.PackageManagement (2)
NuGetPackageManager.cs (1)
2989var lockFileFormat = new LockFileFormat();
Utility\BuildIntegratedProjectUtility.cs (1)
61var lockFileFormat = new LockFileFormat();
34 references to LockFileFormat
aspire-managed (1)
NuGet\Commands\LayoutCommand.cs (1)
78var lockFileFormat = new LockFileFormat();
Microsoft.DotNet.Cli.Utils (1)
Extensions\LockFileFormatExtensions.cs (1)
11public static async Task<LockFile> ReadWithLock(this LockFileFormat subject, string path)
NuGet.Build.Tasks (2)
BuildTasksUtility.cs (1)
267FileUtility.Delete(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName));
RestoreTask.cs (1)
265restoredProjectOutputPaths.Add(new TaskItem(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName)));
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1365LoggingQueue.Enqueue(new ConsoleOutLogEmbedInBinlog(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName)));
NuGet.Build.Tasks.Pack (6)
GetProjectReferencesFromAssetsFileTask.cs (2)
43assetsFilePath = Path.Combine(RestoreOutputAbsolutePath, LockFileFormat.AssetsFileName); 55var lockFileFormat = new LockFileFormat();
PackTaskLogic.cs (4)
113var assetsFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 211var lockFileFormat = new LockFileFormat(); 349string assetsFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 360var lockFileFormat = new LockFileFormat();
NuGet.CommandLine.XPlat (3)
Commands\Package\Update\PackageUpdateIO.cs (1)
469var assetsFilePath = Path.Combine(packageSpec.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
249var lockFileFormat = new LockFileFormat();
Commands\Why\WhyCommandRunner.cs (1)
272var lockFileFormat = new LockFileFormat();
NuGet.Commands (13)
RestoreCommand\LockFileBuilder.cs (2)
167var target = lockFile.Version >= LockFileFormat.AliasedVersion ? 429bool isAliasedLockFile = lockFile.Version >= LockFileFormat.AliasedVersion;
RestoreCommand\RequestFactory\RestoreArgs.cs (3)
191request.LockFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 209request.LockFileVersion = request.Project.RestoreMetadata?.UsingMicrosoftNETSdk == true ? LockFileFormat.Version : LockFileFormat.LegacyVersion;
RestoreCommand\RestoreCommand.cs (4)
163if (_request.LockFileVersion < LockFileFormat.LegacyVersion || _request.LockFileVersion > LockFileFormat.Version) 1547projectLockFilePath = Path.Combine(_request.RestoreOutputPath, LockFileFormat.AssetsFileName); 1603return LockFileFormat.LegacyVersion;
RestoreCommand\RestoreRequest.cs (1)
129public int LockFileVersion { get; set; } = LockFileFormat.Version;
RestoreCommand\RestoreResult.cs (2)
187var lockFileFormat = new LockFileFormat(); 223LockFileFormat lockFileFormat,
RestoreCommand\Utility\NoOpRestoreUtilities.cs (1)
24/// The name of the file to use. When changing this, you should also change <see cref="LockFileFormat.AssetsFileName"/>.
NuGet.PackageManagement (2)
NuGetPackageManager.cs (1)
2989var lockFileFormat = new LockFileFormat();
Utility\BuildIntegratedProjectUtility.cs (1)
61var lockFileFormat = new LockFileFormat();
NuGet.ProjectModel (5)
LockFile\LockFile.cs (1)
23public int Version { get; set; } = LockFileFormat.Version;
LockFile\LockFileUtilities.cs (1)
25lockFile = FileUtility.SafeRead(filePath: lockFilePath, read: (stream, path) => LockFileFormat.Read(stream, logger, path, flags));
LockFile\Utf8JsonStreamLockFileConverter.cs (2)
199if (lockFile.Version == LockFileFormat.LegacyVersion) 208if (lockFile.Version >= LockFileFormat.AliasedVersion)
ToolPathResolver.cs (1)
34return Path.Combine(toolDirectory, LockFileFormat.AssetsFileName);