John Freebs
John Freebs

Reputation: 447

regasm on a .net framework library now wants netstandard 2.1.0.0

I have a .net framework 4.8 library I have been working on for months in VS19. The project is configured to "Register for COM interop" (which runs regasm.exe on the dll).

Recently (in last few days) I installed VS22 and have been playing around with some .net core projects in here.

I have come back to my original library in VS19 which when compiling now reports (during the regasm call):

Cannot register assembly "X:\<removed>\my-lib.dll". Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

I get the same result from manually trying to register the dll or trying to load and compile the project in VS22. I have installed all VS19 updates and rebooted the computer, no change.

It is my understanding that netstandard 2.1 has nothing to do with framework and netstandard is not specifically mentioned anywhere in my code or config. The gacutil /l output shows netstandard 2.0.0.0 is installed but nothing else.

It would seem the installation of VS22 may have shifted something in my environment and I'm not sure how to correct it?

Upvotes: 0

Views: 281

Answers (0)

Related Questions