You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -190,14 +190,18 @@ namespace System.Web.Hosting {
|
||||
_appManager.Close();
|
||||
}
|
||||
|
||||
internal static String ConstructSimpleAppName(string virtPath) {
|
||||
internal static String ConstructSimpleAppName(string virtPath, bool isDevEnvironment) {
|
||||
// devdiv 710164: Still repro - ctrl-f5 a WAP project might show "Cannot create/shadow copy when a file exists" error
|
||||
// since the hash file lists are different, IISExpress launched by VS cannot reuse the build result from VS build.
|
||||
// It deletes the build files generated by CBM and starts another round of build. This causes interruption between IISExpress and VS
|
||||
// and leads to this shallow copy exception.
|
||||
// fix: make the dev IISExpress build to a special drop location
|
||||
// devdiv 1038337: execution permission cannot be acquired under partial trust with ctrl-f5.
|
||||
// We previously use HostingEnvironment to determine whether it is under dev environment and the returned string. However,
|
||||
// for partial trust scenario, this method is called before HostingEnvironment has been initialized, we thus may return a wrong value.
|
||||
// To fix it, we requir the caller to pass in a flag indicating whether it is under dev environment.
|
||||
if (virtPath.Length <= 1) { // root?
|
||||
if (!BuildManagerHost.InClientBuildManager && HostingEnvironment.IsDevelopmentEnvironment)
|
||||
if (!BuildManagerHost.InClientBuildManager && isDevEnvironment)
|
||||
return "vs";
|
||||
else
|
||||
return "root";
|
||||
|
Reference in New Issue
Block a user