Pointing IIS Express to the wwwroot folder instead of app base.
This commit is contained in:
parent
2fbc90c6aa
commit
c3a6095bf1
|
|
@ -10,6 +10,7 @@
|
|||
<!-- This will turn on detailed errors when deployed to remote servers -->
|
||||
<!-- This setting is not recommended for production -->
|
||||
<add key="ASPNET_DETAILED_ERRORS" value="true" />
|
||||
<add key="dotnet-app-base" value="../" />
|
||||
</appSettings>
|
||||
|
||||
</configuration>
|
||||
|
|
@ -47,7 +47,13 @@ namespace E2ETests
|
|||
var interopLibrary = libraryManager.GetLibraryInformation("Microsoft.AspNet.Loader.IIS.Interop");
|
||||
|
||||
var aspNetLoaderSrcPath = Path.Combine(interopLibrary.Path, "tools", "AspNet.Loader.dll");
|
||||
var aspNetLoaderDestPath = Path.Combine(applicationPath, "bin", "AspNet.Loader.dll");
|
||||
var aspNetLoaderDestPath = Path.Combine(applicationPath, "wwwroot", "bin", "AspNet.Loader.dll");
|
||||
|
||||
// Create bin directory if it does not exist.
|
||||
if (!Directory.Exists(new DirectoryInfo(aspNetLoaderDestPath).Parent.FullName))
|
||||
{
|
||||
Directory.CreateDirectory(new DirectoryInfo(aspNetLoaderDestPath).Parent.FullName);
|
||||
}
|
||||
|
||||
if (!File.Exists(aspNetLoaderDestPath))
|
||||
{
|
||||
|
|
@ -230,7 +236,7 @@ namespace E2ETests
|
|||
}
|
||||
|
||||
var parameters = string.IsNullOrWhiteSpace(startParameters.ApplicationHostConfigLocation) ?
|
||||
string.Format("/port:5001 /path:{0}", startParameters.ApplicationPath) :
|
||||
string.Format("/port:5001 /path:{0}", Path.Combine(startParameters.ApplicationPath, "wwwroot")) :
|
||||
string.Format("/site:{0} /config:{1}", startParameters.SiteName, startParameters.ApplicationHostConfigLocation);
|
||||
|
||||
var iisExpressPath = GetIISExpressPath(startParameters.DotnetArchitecture);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,10 @@ namespace E2ETests
|
|||
|
||||
private void VerifyHomePage(HttpResponseMessage response, string responseContent, bool useNtlmAuthentication = false)
|
||||
{
|
||||
_logger.WriteVerbose("Home page content : {0}", responseContent);
|
||||
// This seems to not print anything if the successive Assert fails.
|
||||
//_logger.WriteVerbose("Home page content : {0}", responseContent);
|
||||
|
||||
Console.WriteLine("Home page content : {0}", responseContent);
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
ValidateLayoutPage(responseContent);
|
||||
Assert.Contains(PrefixBaseAddress("<a href=\"/{0}/Store/Details/"), responseContent, StringComparison.OrdinalIgnoreCase);
|
||||
|
|
|
|||
Loading…
Reference in New Issue