runtime: .net Core App 1.1 doesn't resolve file linked .net standard libs

I had a project in .net core 1.0 which is refrencen a standard 1.4 library. this works fine.

No i tried to switch to .net core 1.1 an I get AssemblyNotFoundExceptions.

To isolate the problem I tested the same thing by creating a new project with the released VS2017

Fir this I created a solution with 2 projects. A .net core 1.1 host (console) and a .net standard 1.4 class library.

I changed the standard lib to 1.6

Then I add the reference to the client as project refrence in the core console project.

Then at runtime i get the exception that the assembly of the client is not found. And this at the first place i use a type of the .net standard assembly so my test console looks as trivial as this:

 class Program
    {
        static void Main(string[] args)
        {
            var foo = new Class1();

When I switch the host project to .net core 1.0 everything is working fine.

I published a sample here: https://github.com/Gentlehag/coreapp11bug

Is this expected behavior ?

Which .net standard library version should work with .net core 1.1 ?

PS: I also posted here: http://stackoverflow.com/questions/42677625/net-core-app-1-1-doesnt-resolve-external-net-standard-libs

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 31 (16 by maintainers)

Commits related to this issue

Most upvoted comments

use dotnet pack to create a nuget package (or from vs 2017, right click the project and select pack option)