Project configuration not showing in Visual studio 2019 (Xamarin) - xamarin

I've opened my Xamarin Forms project (originally created in VS Mac) in Visual Studio 2019 on Windows.
I've got 3 Projects (App, App.iOS, App.Android). I had created some additional build configurations (Debug-Staging, Release-Staging and Debug-Prod, Release-Prod).
However, when opening in VS 2019, I can only see the standard Debug and Release configurations for the Shared App Project. (additional release configs seem to be there for the iOS and Android ones).
Any ideas how to resolve this?
If I click New and add Release-Prod, the dropdown for my shared project doesn't update..

Related

How to debug Roslyn source generator in VS 2022?

Context
I was able to debug my source generator in VS 2019 by setting the project properties/debug Launch to Roslyn Component, then the target project combo to one of my consuming project:
Now this feature seems to be missing in VS 2022, I can not create a launch profile using the Launch Profile UI with similar settings.
Question
How can I debug Roslyn source generator in Visual Studio 2022?
I got it working in VS 2022 17.1.0. Follow this instructions:
https://github.com/JoanComasFdz/dotnet-how-to-debug-source-generator-vs2022
Also make sure in the Visual Studio Installer that you have installed the .NET Compiler Platform SDK.

Visual Studio 2019 is not showing Device target option for UWP

I am following the Unity development tutorial for Hololens 2.
https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unity/unity-development-overview?tabs=mrtk%2Carr%2Chl2
The Unity build generates visual studio files without issues.
When opening with Visual Studio 2019, I do not see a Device target option under targets drop down.
However when I open in Visual Studio 2017, I do see the Device target option.
The visual studio 2019 menu looks completely different from what is in tutorials:
Please see screenshot below:
Visual Studio 2017 is not supposed to work with hololens 2, and when I try to build in VS2017, it gives an error:
MSB8020 The build tools for v142 (Platform Toolset = 'v142') cannot be found.
I tried changing the build tools to 141 and 140 under project properties, but it strangely still gives the same error.
The tutorial states minimum version required is Visual Studio 2019, so it is not supposed to work with an older version.
This is what Visual Studio 2019 is supposed to look like according to tutorial above
I made sure device is connected and is in developer mode. This seems to be something missing in VS2019
Below are all the components I have installed based on the tutorial.
Can anyone help figure out why the Device or Remove Machine options are not showing up under Visual Studio 2019?
I has the same problem, my solution was install all C++ development libraries
and set the UWP project on Visual studio to "Set As Startup Project".
This is becasue the wrong project got set as Default Startup Project, must be changed by right clicking on the correct project and selecting Set as Default Startup Project
Just checked what is installed on my machine.
At the UWP development tab the option C++ (v142) Universal Windows Platform tools is checked. Try if that fixes it.
Are you working on the latest Version of Visual Studio?
Could you check if you can deploy to the HoloLens Emulator?
Are you working with Unity/Unreal or just testing with an example downloaded?
to see TARGET -> DEVICE
This is becasue the wrong project got set as Default Startup Project,
must be changed by right clicking on the correct project and selecting
.... Set as Default Startup Project
......OK !!!

Missing dependencies in new Visual Studio 2019 projects

Today I want to create a new project via Visual Studio 2019 Enterprise (V16.7.7). By default, the dependencies are missing:
I cannot start the Project via F5:
The Output Window shows 0 errors:
I can see the same behavior when I create a new Blazor-WA project.
I have re-installed the SDK (Microsoft .NET Core SDK v3.1.403) which not solves the problem.
How can I solve this problem?

How to Migrate Old Visual Studio Project to Visual Studio 2017?

Goal:
I try to open a visual studio project (c#) with CLR code for SQL Server from the Pluralsight course.
Issue:
I get no error messages just warnings below after One-way upgrade on Visual Studio 2017.
Your project is targeting .NET Framework 2.0 or 3.0. If your project
uses assemblies requiring a newer .NET Framework, your project will
fail to build. You can change the .NET Framework version by clicking
Properties on the project menu and then selecting a new version in the
'.NET Framework' dropdown box. (In Visual Basic, this is located on
the Compile tab by clicking the 'Advanced Compiler Options...'
button.)
When I open a solution with single project inside I get message below
The Project Needs to be migrated
or
The Project Needs to be loaded
Tried:
I tried editing csproj files with newer/older version numbers.
I tried different PCs with Visual Studio 2017 and Visual Studio 2015
Idea: Install Visual Studio 2010 as course was released in 2010 BUT I really do not want that.
When I got this issue, I tried reloading the project and when I did, it told me that I did not have an SDK installed and then it offered to install the SDK. Once I had the SDK installed, the project loaded and I was able to work with the project.

MSVS 2015 with Xamarin Error on creating Blank App( Xamarin.Forms Portable)

I installed Visual Studio 2015 successfully but on stage of creating a new Project when I choose "Blank App (Xamarin.Forms Portable)" I've got this error:
I updated Nuget Package Manager and Xamarin.Forms
and checked folder Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable
(I have v4.0,v4.5,v4.6,v5.0).
But nothing changed. That's my first experience with MSVS. How can I fix this problem?
System Setup:
Windows 7 SP1
Visual Studio 14.0.25123.00 Update 2
.NET Framework Version 4.6.01055
Have you made sure your Forms project is targeting .NET 4.5 or higher?
Right-click your Forms project in Solution explorer and choose Properties (near the bottom of context menu), then go to the Library tab.

Resources