locked
Asp net 5 adding external project references. RRS feed

  • Question

  • I am working on a WebApi using ASP NET 5. I have previously made libraries that I would like to use as references in this project. When I try to add the project as an existing project and then add it as a reference I get an error saying Dependency "name of project" >= 1.0.0-* could not be resolved. Any help would be greatly appreciated!

    Garrett


    • Edited by gtongue Wednesday, July 15, 2015 7:53 PM
    • Moved by Fred Bao Thursday, July 16, 2015 8:45 AM ASP.NET Related
    Wednesday, July 15, 2015 6:22 PM

All replies

  • For questions about ASP.Net, you are more likely to get help at forums.asp.net.
    Wednesday, July 15, 2015 6:48 PM
  • Thanks! I posted this question in both places just in case. 
    Wednesday, July 15, 2015 7:34 PM
  • you can add the assembly if it available in GAC like below code

    "frameworks": {
        "aspnet50": {
            "frameworkAssemblies": {
                "Stimulsoft.Report": ""
            }
        }
    }

    in the second part, you can give the version and type of the assembly

    One workaround is to create a class library project with your 3rd party library reference. Then use a project reference from your website to the class library project.

    Edit: Use a traditional class library, not an ASP.Net 5 class library.

    Also:

    (1) Package your assembly with nuget
    (2) Follow the @AndersNS answer talking about nuget repository

    Wednesday, July 15, 2015 8:31 PM