React.NET icon indicating copy to clipboard operation
React.NET copied to clipboard

React.AspNet 'IServiceCollection' collection error ASP.NET 5 beta 5

Open jkicha opened this issue 11 years ago • 2 comments

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

jkicha avatar Jul 26 '15 17:07 jkicha

Can you please try again with React.AspNet 1.5.3? 1.5.2 had a dependency on beta4 rather than beta5.

Daniel15 avatar Jul 27 '15 06:07 Daniel15

I didn't get the compilation error. It works fine.

jkicha avatar Jul 28 '15 01:07 jkicha