Types already exist!!!! WHY???

This is a discussion on Types already exist!!!! WHY??? within the C# Programming forums, part of the General Programming Boards category; Hope that someone will answer to me. That's my problem, I've done my first program using Visual Studio 2003 (C#) ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    45

    Exclamation Types already exist!!!! WHY???

    Hope that someone will answer to me.

    That's my problem, I've done my first program using Visual Studio 2003 (C#) and now I ported it to VS 2k5 but I receive this errors:

    Error 1 The type 'Microsoft.DirectX.Direct3D.Device' exists in both 'c:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3 D\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.D irect3D.dll' and 'c:\WINDOWS\assembly\GAC_32\Microsoft.DirectX\2.0. 0.0__31bf3856ad364e35\Microsoft.DirectX.dll' I:\clock_src\MovNumber.cs 24

    Error 2 The type 'Microsoft.DirectX.Direct3D.VertexBuffer' exists in both 'c:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3 D\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.D irect3D.dll' and 'c:\WINDOWS\assembly\GAC_32\Microsoft.DirectX\2.0. 0.0__31bf3856ad364e35\Microsoft.DirectX.dll' I:\clock_src\MovNumber.cs 26

    Error 3 The type 'Microsoft.DirectX.Direct3D.Texture' exists in both 'c:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3 D\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.D irect3D.dll' and 'c:\WINDOWS\assembly\GAC_32\Microsoft.DirectX\2.0. 0.0__31bf3856ad364e35\Microsoft.DirectX.dll' I:\clock_src\MovNumber.cs 28

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    I believe the solution is to install an older DirectX version.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    45
    Oh my god again??
    I'm migrating from an old one to a new one then again to an old one
    I'll try!

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    45
    For the ppl that had, have, will have this problem, don't worry here the fix:

    1) Look into .csproj
    2) Search for <ItemGroup>
    3) And modify these lines:
    Code:
        <Reference Include="Microsoft.DirectX">
          <Name>Microsoft.DirectX</Name>
          <HintPath>C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.00.1126\Microsoft.DirectX.dll</HintPath>
          <AssemblyFolderKey>hklm\current managed directx 9.1</AssemblyFolderKey>
        </Reference>
        <Reference Include="Microsoft.DirectX.Direct3D">
          <Name>Microsoft.DirectX.Direct3D</Name>
          <HintPath>C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.00.1126\Microsoft.DirectX.Direct3D.dll</HintPath>
          <AssemblyFolderKey>hklm\current managed directx 9.1</AssemblyFolderKey>
        </Reference>
        <Reference Include="Microsoft.DirectX.Direct3DX">
          <Name>Microsoft.DirectX.Direct3DX</Name>
          <HintPath>C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.00.1126\Microsoft.DirectX.Direct3DX.dll</HintPath>
          <AssemblyFolderKey>hklm\current managed directx 9.1</AssemblyFolderKey>
        </Reference>
    as these:
    Code:
        <Reference Include="Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <Reference Include="Microsoft.DirectX.Direct3D, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <Reference Include="Microsoft.DirectX.Direct3DX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. invalid types 'int[int]' for array subscript
    By kolistivra in forum C++ Programming
    Replies: 6
    Last Post: 12-11-2010, 12:57 PM
  2. Replies: 6
    Last Post: 08-23-2008, 02:16 PM
  3. How to convert integral types into pointer types?
    By rohit99 in forum C++ Programming
    Replies: 3
    Last Post: 03-20-2008, 10:57 AM
  4. The Interactive Animation - my first released C program
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 48
    Last Post: 05-10-2007, 03:25 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21