Extending a code completion (CompletionSourceProvider) for SQL Server Management Studio - c#

Following this I was able to extend a tool menu with a command to SQL Server Management Studio 18 with Visual Studio 2022 and downgrading Microsoft.Visual Studio.SDK to version 15.
But the standard sample provided by Microsoft for to display statement completion does not work. No errors in debugging and also the SSMS error log seems to have no related errors.
My code is exactly the same as the walk-through just downgraded the default SDK package to version 15 (It worked in VS2022) and changed the solution to work with SSMS, and didn't do the job there, although the command extension steal works!
Even the simpler one to customize text view does not work either in SSMS.
I have seen samples and opensource projects that do different things in SSMS 18 but no one is about text completion. Can anyone help?

Related

How to "connect" a SQLite DB to gridview?

I'm trying out making websites with C# and I have a problem with my SQLite DB.
I've seen that you can Display every element of a DB with a gridview and it is automatic. But I cannot make it work with SQLite.
So I searched to find a solution to my problem and I found an article going through the process but it's a bit outdated.
He installed the System.Data.Sqlite(x86 x64) and I was trying to find that one but I couldn't find it.
But I found System.Data.Sqlite.x64 and I assume that it's the same and that it just doesn't support x86 anymore.
Nuget
Afterwards he opened the Entity Data Model and he had 2 options instead of 4 as me and also not the same ones.
I clicked on the EF Designer from database cause it had somewhat the same description as the one he clicked on.
Entity Data Model Wizard
After I click next I go to the Choose Data Source but I don't have an option for SQLite.
Choose Data Source
If I'm doing something wrong or I didn't understand something please correct me.
Thank you for your time!
Seems like this was raised with Visual studio community: sqlite-data-connection-not-appearing-in-server-exp
Solution proposed is the following:
Hi Robin,
It appears the developer that created the SQLite/SQL Server Compact Toolbox also has a solution to support VS 2017. See https://github.com/ErikEJ/SqlCeToolbox/wiki/EF6-workflow-with-SQLite-DDEX-provider
Or you can get the extention from the marketplace here
Works with
Visual Studio 2012, 2013, 2015, 2017, 2019

Visual Studio 2017 Issues

So, I feel like I don't have all of the Visual Studio components that I need on my personal computer. For example, when I create a new ASP.NET application on the school computer, it generates files with it (program.cs, startup.cs, and appsettings.json), but those don't exist when I try to create a project on my laptop.
I just had a huge issue trying to get Scaffold-DbContext to work (and after about an hour of digging, finally found the commands to run in Package Manager Console that would allow that much to work). I'm sure there are other things I'm completely missing and don't realize it yet.
What do I need to do to get these files to be generated when I create a new project? Are there other things that I haven't installed for Visual Studio yet that I probably should? I'm really at a complete loss here.
Bring up Visual Studio. Click on Tools. Click Get Tools and Features...
Compare whats installed with what you have at school.
These three will do most of what your looking for:
.Net desktop development
ASP.NET and web development
Data storage and processing
Also look at the versions Help About Microsoft Visual Studio

Cannot debug local C# code used in U-SQL since VS2017 15.7.1 upgrade; Local run failed or was terminated

(I also posted this a couple days ago on the MSDN Data Lake forum, so I thought I'd expand the audience here)
I have a custom extractor, as well as a custom assembly that have been working for the past several weeks+ - I have been able to debug locally stepping into the code up until Friday morning. I am still able to Submit the U_SQL script locally and it successfully runs producing a local output file, but when I F5 to debug I "Local run failed or was terminated" and the output file is not created.
Is there a detailed log somewhere to see what exception is being thrown? Nothing in the event viewer.
I have completely reinstalled VS2017 back to 15.0, then tried updated to just 15.6.x but get the latest 15.7.1 again. Same issue with multiple projects now.
Has anyone encountered this?
error message display
The root cause has been identified. It is because of a bug in Windows 10 1803 update that causes failure when creating a local mailslot for IPC. This IPC is used during local debug session. The Windows team is working on a fix now.
The alternative fix in the development tools was release yesterday as version 2.3.4000.3 of ADL Tools. You will need to upgrade it in VisualStudio 2017 -> Tools -> Extension and Updates -> Updates -> Visual Studio Marketplace.
For VS 2015 users, please get the update from: https://www.microsoft.com/en-us/download/details.aspx?id=49504
For users who want to know more details, the correspondent Windows OS fix is done but not yet available. The alternative fix in development tools is to use \\.\mailslot instead of \\localhostname\mailslot

Visual Studio ASP.NET Template Incomplete (MVC)

I got really weird problem. I am starting to learn MVC but my ASP.NET template seems to be incomplete and does not support MVC at all. It doesn't matter which version of .NET Framework I choose. Look:
What is more weird, my ASP.NET MVC 4 Template from previous version of visual studio works fine, without any issues (I can add views, controllers etc). BUT ONLY if I choose .NET Framework lower than 4.5.2.
What I already did:
I tried command: devenv /installvstemplates
I did repair installation of visual studio and its updates
I uninstalled all addons and extensions
What I do not want to do:
I dont want to clean reinstall Visual Studio
What I think I can do to fix this:
copy cache from someone and paste it to my \Common7\IDE, but I do not
have access to working cache files.
I would really appreciate your help guys.
/edit (I am sorry for my mistake with adding answer)
So I tried to fix it as i didn't receive any answer, I tried many things from google results, many pointing to this site but nothing worked.
I uninstalled visual studio, cleaned registry, used /uninstall /force with 2012, 2013 and all updates isos with no luck.
I tried this solution:
Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013
but it didn't work either.
Does anyone has any idea? I will give you some reward if your answer help me.
I would really appreciate anything. Point me to some direction.
ONLY MVC 5 doesn't work, no templates are shown (in one asp.net
template) and if I download mvc 5 template from the web, or convert
my existing mvc 4 project to mvc 5 it stops showing "add controller,
add view options"
All MVC 4 projects and templates are working without any issues at all.
/edit 2
=== WORKAROUND ===
If someone tries to resolve this issue, basically I coudn't do it, but I found workaround which is ugly and simple:
Deleted every single extension AND every VS Update
Uninstalled Visual Studio
Uninstalled it again using /force method
Cleared its every trace and the registry traces I was able to found
Used TuneUp utilities to clear broken registry keys
Uninstalled SQL Server 2014
Uninstalled everything that was related to Visual Studio (Web Essentials, .Net Frameworks, Command Tools etc), check in Ccleaner,
it will be much faster.
Installed Visual Studio with Update 3 and... It was broken right after installation, missing files errors
I repaired the installation and everything seemed to work but... localization, language files didn't work, caused visual
studio to
show errors or simply hang.
I tried to reinstall language pack but I received error "this language is already installed". I couldn't uninstall it
either. I finally added language files manually:
in VS folder in Program Files searched for '1033' and 'en' folders
opened my acronis partition backup
added to every directory where one of the two folders was found, folder equivalents of my language '10xx' or 'xx'
WARNING: If you won't do it for EVERY folder, you will get assembly missing error, or your visual studio will have spikes (especially in .aspx files). Don't copy paste it all at once either cuz if you place localization files for assemblies, extensions you don't have, it will cause errors too.
TIP: If you don't have backup, simply take this files from someone else, they should generally work, no matter which update VS of the other person have.
Its unfortunate that no one had better answer for me but I do hope that this will at least help guys in similar situation.

Migrated to Visual Studio 2010 from 2008. VisualSVN server bindings disapper suddenly

Greetings,
I have a server hosting c# projects/ solutions using VisualSVN/TortoiseSVN as the source control.
I opened one of those solutions (VS2008/.Net3.5) using VS2010.
It took me to the conversion wizard and once i SUCCESSFULLY finished and came out of conversion wizard, i go ahead and build the solution.
It builds fine. However, the server bindings that were supposed to show up do not appear. The entire solution in VS2010 does not seem to be in source control. Also, when i go to VisualSVN tab on the menu all the options like Update, Commit, Show Log, etc are grayed out.
Please suggest if i need to reinstall VisualSVN or is there anything missing. Thanks a lot.
Scott.
Yes, you need to reinstall VisualSVN. You might also need to purchase a newer version -- only the most recent versions work with Dev10 (the 2.xx series), and it is not a free upgrade :(.

Categories

Resources