How to fix error CS0246 (AxMSInkAuTLib) missing

Giacomo Raucci 346 Reputation points
2024-07-28T01:33:46.62+00:00

After copying all of the Winforms from 1 project to another, I was not able to compile the 2nd project. Getting error CS0246 for AxMSInkAutLib.AxInkPicture (see below for the detailed error description). I think I am missing a Reference, but am unable to solve this issue. I appreciate your help. regards.:

---- Detailed Error - - -

Error (active) CS0246 The type or namespace name 'AxMSINKAUTLib' could not be found (are you missing a using directive or an assembly reference?) ECCWinClients D:\ECCWinClients\ECCWinClients\ClientSignature.Designer.cs 40

. . . . .

    private AxMSINKAUTLib.AxInkPicture ClientSignatureInk;
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,193 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,011 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,898 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Giacomo Raucci 346 Reputation points
    2024-07-28T21:30:45.5733333+00:00

    Thanks RLWA32. Although deleting the obj and bin files did not directly solve the issue, I got several more messages about"LangVersion", requiring 8.0 or above since I was using C#7.3 (not sure how). Anyway, trying to solve the LangVersion issue, I realized that the .csproj files differed, so I copied the .csproj and .csproj.user files over as well. Errors disappeared. I really don't understand it all, but I no longer have any compile errors. Thanks again.


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.