User Tools

Site Tools

blog:2023-06-12_c_directx_error_cs0012_of_the_format



2023-06-12 C#: DirectX Error CS0012 of the Format

  • I got the CS0012 error during compile the code of directX program.
  • 20230612-093242.jpeg
  • CS0012: The type 'IsConstModifier' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualC, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Solution

  • Add the Microsoft.VisualC.Dll in reference.
  • Location:
    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2
  • 20230612-093740.jpeg
  • Then, the error will disappear.

TAGS

  • 80 person(s) visited this page until now.

Permalink blog/2023-06-12_c_directx_error_cs0012_of_the_format.txt · Last modified: 2023/06/12 09:39 by jethro

oeffentlich