windows phone 8 - Error APPX1706: creating winrt dll with xaml -


i built winrt(windows phone 8.1) dll page.xaml , app.xaml files. next, add reference winmd in wp8.1 application project.

and following error:

error appx1706: .winmd file 'project.winmd' contains type  '?a0x32772d97.project_xamltypeinfo.xamlmetadataprovider' outside root namespace 'project'. make sure public types appear under common root namespace matches output file name. 

a winmd library regular library (dll) metadata information. these metadata information allow used different languages. can example, create winmd library in c# , use c++ or js application.

since winmd library can used different languages, conforming windows runtime rules.

your specific problem 1 of rules winmd files states classes must belong same root namespace. means if have following code:

a.cs namespace foo { class { ... } }  b.cs namespace foo.sub { class b { ... } }  c.cs namespace bar { class c { ... } }  d.cs namespace bar.sub { class d { ... } } 

the winmd linker return error seeing. solve it, have declare classes in same root namespace :

 a.cs namespace foo { class { ... } }  b.cs namespace foo.sub { class b { ... } }  c.cs namespace foo { class c { ... } }  d.cs namespace foo.sub { class d { ... } } 

i've replaced "bar" namespace "foo"


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -