Problem Running Visual Studio Code on Mac - macos

When I download Visual Studio Code for my MacBook Pro (running the latest version of MacOS, 10.15.1), I get a message:
“Visual Studio Code.app” can’t be opened because Apple cannot check it for malicious software.
Is there a way around this, or is the app being updated?

This is a security mechanism from your operating system. If you trust the app, you can right klick on the file and open it from the context menu. Then you have to confirm again that you want to open it and it should work as expected.

Related

How do I manage pairing Visual Studio to multiple Mac's?

I work from home and for my job I am using Visual Studio 2022 on Windows paired to a MacinCloud running Big Sur using my company's Apple Developer account for Xamarin development.
In the evenings, I'm playing with MAUI so I'm running the Visual Studio 2022 "Preview" version and I have my own Apple Developer account and my own separate MacinCloud running Monterey.
When I open Visual Studio (either version) it looks like it just tries to pair to the last Mac I used and then it also tries to install updated SDK's etc. if necessary.
How do I manage this? Ideally I want to stop it from auto-pairing and then choose the correct Mac each time.
Thanks in advance,
Paul Lonsdale.
You can open Tools - Options - Xamarin - iOS Settings on Visual Studio on Windows computer. On the Pair to Mac dialog window select "Forget this connection" (right click context menu on the connection).
This isn't really an answer but a workaround. The issue only really happens when both macs are running which is rarely the case. I will, in future, make sure that only the mac I need for the project I am working on is up and running. That way even if VS tries to connect to the other one it will fail.

How to use Windows Terminal as Debugger console in Visual Studio 2019 for C++ Project

I have Visual C++ project. I Want to run/debug my console app in the new Windows terminal when the play button is clicked.
How can I configure this in Visual Studio 2019?
The Windows Terminal's path is
"C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe\wt.exe"
Currently, Windows Terminal as default terminal is not supported yet, see the github issue Change Windows OS to support default terminal [defterm] · Issue #492 · microsoft/terminal.
It seem to have no workaround in Visual Studio to use Windows Terminal (see this post) but if it makes sense to you, you might consider voting on that feature on Kit Cragin's feature request in Developer Community.
As stated by staff working on the Windows Terminal here, this feature is unlikely to be implemented anytime soon du to the early stage of the Windows Terminal.

Visual Studio - Connecting to a Mac Server

I'm trying my hand at cross-platform development with Visual Studio, and I'm trying to follow a video tutorial on YouTube. I'm running VS2105 on my Win10 computer. I tried to open the Main.storyboard file in my iOS project and this window appears:
I take the only path available, and I'm greeted with this dialog:
...who wouldn't click "Connect", right? Well that gets me here:
...so here I am, wondering what to do next. It looks like Visual Studio sees a Mac, but I've got no idea where it got that impression - I haven't an Apple product of any kind in my home. I thought that maybe there was a virtual Mac running in Hyper-V somehow when this project was created, but come on - Apple ain't gonna go for that.
Can someone explain what's going on here?
It looks like it found a Mac somewhere on the network. You need to enable Remote Login, login to the mac, then put in the username and password for the logged in user.
If this is not your mac, then ignore it. You HAVE to have a mac for ios development. If you want to do iOS, then you need to get one.

Deployment error in Visual Studio 2015 while running Xamarin app

I am running visual studio application on genymotion virtual machine. But it shows deployment errors while debugging. It seams it is something with the emulator. I know there are similar questions but none of them solve the problem. Anyone for help?
error occurred:
A numeric comparison was attempted on "$(_DeviceSdkVersion)" that evaluates to "" instead of a number, in condition "$(_DeviceSdkVersion) >= 21".
Solved ( genymotion users)
Go to Genymotion select the virtual device you are using.
Settings>>ADB>>Select the option "Use Custom Android SDK tools">>copy and paste the same location your sdk (like in Visual Studio >>Android Settings >>Android SDK Location
restart genymotion. It worked for me!
Solution actual for emulator, but not for devices. Solution for devices - kill all shuame_helper.exe processes, that takes TCP-port which is required to poll the device's SDK version... Shuame_helper.exe raised every time you reconnect your device to PC..
I seams the problem is with genymotion: there are different paths of SDK path in visual studio and genymotion.
Solution:
First go in Visual Studio-> Tools -> Options. In options choose Xamarin->Android settings. Copy the path in part: Android SDK Location.
Then open genymotion. Choose virtual machine that you will be using. Than settings->ADB-> use custom Android SDK tools, and paste the path there. If you get message that says Android SDK tools found successfully. Close the window and then restart Visual Studio and run your application again.
For more details look at this link
http://enblog.clock-up.jp/entry/2016/06/26/xamarin-android-device-sdk-version-error

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.

Resources