Xcode couldn't be found at /Applications/Xcode.app - macos

I get Xcode couldn't be found at /Applications/Xcode.app when I try to run the sample single view app from Visual Studio 2019.
Do I have to install XCode on the windows machine I am using or the Mac that is building the code?
I don't have visual studio on the Mac and was hoping that I wouldn't have to install it. Am I wrong?

Yes, you need to install VS and XCode on the Mac. This is clearly covered in the docs
Set up Windows (Install Visual Studio 2019)
Set up Mac (Install Xcode and Visual Studio for Mac)
Pair to Mac (Connect Visual Studio 2019 to the Mac)

Related

cannot install github copilot on visual studio 2022

Like the title says. I cannot install github copilot on visual studio 2022 version 17.4.4 (latest)
i am on a arm64 windows 11 parallels virtual machine on a macbook pro with m1 chip
I cannot find the extension in the "manage extensions" window and when i try to manually install the extension from the website it just fails installing. What am i missing?

Connection failed from Visual Studio 2022 (MAUI, Xamarin) to macOS

I updated macos to version 13 Ventura. I'm developing apps using Xamarin/MAUI on Visual Studio on Windows. Access to macOS over the network is no longer possible. Error message: Unable to connect to SSH using the SSH keys. I have enabled remote access to macOS.
Please ne noted that macOS 13 (Ventura) ships with OpenSSH_9.0p1.
You can try to edit /etc/ssh/sshd_config and save it.
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
And then restart the Mac and Visual Studio.
This was an bug on Visual Studio 17.3.4 (see https://developercommunity.visualstudio.com/t/macOS-Ventura-130-Beta---Impossible-to/10163760?q=%5BFixed+In%3A+Visual+Studio+2022+version+17.4%5D) that is fixed on 17.4.0, so update to Visual Studio 17.4.0 and the error is gone.

Visual Studio 2022 not showing WSL targets for CMake project

Windows 11. I've created a CMake (I think this only works for CMake?) project in Visual Studio 2022:
and i've set-up WSL with Ubuntu installed:
However Visual Studio 2022 only lists Local Machine:
How do I get it to list Ubuntu?
UPDATE
Found a similar question here:
Visual Studio 2022 not list WSL as an option in Target System
A suggestion was to install the Linux and C++ package. I did this, it added "manage connections" but when i click that I get:

Unable to install visaul studio properly and toolchains required for unity

After a fresh windows 11 install I haven't been able to get visual studio and building a game in unity to work.
Visual Studio 2019:
After I install visual studio with the correct modules for unity. it shows up in the installer as "installed" but when I turn of or restart my computer it does not show under the Installed section. Also when I open visual studio it gives a "Failed to load common IDE package" error. Referring to a file in: C:\Users"user"\AppData\Roaming\Microsoft\VisualStudio\16.0_971410d4.
I have tried:
Repairing visual studio.
Repairing visual studio and deleting the before mentioned directory.
Complete reinstall of the installer and visual studio.
Unity:
When I try to build my game I get this error: error:
Could not set up a toolchain for Architecture x64. Make sure you have the right build tools installed for il2cpp builds. Details:
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ().
I have tried:
Reinstalling the current engine version (Unity 2021.2.13f).
Upgrading the engine version to (Unity 2021.2.14f).
Reinstall Unity 2021.2.14f.
I think these two problems are tied together but I'm not sure.
~ Rasl2002
I fixed my problem.
https://developercommunity.visualstudio.com/t/access-denied-for-visual-studio-common-ide-package/962361
this link leads to the solution. you need to run:
icacls "C:\ProgramData\Microsoft" /reset /T /C
in an admin terminal.

Visual Studio 2017 does not detect Windows Driver Kit installation

I already have Visual Studio 2017 professional with Desktop Development with C++ installed.
I am trying to build the Virtual Serial project found here:
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
When I try to build it, I get the error:
Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". virtualserial C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets
I cannot find any instructions on installation aside from this website.
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
I downloaded the WDK for Windows 10, version 1803.
I closed VS2017 and ran the installer.
When running the installer I got the message in the screenshot below, I clicked Next to continue installing
After running the installer, the project still does not build, with the same error: WindowsUserModeDriver10.0 is not installed.
What am I missing during installation? Is this the correct installer for regular VS2017 (not community edition)?
Thanks,
I know this is old, but I recently fell into this rabbit hole. What worked for me was uninstalling all of the WDKs, rebooting, and installing WDK 1803 (the wdksetup.exe program downloaded from Other WDK downloads shows version 10.0.17134.1 in properties). That WDK installer specifically calls out VS 2017 when you add the Visual Studio integration at the end of the install process.
In my situation, I installed vs2022 with SDK 19041 and WDK 19041.
After some testing, I realized that VS2022 only supports WDK 22621(so on this date). So I installed WDK 22621 and SDK 22621, and problem solved.
If you still can't find Kernel Driver Build option, try run this file C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix(WDK 19041 only has VS2019). It's a Visual Studio's extension.
According to this: https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
WDK is not currently supported by visual studio 2017.
This is ridiculous

Resources