-
Notifications
You must be signed in to change notification settings - Fork 225
Build error : The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0 #2334
Comments
Under dnx451 add: "frameworkAssemblies": {
"System.Runtime": ""
} |
@davidfowl Thanks. It seams that helps but now I am receiving another issue:
I have tried to move "System.Data.Common": "4.0.0-beta-23019" to dnxcore50 with no success... |
Move these all to dnxcore50:
and remove dotnet |
@davidfowl I cannot remove dotnet because I need to consume this class library from both classic .net framework project and ASP.NET 5 project.
I am working with ASP.NET 5 from CTP6 and always have problems with resolving these kind of issues. |
@davidfowl Managed to fix issue by removing entire section : "dnx451" from project.json.
no help. |
I don't know what state your project is in at this point. |
I will close this issue and open a new related to this issue. I was thinking this is a known issue because 2 other of my colleges told me they resolved their errors also by removing dnx451 section. |
I am getting this error: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0
when I try to build .NET Core Class Library Project.
My project.json:
I am also referencing another .NET Core Class Library Project Heu.Model as you can see from project.json.
Any tips how to resolve this problem?
The text was updated successfully, but these errors were encountered: