Why are all my templates in visual studio gone? - visual-studio-2019

I recently installed Visual Studio for Mac 2022. I had VS Mac 2019, and it had the .net templates. When I installed VS 2022, all my previous .net templates were gone, even though I selected to install .net templates. When I open VS 2019, it has all of the templates installed, even the ones that I installed with only VS 2022. Is there any way to fix this, or should I just use VS 2019? 2022 vs 2019

Could you please try to set your .NET SDK path?
You can locate it under Preferences->SDK Locations->.NET Core and set the path as /usr/local/share/dotnet/dotnet.
Hope this can help solve the problem.
Ref: https://developercommunity.visualstudio.com/t/Starter-templates-missing/10070338?space=41&q=missing+templates

The Other - .NET project templates in Visual Studio for Mac 2019 require the Mono framework.
In Visual Studio for Mac 2022 the project templates that require Mono have been removed.
Instead you can install the .NET SDK use the project templates that target .NET 6.0, .NET Core 3.1, and these are available from the Web and Console section, if the associated SDKs are installed.
To install the .NET SDK you can either download them directly from the download page or re-run the installer and ensure that .NET is selected.

Related

Nuproj alternatives for Visual Studio 2019?

We have a legacy C# and C++ solution (web services, web app, OWIN and Nancy) that was built with Visual Studio 2013. We now must use Visual Studio 2019 Enterprise. The solution has a .nuproj file that we were using with the open source nuproj github repo that has been archived and is unsupported in VS 2019. The nuproj authors have not supplied any help (from what I can see) on how to convert or migrate nuproj to a VS 2019 format.
I am wondering if anyone knows the quickest way to get this working?
Alternatives would also be appreciated.
I read:
Quickstart: Create and publish a NuGet package using Visual Studio (.NET Standard, Windows only), but I was hoping not to install .NET Core on my company laptop yet.
Automating creating NuGet package as part of build process, but I see that is eight years old.
Internet searches about csproj self-pack and dotnet pack, but again, I do not want .NET Core right now.
Nothing straightforward. I will retool and use NAnt.

After installing Visual Studio 2019 I can't find gacutil.exe

I'm trying to install gacutil in order to remove some assemblies from the GAC. My understanding is that it's included with Visual Studio, so I installed Visual Studio Community Edition 2019. gacutil.exe does not seem to be included with the installation. What am I missing?
I had the same issue and was able to fix it by installing the .NET Framework 4.6.1 SDK component shipped with VS 2019 Community.

How to get MSBuild 15 without a full install of Visual Studio?

"MSBuild is now installed in a folder under each version of Visual Studio." However, I do not want to install a full VS on the server. "MSBuild is now available as part of the .NET Core SDK."
Now that I've installed the .Net Core 2.1 SDK (and the 4.7.2 Framework), what is the path to msbuild.exe?
MSBuild.exe 15 was found after installing the VS Build Tools with no additional packages selected in the install interface.
Edit: Updated link above to go to older downloads. Expand 2017 panel, click Download, login with a Microsoft account, then you will see Build Tools for Visual Studio 2017 (version 15.9) in the list of available downloads.
Edit: increased minor version to 9 to reflect the latest of major version 15.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe

use installed vsix template in visual studio 2015 update 3

I had installed ng.Net.Template using tool -> extention and update
external link (https://marketplace.visualstudio.com/items?itemName=Dahln.ngNetTemplate#overview)
and it is successfully installed and restart visual studio
but not getting ng.Net.Template Template in a new project under c# -> web section.
What shall I do? Thanks.
I checked the link and it stated that
V3.1 on 10.8.2014 is Updated to Visual Studio 2015 and .NET 4.6
Please change .Net Framework Version and select Visual C# from left menu, then it will show on your list, e.g.
If 4.6 is not is options, then install it.

this project is incompatible with the current edition of visual studio

I developed an application into Visual Studio 2012. Now I installed Visual Studio 2015 and run the same application into Visual Studio 2015. but i found an error "this project is incompatible with the current edition of visual studio" I searched it again and again and found many solutions but these solutions are not working for me.
The problem was that I wasn't select Microsoft Web Development during installation period so that whenever I opened my ASP.net MVC project in that installed IDE. It showed me error this project is incompatible with the current edition of visual studio. So I updated this installed 2015 Visual Studio by Control Panel\All Control Panel Items\Programs and Features. Now it is working
This stackoverflow provides better answer for various other project file failures which cause same error as above.

Resources