Skip to content

Commit

Permalink
VCI-688: Fix minor codesmells
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro committed Sep 14, 2023
1 parent d8d1b82 commit 05c4a42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/VirtoCommerce.Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ public static Solution Solution
var testProjects = Solution.GetProjects("*.Test|*.Tests|*.Testing");
var outPath = RootDirectory / ".tmp";
foreach (var testProject in testProjects)
foreach (var testProjectPath in testProjects.Select(p=> p.Path).ToArray())
{
DotNet($"add \"{testProject.Path}\" package coverlet.collector");
DotNet($"add \"{testProjectPath}\" package coverlet.collector");
var testSetting = new DotNetTestSettings()
.SetProjectFile(testProject.Path)
.SetProjectFile(testProjectPath)
.SetConfiguration(Configuration)
.SetFilter(TestsFilter)
.SetNoBuild(true)
Expand Down Expand Up @@ -1172,7 +1172,14 @@ private void CompressExecuteMethod()
keepFiles = TextTasks.ReadAllLines(ModuleKeepFile).ToArray();
}

ArtifactPacker.CompressModule(ModuleOutputDirectory, ZipFilePath, ModuleManifest.Id, ModuleManifestFile, WebProject.Directory, ignoredFiles, keepFiles, _moduleContentFolders);
ArtifactPacker.CompressModule(options => options.WithSourceDirectory(ModuleOutputDirectory)
.WithOutputZipPath(ZipFilePath)
.WithModuleId(ModuleManifest.Id)
.WithModuleManifestPath(ModuleManifestFile)
.WithWebProjectDirectory(WebProject.Directory)
.WithIgnoreList(ignoredFiles)
.WithKeepList(keepFiles)
.WithModuleContentFolders(_moduleContentFolders));
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Stream OpenRead(Uri address)
}
finally
{
((IDisposable)client)?.Dispose();
client?.Dispose();
}
}
}
Expand Down

0 comments on commit 05c4a42

Please sign in to comment.