Visual Studio 2017 is missing Xamarin (packages) - visual-studio-2017

I'm quite desperately trying to make my Visual Studio working whit Xamarin.
I installed a complete new Visual Studio Community Edition with Mobile Development option.
Then I created a new Project as C# → Android-App (Xamarin).
When I open the solution it shows the following:
using System;
using Android.App;
using Android.OS;
using Android.Support.Design.Widget; // .Support not available (gray)
using Android.Support.V4.View; // .Support not available (gray)
using Android.Support.V4.Widget; // .Support not available (gray)
using Android.Support.V7.App; // .Support not available (gray)
using Android.Views;
It seems I'm the only one on earth who has this problem.
In the NuGet manager there are no Xamarin packages listed.
The Android Support Repository v47 is installed in the SDK Manager.
Please help me out.

Copied from the comment.
For some reason, your machine only enabled Visual Studio offline cache feed, which is impossible for VS to restore the necessary packages used in this project. You have to add nuget.org feed, or set up your own internal NuGet server to host the mandate packages.

Related

X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" [duplicate]

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Why are my C++WinRT includes not working?

So I recently tried to set up the environment to develop UWP apps, and installed VS community 2019 16.5.3
Here are my selected components:
UWP development workload and Desktop development with C++
I also installed the VSIX extension from the VS market place.
When I create a new Windows Console App(C++WinRT) this is my main and you can see the error list
I already tried uninstalling and reinstalling VS 2019. I have the proper Windows 10 SDK version + I also enabled developer mode in Windows settings. Im on Windows 10 1909 build 18363.720
The includes are in 'pch.h' by default.
Thank you.

I am not able to create a unreal engine 4 c++ project

whenever i create a unreal engine 4 c++ project it throw this error
Running E:/program_files/UE_4.24/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="D:/Game Development/MyProject2/MyProject2.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
ERROR: Could not find NetFxSDK install dir; this will prevent SwarmInterface from installing. Install a version of .NET Framework SDK at 4.6.0 or higher.
I have installed ue4 4.24 version and visual studio 2019 and game development with c++ is also selected during the installination of visual studio 2019 . i downloaded .NET framework from microsoft website but when i install it says Your installination will not occur see below for reason why .NET Framework 4.8 or a later update is already installed on this computer. So what can i do Please Help Me !
Thanks in Advance
I had the same problem, when I tried downloaded .NET framework from microsoft website it said Your installation is not possible because .NET Framework 4.8 or a later update is already installed.
This fix worked:
https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/1697074-can-t-package-my-project-netfxsdk
"crioto: Hello! As mentioned in the output, you need to install/update .NET Framework. You can do this by running Microsoft Visual Studio Installer, then click on "Modify" next to installed version of Visual Studio, switch tab to Individual Components and check latest version of .NET SDK.*"
Modifying the VS Installer solved the Issue

update to UAP (10.0.16299.0)

Currently I am using VS2017 Community.
I have downloaded the Windows IoT template for VS2017 community to do UWP programming.
After created the project, when I try to open the XAML file in designer view, I encountered this Message:
visual studio requires a newer version of windows to display this content.
please update to windows 10 Fall Creator update(10.0.16299.0)
So, I downloaded latest Win10 SDK
But Now I have this message:
visual studio requires a newer version of windows to display this content.
please update to UAP (10.0.16299.0)
What I need to do?
Thanks
You need the VS 2017 (15.4 update) or later to get the Windows 10 Fall Creators Update SDK (16299) integration.
If you have the 15.4 update already, then run the Visual Studio Installer, go to the Individual Component tab, and then check the components for 16299. Hit Modify.
See this blog post.
UPDATE: For C#/C++ projects, you set which Windows 10 SDK is used by editing the Project Properties and setting the Target Platform Version to 10.0.16299.0. You can also use the "Retarget solution" or "Retarget project" option.

Xamarin.Forms Cross-Platform templates missing on Visual Studio 2015 Professional

I have fresh install of Visual Studio 2015 Professional and after click on File - New Project - Templates - Visual C# - Cross Platform I don't get any usual templates like Blank app or Cross Platform App (Xamarin.Forms or Native). I had installed all available items during Visual Studio installation and would like to target iPhone, Android and WF platform in a same project.
How to install missing templates?
All features including Xamarin were selected during initial install of Visual Studio.
I solved the issue by performing a thorough Xamarin uninstall, then I installed it again through Visual Studio installer. Details and the exact 12 steps which helped me are described here:
https://developer.xamarin.com/guides/cross-platform/windows/visual-studio/troubleshooting/uninstall-xamarinvs/
After this I got all templates needed (iPhone, Android & Windows Phone). However, after recent update of Xamarin tools I noticed that Windows Phone project isn't added to the solution any more but replaced with Universal Windows Platform.