Skip to content
This repository was archived by the owner on Apr 11, 2020. It is now read-only.
This repository was archived by the owner on Apr 11, 2020. It is now read-only.

Add Reference to .NET 4.5.1 class library project from ASP.NET 5 web app not working  #45

@johnciliberti

Description

@johnciliberti

I am running the RC of Visual Studio Enterprise on a Windows Server 2012 R2 Virtual Machine. Folder that solution is added to is part of a git repo.
Steps to reproduce:

  1. Create new Web Application Project with ASP.NET 5 Starter Web Template
  2. Add an existing .NET 4.5.1 class library project to the solution. Project includes a reference to EF 6.1.3
  3. Add the class library project as a reference in the web application project.

Results:

  1. A reference is added to the project.json file in the web project
    "frameworks": {
    "dnx451": {
    "dependencies": {
    "Recipe05.Dal": "1.0.0-*"
    }
    }
  2. In the class library project a wrap directory is created with the folders:
  • EntityFramework
    • EntityFramework.SqlServer
    • Recipe05.Dal
      each folder has it's own project.json file with a bin configuration
      "bin": {
      "assembly": "../../obj/{configuration}/Recipe05.Dal.dll",
      "pdb": "../../obj/{configuration}/Recipe05.Dal.pdb"
      }
    • In the web project package restore fails with the following error:
      Error NuGet Package Restore failed for one or more packages. See details in the Output window.
      Restoring packages for C:\MVC6Recipes\MVC6Recipes\Chapter06\Recipe05\src\Recipe05.Dal\wrap\Recipe05.Dal\project.json
      GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Recipe05.Dal'.
      OK https://www.nuget.org/api/v2/FindPackagesById()?Id='Recipe05.Dal' 1081ms
      Unable to locate Recipe05.Dal >= 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions