Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

.NET Standard and .NET Framework compatibility #192

Closed
@manu-st

Description

Hi,

We have been facing the following issues and are not able to work around it without manually copying assemblies.

  • Create a console app (with VS2015 Update 3)
  • Add a Portable C# library and reference it
  • Transform this portable library into a .NET Standard project (version 1.4)
  • Add a call to Console.WriteLine(""); in the class created for you in the portable library project.
  • Call the Class1 method from the console app
  • Run the console application and you will get an exception because it cannot find assemblies referenced by the portable library:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in ConsoleApplication1.exe

Additional information: Could not load file or assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I'm not sure if this is the right place to discuss this kind of compatibility but we were wondering what does it take to run a .NET Standard library against the .NET Framework.

Thanks,
Manu

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions