none
How to check if the dll is classlibrary in netcore? RRS feed

  • Question

  • In netcore, *.dll file can be class library can also be console application.How to check if the dll is classlibrary in netcore?
    Saturday, April 13, 2019 11:05 AM

Answers

  • Hello,

    In Visual Studio there will be a dependence node in Solution explorer under the project.

    In the project file under PropertyGroup node there is a setting TargetFrameWork or TargetFrameWorks that is an indicator having netxx.

    At runtime use RuntimeInformation.FrameworkDescription.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Saturday, April 13, 2019 1:33 PM
    Moderator

All replies

  • Hello,

    In Visual Studio there will be a dependence node in Solution explorer under the project.

    In the project file under PropertyGroup node there is a setting TargetFrameWork or TargetFrameWorks that is an indicator having netxx.

    At runtime use RuntimeInformation.FrameworkDescription.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Saturday, April 13, 2019 1:33 PM
    Moderator
  • Hi

    Is your problem solved? If so, please post "Mark as answer" to the appropriate answer, so that it will help other members to find the solution quickly if they face a similar issue.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, April 15, 2019 1:22 AM
    Moderator