1 write to _context
Microsoft.DotNet.VersionTools.Cli (1)
VersionTrimmingOperation.cs (1)
31public VersionTrimmingOperation(Context context) => _context = context;
14 references to _context
Microsoft.DotNet.VersionTools.Cli (14)
VersionTrimmingOperation.cs (14)
35if (!_context.DirectoryProxy.Exists(_context.AssetsDirectory)) 37_context.Logger.WriteError($"{_context.AssetsDirectory} does not exist"); 41var 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."); 56info = _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}");