I have a developer unlocked Lumia 635 just yesterday updated to Windows 10 Mobile Technical Preview (OS version: 10.0.12562.84).
After
I found that: Solution Explorer -> Right click on project -> properties -> debug -> on start options -> target device: choose device and save.
Deploy again!
Hope this helps!
Deploying a Windows 10 app to phones is not currently supported*. The functionality is expected in a future update (to either Windows 10's phone version, the developer tools, or both).
For now you can use the emulators to test apps on the phone form factors.
edit: here's the official word from Microsoft: MS Developer Tools Blog link
*it looks like some are able to hack it to work
I just faced the same problem described by @Sevenate.
Following the response of @user4855870 I'm finally able to deploy my blank Universal App to my Lumia 520 running W10 TP.
1) On the phone, go to Settings, System, About, More Info and write down the OS version (in my case it is 10.0.12534.59);
2) On Visual Studio, open Package.appxmanifest and in the same line mentioned by @user4855870 on the "MinVersion" write "10.0.1.0" and on the "MaxVersionTested" write the OS version you got from your phone.
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.1.0" MaxVersionTested="10.0.12534.59" />
My blank Universal App works on computer and phone as it should ;)
Ok, I've managed to finally deploy this sample app to the Windows Phone 10.
In your project's Package.appxmanifest change the MinVersion
from "10.0.10069.0" to "1.0.22816.1" (unexpected, hah?) like this:
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal"
MinVersion="1.0.22816.1"
MaxVersionTested="10.0.10069.0" />
</Dependencies>
After you'll build the project just created from new "Windows 10 Universal Blank App" template in VS2015 RC the original Package.appxmanifest available from solution explorer in Visual Studio will copied to YourBlankWin10PhoneProject\bin\x86\Debug\Core\AppxManifest.xml
(notice the Core subfolder in the path) and updated with new dependency - .NET Core Runtime package:
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal"
MinVersion="10.0.10069.0"
MaxVersionTested="10.0.10069.0" />
<PackageDependency Name="Microsoft.NET.CoreRuntime.1.0"
MinVersion="1.0.22816.1"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation,
L=Redmond, S=Washington, C=US" />
</Dependencies>
(Don't confuse with another copy of the original unmodified version of the manifest at YourBlankWin10PhoneProject\bin\x86\Debug\AppxManifest.xml
)
As you could see MinVersion
for both dependencies is different and the application's one is greater then the Core Runtime component's. Now if you update MinVersion
in the original Package.appxmanifest from the solution explorer to match the MinVersion
of the Microsoft.NET.CoreRuntime.1.0
package, i.e. to 1.0.22816.1, next time you'll build the project the Core copy of the manifest will be updated accordingly:
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal"
MinVersion="1.0.22816.1"
MaxVersionTested="10.0.10069.0" />
<PackageDependency Name="Microsoft.NET.CoreRuntime.1.0"
MinVersion="1.0.22816.1"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation,
L=Redmond, S=Washington, C=US" />
</Dependencies>
Now application should be deployed to the phone without problem.
PS. Found the hint to solve this in Deep Dive into XAML and .NET Universal Windows App Development video, fast forward to 0:19:50.
In Package.appxmanifest try changing the TargetDeviceFamily to the following:
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.1.0" MaxVersionTested="10.0.1.0" />
I'm on the .NET/UWP team. The official answer from Microsoft is here:
https://msdn.microsoft.com/en-us/library/windows/apps/dn706236.aspx?f=255&MSPPError=-2147217396
Let me write out the steps from that link above. These steps apply today (May 20th 2015, using VS2015 RC that was released at BUILD.) Deploying to mobile was not possible prior to May14, when the correct build of Win10 Mobile came out.
Your machine should be running Windows 10, build 10074 or higher, from here: https://insider.windows.com/
Install VS2015 RC from here: https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx
You can run Win10 apps upon emulators. The emulators came with the Win10 SDK, and so are running version 10069 of the Win10.Mobile operating system.
You can run Win10 apps on your local machine. To do this you local machine must be Win10.Desktop version 10074 or higher and must be unlocked.
You can run Win10 apps on your phone. To do this your phone must be Win10.Mobile version 10080 or higher (which came out on May 14th). Your phone must be unlocked.
The key fact about Win10 is that you can write software against one particular SDK (e.g. the 10069 SDK that came out at //BUILD), and still run it on a more recent version of Win10 (e.g. 10074 that's current for Win10.Desktop program, or 10080 that's current for Win10.Mobile insider program).
In the .appxmanifest file, MinVersion="10.0.10069.0" says that your app will refuse to deploy to any machine which is running a lower version of Win10.
In the .appxmanifest file, MaxVersionTested="10.0.10074.0" says that if your app is deployed to a machine which is running a higher version of Win10, then it might have to do "quirking".
Both of these things are controlled by the Project>Properties dialog, and are actually stored in the .csproj/.vbproj.
The answers by @user4855870, @Rexobias and @Sevenate were hacks. They were sticking in an artificially low version for MinVersion to work around the fact they hadn't yet updated their devices. That's a fair approach (and I did it while I was waiting for Win10.Mobile 10080 build to be released). But now that it has been released, there's no need for these hacks, and you should just update your device.