Skip to content

Commit 14485ea

Browse files
committed
Disable for IISExpress
1 parent 9c418b7 commit 14485ea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Servers/IIS/AspNetCoreModuleV2/AspNetCore/applicationinfo.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ APPLICATION_INFO::ShutDownApplication(const bool fServerInitiated)
243243
}
244244
app = m_pApplication.get();
245245
}
246-
246+
247247
LOG_INFOF(L"Stopping application '%ls'", QueryApplicationInfoKey().c_str());
248248
app->Stop(fServerInitiated);
249249

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

261-
if (options.QueryShadowCopyEnabled())
261+
// Only support shadow copying for IIS.
262+
if (options.QueryShadowCopyEnabled() && !m_pServer.IsCommandLineLaunch())
262263
{
263264
shadowCopyPath = options.QueryShadowCopyDirectory();
264265
std::wstring physicalPath = pHttpContext.GetApplication()->GetApplicationPhysicalPath();

src/Servers/IIS/IIS/test/Common.FunctionalTests/ShadowCopyTests.cs renamed to src/Servers/IIS/IIS/test/IIS.FunctionalTests/ShadowCopyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private static void DirectoryCopy(string sourceDirName, string destDirName, bool
236236

237237
DirectoryInfo[] dirs = dir.GetDirectories();
238238

239-
// If the destination directory doesn't exist, create it.
239+
// If the destination directory doesn't exist, create it.
240240
Directory.CreateDirectory(destDirName);
241241

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

0 commit comments

Comments
 (0)