aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

MusicStore tests are broken due to changes in Razor Sdk #846

Closed pranavkm closed 6 years ago

pranavkm commented 6 years ago

The change - https://github.com/aspnet/Razor/commit/95835d6c37c108ae0788f49ccc0d17f3ba20586e - makes the Microsoft.AspNetCore.Mvc.Razor.Extensions package incompatible with the Razor Sdk in the CLI. We need to reference the package that is produced in our builds to make it compatible and fix test failures:

Sample failure:

Assert.Contains() Failure
Not found: MusicStore.Views, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
In value:  <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Home Page – ASP.NET MVC Music Store</title>
....