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. WCF and WF
  4. XAML XmlnsDefinition within the AssemblyInfo.cs File

XAML XmlnsDefinition within the AssemblyInfo.cs File

Scheduled Pinned Locked Moved WCF and WF
helpdotnetwpfcomquestion
2 Posts 1 Posters 7 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.
  • P Offline
    P Offline
    PHDENG81
    wrote on last edited by
    #1

    I must be missing something here given the fact that this should be a trivial solution. Nevertheless, here it is: I have declared a URI within the AssemblyInfo.cs file using XmlnsDefinition. The namespace I am using is referenced by the project. I then reference the uri within my XAML file as such: xmlns:myBindings="http://sources.mycompany.com/datasource" Then I declare a objectdataprovider within the resources of my XAML file: When I compile, I receive the following error: "The type reference cannot find a public type named 'LocalTimes'. However, if I declare the namespace as such: xmlns:myBindings="clr-namespace:Bindings.Time;assembly=Bindings" Everything works fine. What gives? Any help would be much appreciated. Thanks!

    P 1 Reply Last reply
    0
    • P PHDENG81

      I must be missing something here given the fact that this should be a trivial solution. Nevertheless, here it is: I have declared a URI within the AssemblyInfo.cs file using XmlnsDefinition. The namespace I am using is referenced by the project. I then reference the uri within my XAML file as such: xmlns:myBindings="http://sources.mycompany.com/datasource" Then I declare a objectdataprovider within the resources of my XAML file: When I compile, I receive the following error: "The type reference cannot find a public type named 'LocalTimes'. However, if I declare the namespace as such: xmlns:myBindings="clr-namespace:Bindings.Time;assembly=Bindings" Everything works fine. What gives? Any help would be much appreciated. Thanks!

      P Offline
      P Offline
      PHDENG81
      wrote on last edited by
      #2

      Got it. The XmlnsDefinition must reside within the assembly that I am referencing, not the project that is performing the referencing......

      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