It marks lines in red, but it compiles.

Central data 156 Reputation points
2025-06-25T03:34:47.8633333+00:00

In Visual Studio 2022 with the latest update and C#, I use two DLLs. In the first DLL, I removed an enumeration and created another one, which I compiled. In the second DLL, it also compiles, but the lines where I reference the new enumeration are highlighted in red.

Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2025-06-27T22:19:07.21+00:00

    If you move code between projects you need to do a clean and rebuild to remove any partial compile artifacts.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.