React to Sdk changes to assembly metadata
Fixes https://github.com/aspnet/MvcPrecompilation/issues/248
This commit is contained in:
parent
8f9832119f
commit
1564b1e83a
|
|
@ -1,2 +1,2 @@
|
||||||
version:2.1.0-preview2-15742
|
version:2.1.0-preview2-15744
|
||||||
commithash:21fbb0f2c3fe4a9216e2d59632b98cfd7d685962
|
commithash:9e15cb6062ab5b9790d3fa699e018543a6950713
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
<Description>Music store application on ASP.NET Core</Description>
|
<Description>Music store application on ASP.NET Core</Description>
|
||||||
<TargetFrameworks>netcoreapp2.1;netcoreapp2.0;net461</TargetFrameworks>
|
<TargetFrameworks>netcoreapp2.1;netcoreapp2.0;net461</TargetFrameworks>
|
||||||
<DefineConstants>$(DefineConstants);DEMO</DefineConstants>
|
<DefineConstants>$(DefineConstants);DEMO</DefineConstants>
|
||||||
<RazorCompileOnBuild>true</RazorCompileOnBuild>
|
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<RuntimeIdentifiers Condition="'$(Configuration)' != 'RuntimeStore'">win7-x86;win7-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers Condition="'$(Configuration)' != 'RuntimeStore'">win7-x86;win7-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
||||||
<Configurations>Debug;Release;RuntimeStore</Configurations>
|
<Configurations>Debug;Release;RuntimeStore</Configurations>
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ namespace E2ETests
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify the app is using precompiled views
|
// Verify the app is using precompiled views
|
||||||
Assert.Contains("MusicStore.Views, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", responseContent);
|
Assert.Contains("MusicStore.Views, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", responseContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task VerifyNtlmHomePage(HttpResponseMessage response)
|
public async Task VerifyNtlmHomePage(HttpResponseMessage response)
|
||||||
|
|
@ -148,17 +148,6 @@ namespace E2ETests
|
||||||
Assert.Contains("<li class=\"divider\"></li>", responseContent, StringComparison.OrdinalIgnoreCase);
|
Assert.Contains("<li class=\"divider\"></li>", responseContent, StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task VerifyRuntimeCompiledHomePage(HttpResponseMessage response)
|
|
||||||
{
|
|
||||||
var responseContent = await response.Content.ReadAsStringAsync();
|
|
||||||
|
|
||||||
// Smoke test to make sure the page is served correctly.
|
|
||||||
Assert.Contains("<title>Home Page – ASP.NET MVC Music Store</title>", responseContent);
|
|
||||||
|
|
||||||
// Verify the app is using a runtime compiled view
|
|
||||||
Assert.DoesNotContain("MusicStore.Views, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", responseContent);
|
|
||||||
}
|
|
||||||
|
|
||||||
public async Task VerifyStaticContentServed()
|
public async Task VerifyStaticContentServed()
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Validating if static contents are served..");
|
_logger.LogInformation("Validating if static contents are served..");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue