Visual Studio 2013 Compiler issue on Windows phone 8.1 silverlight project - visual-studio

Today I tried to make a windows phone application, I first stared with universal application and and it worked, emulator was running with project but when I try to use Windows.Phone.Speech namespace I couldn't do that, thus I make some research for it, Then I find the answer I need a windows phone silverlight project. When i'm trying to run a blank windows phone silverlight project I got some error like that
I couldn't find anything about it, I compare the csproj with a working wp silverlight project but I couldn't find a difference between them.
Thanks.

Check to make sure you are compiling for Any CPU or specifically for the right kind of CPU that you intend in solution properties.

I found a solution about it, but there is still some missing on my answer.
I don't know how but accidentally a blank project worked on my emulator. After that I looked up the ProjectName.csproj.user file and there were a change somekind like that
After that I added the same lines to another project, and it is worked. The main problem of this solution you need a emulator guid ID. In my solution it was 57B0267A-6444-41EB-9127-2ED594284A2D.
Thanks.

Related

android studio gui broken

I'm having a serious issue with Android Studio.
After using any context menus in the code editor (ex, generate->override methods) or using it for a while the GUI gets broken as shown in the attached screenshot.
Don't know if it's a Java, Android Studio or NVIDIA driver bug.
System:
Windows 10 x64 1151 10586.11
Android Studio: 1.4.1
Java 1.8 update 66 x64
Nvidia GTX 970 driver 359.00
UPDATE: I thought it was Java compatibility issue with Windows 10 TH2, so I launched Eclipse to see if the same happened. Nope, it's an Android Studio bug. I have send a bug report to the devs. If someone finds a workaround to fix this, please reply.
I think I solved the issue, after searching a lot I found this page that explains some of the options we can change in Android Studio. I tried changing some of these options and solved the issue. This is what I did to solved it:
Created an idea.properties file in Android Studio configuration folder located in C:/Users/"Username"/.AndroidStudio[versionNumber]
I added this line: "sun.java2d.d3d=false"
Any IDE with so many dependencies can easily break down like that (looking at you, Eclipse). It may not be preferable, but I'd try uninstalling it and reinstalling it to see if that helps. It might not identify the issue but you may spend a long time tracking it down if a quick google search doesn't identify the issue.
I had the same problem, Windows 10 Pro + Android Studio 1.5 + NVIDIA 980m.
For some reason I didn't even have the idea.properties and studio64.exe.vmoptions files present in the Android Studio profile folder. In any of them (.AndroidStudio, .AndroidStudio1.3, .AndroidStudio1.4, AndroidStudio1.5, AndroidStudio2.0, etc).
What helped me is that I just closed Android Studio, renamed all of these folders (XXX_temp) and then started Android Studio 1.5 again. I allowed it to import the settings from my old .AndroidStudio1.5_temp folder and it created a new .AndroidStudio1.5 folder and now both required files are there. And the UI seems to be fine again, at least for the time being.
I still do not understand with this issue came up at this specific time.

Deploying to Windows Phone 10 fails on Visual Studio

So many things happened that I don't know where to start. Seriously, shouldn't this be simpler?
Edit: Someone here knows how can I contact Microsoft to tell this? Or even, can someone tell them about this problem?
I have the last Windows 10 desktop and also have Windows Phone 10.0.10512.1000. I installed Visual Studio 2015 with tools for Universal Apps development (and also 8.1). I have a Lumia 730.
So I connected my phone with my USB cable. Everything fine, the phone gets recognized and I can navigate through the folders.
Then I started Visual Studio 2015 and created a blank universal app. Compiled and tried to deploy. Now this is happening to me: Visual Studio hangs for some moments. Eventually I get an error telling that the device was not found (DEP6200).
I already tried dozens of solutions:
disconnecting from wifi in my laptop and my phone
restarting the IpOverUsbSvc service
rebooting the computer and the phone
deleting the devices in the Device Manager
Registering and Unregistering the phone (it sometimes works)
All of the above with the phone screen unlocked
disabling Hyper-V
disabling firewall
Other solutions that failed miserably
I also tried to use that Windows Phone Developer Power Tools. When I try to use it, it asks me to install some "Phone Tools Update Pack", but when I try, it says that the operation didn't succeed, and also shows the NRE message string (object reference not set to an instance of an object).
I can go through the phone's folders without any problem. I tried to reinstall the drivers... i tried everything.
It's quite sad.
Do you guys can think of some more thing to check?
EDIT: I tested this app before doing all this: https://blogs.windows.com/buildingapps/2015/07/09/just-released-windows-10-application-deployment-tool/
And it worked. If that's the case, is Windows Phone 10 deployment over Visual Studio working already or we have to wait some more time?
Edit2: After making some changes to my app manifest and choosing "ARM" config, now I get this:
1>Deploying to SD Card...
1>Updating the layout...
1>Copying files: Total <1 mb to layout...
1>Checking whether required frameworks are installed...
1>Framework: Microsoft.NET.CoreRuntime.1.0/ARM, app package version 1.0.23117.0 is not currently installed.
1>Framework: Microsoft.VCLibs.140.00.Debug/ARM, app package version 14.0.23019.0 is not currently installed.
1>Installing missing frameworks...
But it just stays there. It's stuck, and it stays there forever. At least I got some info... Its more or less the same steps that WinAppDeployCmd does, but the command line app does it successfully.
Somehow the problem got solved. I created a brand new project and did this:
1 - In your phone, try disabling the developer mode on your phone. What an unexpected development!
2 - Disable the "phone discovery" thingy. I don't know the name of this configuration in english (as my phone is in Portuguese). Just in case.
3 - Choose the correct architecture. This is obvious, right? In my case, ARM. If you try deploying with x86 or x64, it should give you an error. For me, it didn't.
From now on, you should be able to deploy your apps in both developer mode and non-developer mode. It just works, somehow. And it might NOT work for you, sorry. I think I got lucky.
It worked even after a reboot. So the solution is "pretty solid" (in an universe where gelatine is pretty solid).
I had the same problem. I tried the fix of the comment and went to devices manager.
Under USB-Devices there were three Lumia 920s listed.
I selected the second one and clicked on uninstall.
At the end it asked me to restart the Computer. I clicked on NO.
(When I uninstalled the first or third one, it didn't ask me that).
Then the error disappeared (now another common one appears (HRESULT: 0x80073CF6))
I have a Lumia 950 xl, with windows 10 installed, anniversary version. I had the same problem, and my solution was to turn on 'Device discovery' and 'Device Portal', and also keep the 'Developer mode' on.
I believe the only necessary option was the 'Device discovery' though!
Just in case someone still runs into this issue, I had something very similar with my Visual Studio 2015 professional update 1 but I couldn't even deploy to an emulator.
The issue has gone after I upgraded to Visual Studio 2013 update 3.
I had the same issues on Windows 10 with Visual Studio 2015. I updated the the UWP SDK to Anniversary Edition Build 14393, set the target framework to this and it worked. I guess the incompatibility between the device version and sdk version was not allowing the device to be discovered by Visual Studio.

Can't create a UWP app

I recently, upgraded to Windows 10 and got Visual Studio 2015 Community hoping to build UWP apps and ASP.Net 5 apps. At first, I installed everything, but ended up skipping / canceling the Windows 8.1 / 10 mobile emulators (my PC can't even run them). After everything was installed, I went to create a new UWP app (C#), and got this error:
Next, I try the same thing, but with JavaScript. It works perfectly! on the same UAP 10.0.0.0 that is supposedly missing. The link it provides is completely useless (it sends me to http:/microsoft.com/en-us) -_-. Oddly, this only happens when I try to use C# or VB.Net, JavaScript UWP apps seem to work fine. What is going on here? Where can I find the real link to the SDK I need?
UPDATE
JavaScript UWP apps will be create just fine, but when I attempt to build, I get:
Error "10.0.0.0" is not a supported value forTargetPlatformVersion.
Please change it on the Project Property page. Test
C:\Program Files (x86) \MSBuild\Microsoft\VisualStudio\v14.\JavaScript\Microsoft.VisualStudio.JavaScript.UAP.targets
This is the download link for the standalone SDK, maybe reinstalling the sdk will fix the problem.
https://dev.windows.com/en-us/downloads/windows-10-sdk
Normally you don't always have to reinstall visual studio when something goes wrong because it takes a lot of time to reinstall again. From your question you skipped/cancel that feature, the first thing to do is go to the control panel and double click on visual studio under programs to Modify the software and enable those features.
In the case, visual studio was working properly before but due to some updates it stopped, go to control panel right click the visual studio version you have under programs to repair.
If the above doesn't work try to reinstall it again. I hope this helps.

Can't find script engine JScript, or Command CScript

I'm trying to develop an app for Windows Phone using Apache Cordova (PhoneGap). I've installed the Windows Phone SDK from Microsoft's web site (SDK 7.1 for Windows Vista+); the SDK comes with Visual Studio 2010 Express for Windows Phone. I'm also using Windows 7 Professional, 64bit.
I've imported the PhoneGap template perfectly, should be no issues here. When I try to emulate my app on the "Windows Phone Emulator", I get the following errors:
I've tried reinstalling Visual Basic/the SDK, PhoneGap countless time (plus tried different versions), I've tried everything posted previously on Stackoverflow and also from other web sites.
My JS files are being detected normally via Windows Explorer, so I don't think there is a wrong file association. I've also attempted to insert additional code, or modify code in the .csproj file and the BuildManifestProcessor.js; but no luck either.
Are there any suggestions, please?
I've found the definite solution, after trying many solutions; such as using regsvr32 attempting to fix JScript and VBScript association. Even if your associations are working perfectly, you can still receive the above error.
To solve this problem, run this tool (by Microsoft): http://support.microsoft.com/mats/windows_media_player_diagnostic/
It will solve your problem. I understand this is for Windows Media Player, but it will also fix any JS or VB.NET problems too.
It will also fix Windows Media Player problems too, such as "server execution failed"; which is caused due to JS/VB.NET too.
I am now able to begin development for Windows Phone; to be honest, I'm excited.
All the best.

Visual Studios 2010 Windows Phone 7 to XNA 4.0

I'm currently using Microsoft Visual Studio 2010 for school. I recently completed a project for the Window Phone 7 platform and am now working on an XNA3D project, however I cannot seem to change my SDK environment from WP7 to XNA.
I've opened previous projects that were started using the XNA framework, but Visual Studios opens using Windows Phone 7, not XNA. I've tried creating a new project and creating it as XNA 4.0 but when Visual Studios loads up my workspace it is still using the Windows Phone 7 header in the drop down menu at the top of the screen. The program still loads the required XNA framework, and will run my program as XNA and will not load the Windows Phone 7 Emulator, so it's not a massive in-my-face kind of problem, but it is an annoyance, and one that neither myself, nor my teacher can solve. I've played around with some of the settings and properties but nothing seems to change it. VS2010 won't even let me click the drop down arrow and select XNA, it's greyed out.
What I'm asking, is has anyone encountered this issue before, and if so, how did you resolve it? Or, do you know how I can fix this and get on with my homework?
Visual Studio identifies the project with unique projectID. And I guess this is the case for you. I highly recommended that you should update the visual studio to 2012 it is good and you can use XNA there too. Here is stackoverflow question explaining details. And it may solve your issue too.
And there is one more way, you can create new XNA project and link your all files to that project. Most of the things works there. Normally I do that while creating [Monogame] (http://monogame.net/) A nice opensource port of XNA.
I hope I understand your question correctly and able to answer that. Please let me know if any specific or more details required.

Resources