Cannot resolve symbol when referencing .winmd file - windows-runtime

everyone!
I am a windows phone 8.1 developper focus on Library developping.
Recently I encouter some strange question.
Details:
I have developped a windows runtime component named "Com.AMap.Api.Maps"
In my developping project,it works fine.
But,when I new a wp8.1 app project,and reference the output file ".winmd"
Input a type in the windows runtime component,like this below:
under normal circumstances,it should work(and it do work on my college's computer!)
but in my computer,problem appears
shows:cannot resolve symbol "Com"
but it is different from the misspelled type,because you can go to its definition
I have tried reinstalled my Visual studio but the problem remains
vs 2013 u2
Can you help me?Any advice would be appreciate!

Uninstall Resharper and problem disappears
Discussion here
Cannot resolve symbol when referencing .winmd file

Related

Package Acceptance Validation Error: Package contains multiple files with identical names

Whilst building an old Windows Phone 8 app with Visual Studio 2015 I've come across and unusual error when I upload the built .XAP to the store. It throws the error:
Package acceptance validation error: Package cannot contain multiple files with identical filenames. Please correct the following files: Assets\ApplicationIcon.png, Assets\Background.png
I can view the contents of the .xap file by renaming the file to a .zip and looking inside. Sure enough there are two files with the same name (something I didn't think was even possible!):
This app built fine in other versions of Visual Studio - any idea what is going on and how to fix this?
After some investigation it seems the root cause of the problem can be found in WMAppManifest.xml file in Properties.
<IconPath IsRelative="true" IsResource="false">Assets/ApplicationIcon.png</IconPath>
<SmallImageURI IsResource="false" IsRelative="true">Assets/Background.png</SmallImageURI>
<BackgroundImageURI IsResource="false" IsRelative="true">Assets/Background.png</BackgroundImageURI>
Simply changing all the forward slashes to backward slashes fixes the problem.
<IconPath IsRelative="true" IsResource="false">Assets\ApplicationIcon.png</IconPath>
<SmallImageURI IsResource="false" IsRelative="true">Assets\Background.png</SmallImageURI>
<BackgroundImageURI IsResource="false" IsRelative="true">Assets\Background.png</BackgroundImageURI>
And here is the inside of the .xap - no more duplicate files!
No more duplicate files!
This is an intensely annoying issue, I hope if anyone out there is still using Windows Phone 8 and comes across this it helps!

Unable to deploy Windows 8.1 App to Surface Pro 3 (DEP0700 Error)

I am trying to deploy and test a Universal Windows App to a Surface Pro 3 directly from Visual Studio 2013 (Update 4) and I am unable to launch the App (by hitting F5). I am running into the following error and not able to find a fix to it. There are a bunch of solutions of DEP0700 errors online, but none of them work for the specific sub-error message Cannot map the serial well-known device name to a device interface GUID (blah blah blah)
Here is the error that I am seeing
Error : DEP0700 : Registration of the app failed. c:\Builds\TestAppRT\AppX\AppxManifest.xml(38,6): error 0x80070002:
Cannot map the serial well-known device name to a device interface GUID for the 11156705-8b60-4c7f-a75f-f8c7516401fc_1.0.0.0_neutral__1g7p71hbj7m7y package.
Check that the device name is correct. (0x80073cf6)
Have you declared any serial communication in your AppxManifest file?
If your other apps work, your issue might be because opening/editing ApxManifest file in the designer. Try making a new solution, and edit the manifest through only through XML Editor, if required & do not open with the designer.
Reference for more information:
http://ms-iot.github.io/content/en-US/win10/samples/SerialSample.htm
"Visual Studio 2015 has a known bug in the Manifest Designer (the visual editor for appxmanifest files) that affects the serialcommunication capability. If
your appxmanifest adds the serialcommunication capability, modifying your appxmanifest with the designer will corrupt your appxmanifest (the Device xml child will be lost). You can workaround this problem by hand editting the appxmanifest by right-clicking your appxmanifest and selecting View Code from the context menu."

Localizing DateSpinner month names - Flex Mobile

I want to translate Flex Mobile DateSpinner month names into Turkish ones but I couldn't cause of lacking locale support for turkish language, and even when I created a new locale using copylocale command (http://tamanmohamed.blogspot.com/2011/04/flex-41-creating-new-locale-for-i18n.html) Eclipse shows me an error below:
unable to open '/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flexbuilder.project_4.7.0.349722/dcradSwcs/4.5/locale/tr_TR'
Is there any workaround? maybe by extending component but I don't have much experience with flex - actionscript.. Any suggestions?
UPDATE: adding locale parameter solved my issue
<s:DateSpinner id="dt" displayMode="date" width="100%" locale="tr_TR"/>
There should be folder "tr_TR" in your local Flex sdk folder - for example "FlexBuilder2Plug-in\Flex SDK 2\frameworks\locale". If it's missed in your sdk, try to download it from adobe site, it could be missed just because you PC local settings did't apply properly when you downloaded sdk.

Problems including comdef.h

I'm trying to port some existing code to WP8 and have come across a problem.
The code i am porting uses a smart pointer thats is defined in comdef.h but for some reason when I try and include comdef.h I get the following error.
comdef.h(25): fatal error C1083: Cannot open include file: 'olectl.h'
I understand what the error means and it seems there is no trace of "olectl.h" in the WP8 SDK include paths on my machine. Is anyone else having this problem, I've tried "repairing" my installation of "Visual studio 2012 Express for Windows Phone"
I have found some code that appears to include comdef.h and has gotten around the missing macro problem the link at the end of this post is talking about by not using the macro at all and explicitly using the code that the macro would expand to.
(Here is the code that does what I want to: https://devel.nuclex.org/framework/browser/graphics/Nuclex.Graphics.Native/trunk/Source/Rasterization/Direct3D11/Direct3D11Api.h?rev=1782)
Has anyone else experienced this, or could someone with the SDK installed try including comdef.h somewhere to see if it works for them.
The missing macro link:
http://connect.microsoft.com/VisualStudio/feedback/details/751127/com-smartptr-typedef-causes-errors-when-used-in-winrt-build
Thanks.
Yes, I see this too, so it appears this is "by-design".
Basically if the API isn't listed on MSDN in the list of supported COM/Win32 APIs, then it isn't a supported API on Windows Phone 8. It looks like only the combaseapi.h header is supported.
_com_ptr_t<T> and it's friends aren't on the list...

Referencing ZXing.Net library

I need to reference the ZXing library to scan QR codes in my Windows Phone 8 app.
I have downloaded the ZXing.Net 0.10.0.0 from the following source: http://zxingnet.codeplex.com/
However, whenever i try to add a reference to zxing.wp8.0.dll, I get an error as follows:
A reference to higher version or incompatible assembly cannot be added
to the project.
Can I please know why am I getting this error. Is there anything that I am doing wrong or missing?
Right click on the DLL in File Explorer --> Click Properties --> Choose unblock. Then try to add a reference again.
VS2012 has the absolute worst error message for when DLLs are blocked due to the fact they were downloaded from the web.
Goto
http://nuget.org/packages/ZXing.Net
Follow the instructions to install the right version you need.