I have followed the steps here to upgrade from ASP.NET 5 Beta 4 to Beta 5 but am getting an error at runtime when calling application.UseBrowserLink();:
In order to help you migrate from beta4 to beta5, these are the following steps it took me, based on the research/findings.
$env:DNX_FEED="https://www.nuget.org/api/v2"dnvm install 1.0.0-beta5dnvm use 1.0.0-beta5 -p (not sure if its needed however i had to)Open global.json and update sdk to 1.0.0-beta5 should look like this:
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-beta5"
}
}
Open project.json:
Change Configuration dependency from:
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4"
to
"Microsoft.Framework.Configuration": "1.0.0-beta5",
"Microsoft.Framework.Configuration.Json": "1.0.0-beta5"
Microsoft.VisualStudio.Web.BrowserLink.Loader_GlobalImport.cshtml to _ViewImports.cshtmlChange Configuration breaking changes
Change namespace from using Microsoft.Framework.ConfigurationModel; to using Microsoft.Framework.Configuration;
Change Configuration.GetSubKey to Configuration.GetConfigurationSection
Change CTOR to:
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
{
// Setup configuration sources.
var configBuilder = new ConfigurationBuilder(appEnv.ApplicationBasePath)
.AddJsonFile("config.json")
.AddEnvironmentVariables();
Configuration = configBuilder.Build();
}
app.UseBrowserLink();dnu restorednu buildMyself found it quite difficult to upgrade an existing project, couldn't find all steps required all together. Hope it helps!