1 write to _context
Microsoft.DotNet.VersionTools.Cli (1)
VersionTrimmingOperation.cs (1)
31
public VersionTrimmingOperation(Context context) =>
_context
= context;
14 references to _context
Microsoft.DotNet.VersionTools.Cli (14)
VersionTrimmingOperation.cs (14)
35
if (!
_context
.DirectoryProxy.Exists(
_context
.AssetsDirectory))
37
_context
.Logger.WriteError($"{
_context
.AssetsDirectory} does not exist");
41
var assets =
_context
.DirectoryProxy.GetFiles(
42
_context
.AssetsDirectory,
43
_context
.SearchPattern,
44
_context
.Recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly);
48
$"The search pattern `{
_context
.SearchPattern}` includes non-NuGet assets.");
56
info =
_context
.NupkgInfoFactory.CreateNupkgInfo(assetFileName);
60
_context
.Logger.WriteError($"Asset {assetFileName} in not a valid nuget package: {e.Message}");
67
_context
.Logger.WriteMessage($"Processing {assetFileName} ...");
71
_context
.FileProxy.Move(assetFileName, newAssetFileName);
75
_context
.Logger.WriteError($"Version trimming of {assetFileName} failed: {e.Message}");