i need to create method that finds all connected devices in my network, but since emulator uses virtual network, i can't find any.
Is there a way to have emulator connected to my network instead of virtual one?
Firstly Configure Hyper-V in the machine as given below.
After installation you will need to restart the machine.
Then Install Android SDK tools from Visual Studio as Go Tools–>Android–>Android SDK Manager
In there install all the packages with android support.
Then connect your phone with Developer option enabled and the visual studio will detect your device automatically.
Related
I have:
Windows 10 + VS2019 CE
iPhone 6
Remote Mac (without ability to connect to it my iphone!)
I made all setup and i can test my application on emulator in VS2019 CE on Windows. But, how to test my app on real iPhone device?
WARNING! I have no ability to connect my iPhone to remote mac (over USB or someting else).
and I hope that the opportunity still exist.
Please HELP!
There are two ways to run the application without connnecting to mac.
Use Hot Restart , we can deploy the app to the real device on windows, but it has some limitations , check https://learn.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/hot-restart#limitations .
Create ipa file and then install on the real device , it requires Distribution Provisioning Profile and we can choose Ad Hoc Testing(in this way the udid of the real device should be added in Provisioning Profile) or In House / Enterprise Deployment.
Good morning,
I Need some help to solve an issue that I found on my android application.
I have created an android application that has device administrator permission using a PC A
now I have moved to a different PC, B and when I open the same project on my visual studio and generate the apk from the new PC, if I try to reinstall it by opening the apk on the android device where there is already install the application it fails.(application not installed)
If I open the same project on my old pc, I can generate the apk and reinstall on it (application installed).
I have checked and all option on android are the same.same sdk version same min sdk etc.
Do you know if the are some "key" to copy from my old pc?
the only solution that I have is format the android device and reinstall the application because when the android application is device administrator I can't uninstall it.
thanks and regards,
andrea
I'm getting an error :
Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named 'minwinpc'. The Visual Studio 2017 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging.
I'm trying to deploy an app to my RPI 3 running Windows 10 IoT Core v.10.0.16299.15.
I've tried:
Reinstalling Visual Studio 2017
Installing Visual Studio 2017 Remote Debugger.
Restarting the VS.
I noticed that Visual Studio 2015 remoter debugger is running on raspberry pi and it has 192.168.0.6:8116 as a remote machine name while in VS2017, rpi's address is 192.168.0.6:4002. Why are they different? Can someone help me?
As Martin & Belekz mentioned,you can check the configuration of target device and firewall setting.And more,I want to add that,please note the configuration of Authentication Mode.You should set it as "Universal(Unencrypted Protocol)".Use the mode whenever you are deploying to a remote device. Currently, this is for IoT devices, Xbox devices, and HoloLens devices, as well as Creators Update or newer PCs.
Look at my post here i have the same problem and i tried several things, but only after i done this i can deploy remotely to pi again:
Uninstall old 16299 SDK and download new 16299 SDK from here
Repair VS from VSInstaller
run sfc /scannow
Also make sure you're using Universal authentication mode and type the ip without port number (or even using 'minwinpc' is enough)
hope this helps
I never deployed software from VS to a RPi using an port in the IP address before. So maybe you are doing something special, or I'm doing something basic, but;
dubble check if you need to assign a port.
Start Windows 10 IoT Core Dashboard and check if the Pi is visible
in your network.
--> If not, try to ping to your Pi, using the CMD
ping 192.168.0.6
--> If the ping fails, check your IP address of your Pi with a physical
monitor.
Check the address in the build properties according to the steps above.
Hope this helps!
You can configure the remote debugger's IP address and port to point to the correct endpoint of your Remote debugger.
Right-click the UWP app project, choose Properties, and in Debug tab you will see Start options with Target device which should be set to Remote Machine and below you can manually enter the Remote debugger's IP address and port into the Remote Machine field (192.168.0.6:8116 in your case). You should include the 8116 port in the Remote Machine field as well.
This should make Visual Studio connect to the Remote debugger instead of the RPI itself.
Also try to turn off the firewall to verify if it does not interfere with the connection.
i have see same problem in my laptop. i solve this problem by following steps..
first of all can you install Windows 10 IOT SDK in your .net?
if no then first of all download and install.
otherwise update vs 2017.
when install vs 2017 then automatically install iot sdk.
I am working on a Xamarin Project. I am trying to connect Xamarin MacAgent from my Windows - VS 2017 Community Edition to Macbook to test the iPhone Simulator. However, I am not able to connect.
I am connecting from Windows to Macbook using usb-ethernet cable. In the MacBook, System Preferences - I have set the Sharing option - Remote Login - All Users.
My MacBook has Xamarin Studio, XCode Installed on it.
I tested the connection from Windows - Commmand Prompt by pinging the MacBook IP Address, I get response. I have turned off firewall on both Macbook and Windows.
In Windows, I have cleaned up the files in the folder : Local\Xamarin\MonoTouch
In MacBook, I have cleaned the cache.
However, i am still getting the error as " Couln't connect to MyMacbook"
How do i fix this ??
I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.
i created a sample windows UWP application and took a build of the same.The output of the build is an Appx.
How can i install this Appx to my device? Anyone having any idea?
Deploying apps to Win 10 Mobile is a bit difficult when using the command line tool. A great alternative is the Device Portal that is available under the “For Developer” settings.Its available with the latest build.
Now You can connect to the device using a web browser and manage apps via the Apps page with no pairing/pin required. This seems to be an easy way of deploying apps than using command line.
Microsoft developed a command line tool called WinAppDeployCmd so you can deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, the app source code or you're under a Hyper-V Virtual Machine.
Basically you will need:
Windows 10 SDK
Generate the .appx package (PC)
Enable the developer mode (Mobile)
Turn on the discovery mode (Mobile)
Get the code to pair devices (Mobile)
Get mobile IP address using WinAppDeployCmd tool (PC)
Run command (PC)
The command will look like this
WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>
The tool can be found at C:\Arquivos de Programas (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe
You can find a detailed step-by-step tutorial here
Visual Studio allows you to directly deploy an app to a windows phone. You need to register your windows phone as a development phone with Microsoft. Once this is done, you could use visual studio to do this for you. Not sure if you can deploy windows 10 apps to your phone at the moment. Try this link and see:
https://msdn.microsoft.com/en-us/library/windows/apps/ff769508%28v=vs.105%29.aspx Remember to Upvote if this helps.
You can register your Windows Phone 10 in developer mode. Follow these steps and you can achieve your goal.
When you use device portal like mentioned in the answers above, some might get the following error
"Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)"
To fix this:
Add the dependencies found under "Dependencies/ARM" folder.Add it here.
I had to add following dependencies to make it work:
Microsoft.NET.CoreRuntime.1.0.appx
Microsoft.VCLibs.ARM.Debug.14.00.appx