React.NET
React.NET copied to clipboard
React.AspNet 'IServiceCollection' collection error ASP.NET 5 beta 5
In project.json
"dependencies": {
"Microsoft.AspNet.Server.IIS": "1.0.0-beta5",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta5",
"React.AspNet": "1.5.2"
},
"frameworks": {
"dnx451": { }
},
In the Startup.cs class, it shows the following error only after adding React.AspNet. With just default empty project, it's working fine.
Severity Code Description Project File Line
Error CS0433 The type 'IServiceCollection' exists in both 'Microsoft.Framework.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Microsoft.Framework.DependencyInjection.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' AspNet.ReactJS.DNX 4.5.1 J:\vsproj\AspNet.ReactJS\src\AspNet.ReactJS\Startup.cs 14
Can you please try again with React.AspNet 1.5.3? 1.5.2 had a dependency on beta4 rather than beta5.
I didn't get the compilation error. It works fine.