Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. predefined type 'xxx' is defined in multiple assemblies in the global alias

predefined type 'xxx' is defined in multiple assemblies in the global alias

Scheduled Pinned Locked Moved C#
helpcsharpdotnettutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sc steinhayse
    wrote on last edited by
    #1

    I am getting the following warning and error message for a C# 2008 application I am working on: Warning 17 The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\NLog\.NET Framework 2.0\NLog.dll' sample Error 21 The type or namespace name 'Nlog' could not be found (are you missing a using directive or an assembly reference?) C:\Sample.cs 15 7 samplef I am getting this error message since I am trying to add the NLog open source tool to the solution file for 3 different project files in this solution. I am completing the following task: 1. I add a reference to this dll in the references section of each proejct file. 2. I then place a 'using NLog' statment in each proejct file. Can you show me code and/or tell me how to fix this problem?

    N 1 Reply Last reply
    0
    • S sc steinhayse

      I am getting the following warning and error message for a C# 2008 application I am working on: Warning 17 The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\NLog\.NET Framework 2.0\NLog.dll' sample Error 21 The type or namespace name 'Nlog' could not be found (are you missing a using directive or an assembly reference?) C:\Sample.cs 15 7 samplef I am getting this error message since I am trying to add the NLog open source tool to the solution file for 3 different project files in this solution. I am completing the following task: 1. I add a reference to this dll in the references section of each proejct file. 2. I then place a 'using NLog' statment in each proejct file. Can you show me code and/or tell me how to fix this problem?

      N Offline
      N Offline
      n podbielski
      wrote on last edited by
      #2

      Are you sure you did it right? Do you have reference to that dll in project that contain sample.cs? Maybe do you have errors in dependent projects? Or namespaces clash?

      No more Mister Nice Guy... >: |

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups