VST plugin and installing old VS extensions - c#

I want to develop an VST plugin in C#. Looking around the internet there are not that many libraries in .NET that deal with VST plugins. The only thing I found is the VST.net library (https://vstnet.codeplex.com/). This thing hasn't been updated in a while.
The problem: I am having trouble setting it up the basic project. There are project templates for that project which are done for VS 2008/2010 which is .vsi file. I tried looking around for ways to open it in the latest VS (2017) but I was not successful.
Is there a way to open these in Visual Studio 2017 or should I have to install the older version of Visual Studio to make this work? Or if you have a suggestion for another library/extension that will help me with the development I would appreciate it.
Comments: I am aware that there is better support in C++ for this type of thing but my additional problem is that I have a project in C# that I would like to use and not be forced to rewrite the entire code base.
Thank you in advance for looking into this issue.

Related

build bjsip and use it in visual studio

I want to build pjsip in order to use it (as dll) in my C# project with visual studio. there is a lot of solution on the internet and I have no experience with C++ language so I get confusion between all that.
You can get it in the most easy way by using a wrapper like this. It can be installed very simply as a NuGet package.

How to install Google OR-Tools for C# in Visual Studio 2019

I am new to C# and Visual Studio, only did a bit of programming in Python with Anaconda and don't have an IT-background. So please excuse my fairly basic questions.
I am supposed to construct an optimization tool (i.e. the goal seeker from MS Excel) in C#. From my understanding I need an external package, so I looked for an open-source solution and found:
Numerical from Codeplex: https://archive.codeplex.com/?p=numerical
Microsoft Solution Foundation
Google OR-tools https://developers.google.com/optimization/install/dotnet/windows
Numerical seemed to be outdated, because at some point they migrated to GitHub, but I could not find it there. For Microsoft Solution Center I found a post, where someone claimed it doesnt get any updates anymore. So I finally discovered OR-Tools and downloaded/installed it according to the website.
What the website does not explain is how I connect the package with Visual Studio. I can't seem to find a "manually install"-button in the extensions-manager. In Python/Anaconda I would usually find a pip installer command for the console. Afterwards I could use the package with the import statement. How does it work in Visual Studio 2019?
We provide Nuget .Net Standard package for OrTools so you just need to add it as PackageReference in your csproj file.
ref:
https://www.nuget.org/packages/Google.OrTools/
https://learn.microsoft.com/fr-fr/nuget/consume-packages/package-references-in-project-files
warning: Since .Net Google.OrTools is a native package wrapping the C++
library OR-Tools, you'll still need the VS 2019 C++ Reditributable...

Mono framework on Visual Studio 2019 - target/compile/debug

Before any question, I did a lot of research on Google and S.O. , and I found only old and obsolete threads without any help for my problem.
so...
1. First question:
I wonder if it's possible to target the installed Mono framework directly from Visual Studio 2019.
I know that at the time of writing, Mono 6.4.0.198 is released and it supports almost all features of .NET 4.7 (and C# 7.0), so I created a simple project targeting FW4.7.2 and it works fine so far.
I just wanted to know if I can create a project entirely on Mono Framework with no other reference than Mono assemblies.
I did a lot of research and the only thing I found is this: https://erictummers.com/2012/01/25/target-mono-from-visual-studio/
but i'd rather not mess with the registry and assemblies files.
2. Second question:
I would like to build and debug my Mono code directly on the target machine (Raspberry Pi). It's possible to do so in Visual Studio 2019?
I managed to compile a C++ program directly on the RasPi, so i thought it might be possible to do the same for Mono/C#.
Any help would be very appreciated!

VS Code Intellisense not showing suggestions in C#

Intellisense in VS Code only shows the previously used keywords and identifiers(in the current program) and not suggesting the new ones.The autocomplete only suggests the previously used keywords and identifiers.
Disabling the c# extension then re-enabling and restarting the vs code solves this issue for me
This will help you buddy.
C# language support is an optional install from the Marketplace.
You can install it from within VS Code by searching for 'C#' in the Extensions view (Ctrl+Shift+X) or if you already have a project with C# files, VS Code will prompt you to install the extension as soon as you open a C# file.
Visual Studio Code uses the power of Roslyn and OmniSharp to offer an enhanced C# experience.
So to summarize, you will need two things to do dotnet development using C#.
Install .NET Core.
Install the C# extension from the VS Code Marketplace.
Refer: https://code.visualstudio.com/docs/other/dotnet
Refer: https://code.visualstudio.com/Docs/languages/csharp
While I can see this is a minor problem and rather annoying - VSCode will do this. It's what makes it different to (IE) Visual Studio (Community / Enterprise).
Since I use both I had to look for a solution myself. I currently use the package 'All Autocomplete' by Atishay Jain (https://github.com/atishay/vscode-allautocomplete).
Good luck coding!
Quick edit:
It will still not give you back all options for a class if there's no instance of that class (OO).
I closed VSCode, removed the workspace file and when I re-opened the folder with vscode with it asked me if I wanted to use a particular project file or read all project files in the folder.
Either choice would probably be fine as you will have been so annoyed by this issue, you would not get up to creating a second project :)
I have installed BrackedPairColorizer and when I deleted this extension form VS Code it helps and editor start suggesting code after reload.
I had this issue, solution for me was downgrading the C# extension from v1.25.0 to v1.24.1
Other versions may also work but this was the first that I tried

Text file diff library (MS licensed)

Does anyone know if there a way to tap into visual studios diff libraries to extend the functionality of my projects?
I know that there are open source solutions for file diffing that I will consider if I cant find an adequate Microsoft implementation of it. Visual Studio comes with nice diff feature that it uses to compare source files.
I want to use code that is MS licensed. It seems that visual studio fulfills that requirement and has the feature I need.
It seems like this would be a useful extension library that maybe .NET should have in it, or already does?
Any ideas?
The Visual Studio diff window (new to Visual Studio 2012) uses the IDifferenceBufferFactoryService to create the IDifferenceBuffer it displays. From there it uses the ITextDifferencingSelectorService to get the appropriate ITextDifferencingService for each side. From there you'll have to do a good bit of reading to understand the API. :)
If you are creating a Visual Studio 2012 extension, the API you are interested is available in the Microsoft.VisualStudio.Text.Differencing namespace.

Categories