React to Sdk changes to assembly metadata

Fixes https://github.com/aspnet/MvcPrecompilation/issues/248
This commit is contained in:
Pranav K 2018-03-19 16:07:30 -07:00
parent 8f9832119f
commit 1564b1e83a
3 changed files with 3 additions and 15 deletions

View File

@ -1,2 +1,2 @@
version:2.1.0-preview2-15742
commithash:21fbb0f2c3fe4a9216e2d59632b98cfd7d685962
version:2.1.0-preview2-15744
commithash:9e15cb6062ab5b9790d3fa699e018543a6950713

View File

@ -4,7 +4,6 @@
<Description>Music store application on ASP.NET Core</Description>
<TargetFrameworks>netcoreapp2.1;netcoreapp2.0;net461</TargetFrameworks>
<DefineConstants>$(DefineConstants);DEMO</DefineConstants>
<RazorCompileOnBuild>true</RazorCompileOnBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RuntimeIdentifiers Condition="'$(Configuration)' != 'RuntimeStore'">win7-x86;win7-x64;linux-x64;osx-x64</RuntimeIdentifiers>
<Configurations>Debug;Release;RuntimeStore</Configurations>

View File

@ -116,7 +116,7 @@ namespace E2ETests
}
// 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)
@ -148,17 +148,6 @@ namespace E2ETests
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()
{
_logger.LogInformation("Validating if static contents are served..");