Skip to content

Commit 83bd8f7

Browse files
committed
Clear outout cache in ExecuteScriptCommand
1 parent fe93850 commit 83bd8f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Dotnet.Script.Core/Commands/ExecuteScriptCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ private string GetLibrary(ExecuteScriptCommandOptions executeOptions)
6363

6464
string CreateLibrary()
6565
{
66+
//Clear the outout folder to ensure that old dependencies are deleted.
67+
FileUtils.RemoveDirectory(executionCacheFolder);
6668
var options = new PublishCommandOptions(executeOptions.File,executionCacheFolder, "script", PublishType.Library,executeOptions.OptimizationLevel, null, executeOptions.NoCache);
6769
new PublishCommand(_scriptConsole, _logFactory).Execute(options);
6870
if (hash != null)

src/Dotnet.Script.Core/ScriptPublisher.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public ScriptPublisher(LogFactory logFactory, ScriptEmitter scriptEmitter)
3939

4040
public void CreateAssembly<TReturn, THost>(ScriptContext context, LogFactory logFactory, string assemblyFileName = null)
4141
{
42-
//Clear the outout folder to ensure that old dependencies are deleted.
43-
FileUtils.RemoveDirectory(context.WorkingDirectory);
44-
4542
Directory.CreateDirectory(context.WorkingDirectory);
4643
Directory.CreateDirectory(Path.Combine(context.WorkingDirectory, "obj"));
4744

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy