No Template for LINQ to SQL in VS 2017 Community - visual-studio

I tried to open a DBML file recently, and when it didn't open correctly, I found out that I had to install the LINQ to SQL option for VS2017 Community. I used the Visual Studio Installer to add the LINQ to SQL option. When I reopened VS 2017 Community, DBML files opened correctly, but I still could not find the template for new DBML files (LING to SQL files).
How can I enable that template?

Here's what helped me:
Quit Visual Studio 2017
Launch the Visual Studio Installer
Choose to modify the Visual Studio Installation
Visual Studio Installer
Click on "Individual Components", scroll down and click the checkbox next to "LINQ to SQL tools"
Individual Tools
Click "Modify" and then restart Visual Studio 2017

You may need to update your version of Visual Studio before the modify option displays.

Related

Create Setup/MSI installer in Visual Studio 2017

I have written an outlook add-in VSTO in Visual Studio Pro 2017 (VB.NET). I have published it which creates a setup.exe which is OK but I would like to create a proper installer that copies the files locally and can be run silently etc.
How do I go about doing this? When I go to create new project there is no installer project option.
You need to install this extension to Visual Studio 2017/2019 in order to get access to the Installer Projects.
According to the page:
This extension provides the same functionality that currently exists in Visual Studio 2015 for Visual Studio Installer projects. To use this extension, you can either open the Extensions and Updates dialog, select the online node, and search for "Visual Studio Installer Projects Extension," or you can download directly from this page.
Once you have finished installing the extension and restarted Visual Studio, you will be able to open existing Visual Studio Installer projects, or create new ones.
Other answers posted here for this question did not work for me using the latest Visual Studio 2017 Enterprise edition (as of 2018-09-18).
Instead, I used this method:
Close all but one instance of Visual Studio.
In the running instance, access the menu Tools->Extensions and Updates.
In that dialog, choose Online->Visual Studio Marketplace->Tools->Setup & Deployment.
From the list that appears, select Microsoft Visual Studio 2017 Installer Projects.
Once installed, close and restart Visual Studio. Go to File->New Project and search for the word Installer. You'll know you have the correct templates installed if you see a list that looks something like this:

How to remove ApexSQL menus from Visual Studio?

I installed the free version of ApexSQL which is awesome in SSMS, but I really don't want all those menus in Visual Studio. I went to add-in manager and unchecked them, but the Startup column is checked and disabled so every time I restart Visual Studio they come back.
Is it possible to permanently remove the ApexSQL menus from Visual Studio?
If you have ApexSql installed and you don't want those pesky menus in Visual Studio do 2 things.
In Visual Studio, go to Tools > Add-in Manager and uncheck the ApexSql addins. Close Visual Studio.
In Windows 7, there's a hidden folder C:\ProgramData. In Windows Explorer go to C:\ProgramData\Microsoft\MSEnvShared\AddIns folder. Edit each of the *.MsvsLoader.Addin files and set <LoadBehavior> to 0. If you can't save the files directly, you'll have to save the files to a different location (desktop maybe) and then copy them back into C:\ProgramData\Microsoft\MSEnvShared\AddIns because there's some Admin privilege required.
Now when you restart VS those ApexSQL menus should be gone
The issue of crowding menus is resolved in latest releases, now all ApexSQL add-ins are under the main ApexSQL menu as sub-menus. They look like this now:
If you don't need ApexSQL add-ins in VS or SSMS you can simply choose not to integrate them with VS or SSMS during the installation, just check out SSMS ot VS version in which you want the add-ins integrated
Note: To get this dialog in which you can check the wanted integration you need to use individual installers not the main one. You can find all individual installers on this link
Disclaimer: I work for ApexSQL as a Support Engineer
For Visual Studio 2010 on Windows 7, I attempted #Chris Bayles suggestion and do not see ApexSql addins under Tools->Add-in Manager.
I followed #Jerome2606's pointer to https://knowledgebase.apexsql.com/remove-add-ins-just-visual-studio-retaining-sql-server-management-studio/ and it worked for me, but only when I removed the parent ApexSQL folder as well.
Summary of what is required to do:
Remove folder
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\ApexSQL
Depending on the version of Visual Studio, the version number in the default installation location will be different:
Product name Version number
Visual Studio 2010 Microsoft Visual Studio 10.0
Visual Studio 2012 Microsoft Visual Studio 11.0
Visual Studio 2013 Microsoft Visual Studio 12.0
Visual Studio 2015 Microsoft Visual Studio 14.0
Select and delete the ApexSQL folder and its contents.
Open Command Prompt as an administrator, then run
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /setup
Please note the command is different for Visual Studio 2012, 2013, and 2015.
If you are using SSMS v18.0 then you can disable the apex features in following way.
You can find the ApexSQL.Complete.Addin.SSMS18.pkgdef file from following path.
C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Extensions\ApexSQL Complete
Then open this file in Notepad++ Administrator mode and comment the content.
If you need further reading follow this link.
https://knowledgebase.apexsql.com/remove-apexsql-tools-sql-server-management-studio/

How can i update my Project Template from Visual Studio 2010 to support Visual Studio 2012?

Me and my team were using Visual Studio 2010 as C#/.NET IDE, but we decided to upgrade it to 2012, and thats what we did.
We have a bunch of Project Templates previously created, on Visual Studio 2010.
How can we create/convert those for the 2012 version of the IDE ?
I've tried this link from msdn but got no luck because my Visual Studio does not shows the VSIX Project option in this step :
On the File menu, click New and then click Project. Select either Visual Basic or Visual C#, select Extensibility, and then select VSIX Project.
Any tip / How to ?
Thanks in advance

VS2010 not show up if SQL Server 2012 installed before

I installed them in this order:
Install SQL Server 2012 SP1 x64
Visual Studio 2010
This is the proper order that other developers recommended and as i did.
The problem is, if SQL Server 2012 installed on the system, VS2010 shortcuts are not show up.
How can I fix this?
Note: OS is Windows 8.
This is a bug.
A workaround is to navigate to C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Microsoft Visual Studio 2010, right-click on the
shortcut called Microsoft Visual Studio 2010, and select Pin to Start.
After this, there will be two shortcuts targeting devenv (one titled
Microsoft SQL Server Data Tools and one titled Microsoft Visual Studio
2010)
Refer: http://connect.microsoft.com/VisualStudio/feedback/details/730276/after-installing-sql-server-2012-on-my-windows-8-pc-visual-studio-2010-shortcuts-disappeared
As the OP stated. I too installed SQL before VS. I always do. So I was baffled when i could not find my VS2010 shortcut.
It turns out that the icon is mis-named. If you open (or check the properties) of the icon in the Visual Studio 2010 start menu folder called "Sql Server Data Tools". You may find it is actually the VS 2010 IDE.
Workaround provided by
http://connect.microsoft.com/VisualStudio/feedback/details/730276/after-installing-sql-server-2012-on-my-windows-8-pc-visual-studio-2010-shortcuts-disappeared
Edit the shortcut start target. For instance. I made mine not display the splash page.
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /nosplash
Then repin it to the start menu (right click).
Installing Visual Studio 2010 SP1 seems to fix this as well, its available to download from here http://www.microsoft.com/en-us/download/details.aspx?id=23691 If you run devenv.exe it should prompt you to do this also.

how to add visual c++ template to visual studio 2010 ultimate

i recently installed visual studio 2010 ultimate with visual c#. Now i want to program in visual c++, how can i install the visual c++ template?
Thanks
Start the Visual Studio installer again and change the selected set of features.
Try to search in online templates section under New->Project and then in the left side of the window.
TO restore all templates,Close all instance of Visual Studio. Open visual studio command prompt and traverse to ../Microsoftvisualstudioxxxx/common7/IDE and then type
**devenv /installvstemplates**
in command prompt. Wait for sometime until all templates are restored.

Resources