CLR assembly type library import/export error

Kukrim Choe 10 Reputation points Microsoft Employee
2023-03-17T03:08:57.6+00:00

Recently updated Visual Studio 2022 to version 17.5.2

Started seeing below when running the code (F5) with/without debug.

User's image

The only thing I have done before seeing this was updating the Visual Studio 2022.

Tried running downgrade to previous version, repair, uninstall and reinstalling visual studio 2022, but it keeps appearing.

Any help would be appreciated.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,602 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,266 Reputation points Microsoft Vendor
    2023-03-17T08:33:21.3333333+00:00

    Hello @Kukrim Choe ,

    Thanks for taking time to post this issue in Microsoft Q&A forum.

    May I first confirm that if this error appears on a specific project/solution, or it appears on all other projects even on newly created projects?

    If it appears on a specific project, per the detailed error message, can you confirm that in your project if Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime.dll was used/referenced?

    • If it was referenced in your project, could you try to re-reference it and test again? If re-reference the dll/reference doesn’t work, could you please share us some corresponding code about how you import/use/call this reference/dll to check further?
    • Please also try to clean your project cache by removing the hidden .vs, bin and obj folders.

    If it appears on all projects, then please try to remove VS cache(rename every "ComponentModelCache" folders in C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX).

    Since you have tried to reinstall Visual Studio 2022, if above troubleshooting methods don’t work, I may recommend submitting a ticket on our Developer Community and reporting this issue.

    Feel free to contact us.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.