Skip to content

Commit

Permalink
Disable for IISExpress
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotalik committed Mar 15, 2021
1 parent 4c199ed commit 83cd83d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ APPLICATION_INFO::ShutDownApplication(const bool fServerInitiated)
}
app = m_pApplication.get();
}

LOG_INFOF(L"Stopping application '%ls'", QueryApplicationInfoKey().c_str());
app->Stop(fServerInitiated);

Expand All @@ -258,7 +258,8 @@ APPLICATION_INFO::HandleShadowCopy(const ShimOptions& options, IHttpContext& pHt
{
std::filesystem::path shadowCopyPath;

if (options.QueryShadowCopyEnabled())
// Only support shadow copying for IIS.
if (options.QueryShadowCopyEnabled() && !m_pServer.IsCommandLineLaunch())
{
shadowCopyPath = options.QueryShadowCopyDirectory();
std::wstring physicalPath = pHttpContext.GetApplication()->GetApplicationPhysicalPath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private static void DirectoryCopy(string sourceDirName, string destDirName, bool

DirectoryInfo[] dirs = dir.GetDirectories();

// If the destination directory doesn't exist, create it.
// If the destination directory doesn't exist, create it.
Directory.CreateDirectory(destDirName);

// Get the files in the directory and copy them to the new location.
Expand Down

0 comments on commit 83cd83d

Please sign in to comment.