visual studio 2013 - Adding reference to windows phone class library via project will build; adding the dlls directly fails -
i wasn't quite sure how word title i'm confused problem, edits or suggestions clarify welcome...
anyway, problem have windows phone 8.1 (rt) application, , i'm attempting use add reference class library can make use of code , xaml views in project.
if add entire class library project visual studio solution, , add reference project in app, works fine.
however, if remove reference , library project, , instead add reference same dll files of class library project, application no longer build.
the error message this:
payload file 'c:\users\me\desktop\myproject\myclasslibrary\bin\debug\ myclasslibrary\mypage.xbf' not exist.
that bold myclasslibrary extraneous folder definition origin cannot identify. if add class library reference via solution, builds fine, though folder doesn't exist.
but when add reference same dll files only, starts looking in folder. if create folder manually , copy it, can build , run before, seems hack, works fine without workaround if add project reference instead...
why doing this? according output of build appears result of error:
1>c:\program files (x86)\msbuild\microsoft\visualstudio\v12.0\appxpackage\microsoft.appxpackage.targets(1496,9): error appx0702: payload file 'c:\users\me\desktop\myproject\myclasslibrary\bin\debug\myclasslibrary\mypage.xbf' not exist.
but why append folder when add reference dlls files directly, coming , how can stop doing that?
this 1 tricky. in fact when build store apps, (phone or windows 8) cannot add libraries contains xaml referencing dll. won't work , display kind of errors. cannot package xaml winrt librairies in silverlight.
please read links
http://timheuer.com/blog/archive/2012/03/07/creating-custom-controls-for-metro-style-apps.aspx
Comments
Post a Comment