Implementing IVsHierarchy - visual-studio

I would like to get started with implementing a new IVsHierarchy, however, i am not sure as to how this can be done, to be rephrasing i am not sure as to how the IVsHierarchy can be used.
Can someone share some example or shed some light on it ??

Take a look at the MPF for Projects. It contains implementation of IVsHierarchy. You can use it as base of your Project System.
http://mpfproj.codeplex.com/

I'd highly recommend reading DiveDeeper's blog on VSX.
He has a number of posts on implementing IVsHierarchy:
Working with Hierarchies, Part 1
Working with Hierarchies, Part 2
Working with Hierarchies, Part 3
Working with Hierarchies, Part 4
Working with Hierarchies, Part 5
He also has an open source library called VSXtra which provides lots of handy support code for writing VS Packages. You may find it useful to use as a reference.

Related

What's the name of this project structure?

I was looking for some project structures for learning and found this one, I know that it's the recommended but couldn't find it's name.
I would say it’s “package by feature”: it's about keeping all code related to a given a feature in the the same package.
It contrasts with the “package by layer” approach, which groups all the code by layers and technical concerns.

Wanting to make an Xposed module

So I'm wanting to make an xposed module but cannot find any good video tutorials out there let alone an updated one also I know C# Decently and hardly any Java... Any help to help me get started would be appreciated. Thanks
You will need Java to create any Xposed modules. Android itself is based on (primarily) Java, so you will need Java knowledge to make Xposed modules.
That said, C# and Java are extremely similar languages, and you can quickly pick up the other if you know one.
As for Tutorials, Rovo89 (the creator of Xposed) has a simple tutorial here at https://github.com/rovo89/XposedBridge/wiki/Development-tutorial. This tutorial is almost completely upto-date, and you can use this to create your first module.
You will find another detailed tutorial here - https://forum.xda-developers.com/showthread.php?t=2709324. Keep in mind that this link is very old, so wherever there are any conflicts, go by Rovo89's tutorial.
After going through the beginner tutorial mentioned by Akhil, you will want to look at the API docs http://api.xposed.info/reference/packages.html and read through source code of some huge modules like GravityBox to get an idea of how the Framework is used. For teaching purpose mod some app which is open source and then move on to closed source app by reverse engineering them. For reverse engineering I use ByteCodeViewer.

Upgrading MVC 3 to MVC 6 What is the best way

I am planning to upgrade MVC3 EF5 project to MVC6. I understand it will require a lot of manual changes all over in config files, project files, entity framework, etc. Before I spend hours, wanted to see what is the best way?
Option 1: to make changes in IDs, configures, assemblies, etc. in the existing project (it doesn't even open in VS2015 right now, like any other MVC3 project, Thank You Microsoft). Looking at the instructions for converting MVC3 to MVC4/5, I guess I will need to have an ambulance on the standby here :-) It amazes me that MS did not provide any tool or even clear instructions to help developers.
Option 2: Create a brand new project in VS2015, then add new controllers with the same name as found in the old projects, then copy and paste controller implementations. Views and non-controller classes should work without much changes (only change I can think of is that new versions of dependencies in imports may be incompatible and will need to be dealt with manually, but this would be the same in Option 1). Not sure how to deal with entity framework. Perhaps if I recreate the entity model from database again, it should generate a compatible code. But then there are probably about 100 stored procedure function imports. I guess I will need to create function imports manually one by one (Question here, will the existing function imports remain intact if Option 1 is followed? Is there a way to copy function imports from the old project?).
Sorry, I know this is a rather convoluted question. Just trying to solicit inputs from others who may have done this in the past. I understand both Option 1 and 2 will require hours of work.

Implementing Lucas Rocha's smoothie

I am trying to implement the excellent library provided by Lucas Rocha. This library allows for very efficient scrolling on ListViews.
https://github.com/lucasr/smoothie
His text states 1.Add Smoothie's jar as a dependency to your project. but I am not able to find any jar file in the package.
I have emailed him but his response simply refers to the narrative within his modules. There is no user friendly guide on how to go about implementing this.
It is clearly directed at experienced programmers but it would be useful if all the "not so experienced" programmers are able to progress with this.
So my question:
Can anyone provide clear step by step guidance on how to implement the smoothie libray.
Thanks in advance
The JAR needs to be compiled from source as a compiled version is not available for direct download. You can see my sample application to see Smoothie in action. The sample application also contains a JAR file compiled from the latest Smoothie source code.
At a bare minimum, you need to write two classes, one extending android.support.v4.widget.CursorAdapter and another extending org.lucasr.smoothie.ItemLoader. The sample application mentioned above contains ContactAdapter and ContactLoader classes that extend these aforementioned ones.
The order in which these classes are coded does not really matter, but I found it easier to implement ContactAdapter and therefore coded it first.

What has happened to Dynamic LINQ?

I have a need to use dynamic LINQ where I can use variables in place of field names. Now I have done some googling and found that there is a sample for VS2008 where we can get this functionality.
My question is what has happened to this DLINQ ? It's been 4 years and I wonder whether it's made it into framework proper or some other new solutions have been invented to replace this? I only have my interest in DLINQ now so it is rather difficult to find further info on google, beside not knowing what exactly I am looking for other than 'better incarnation of DLINQ'. Can anyone shed some light?
This was never an "official" part of LINQ so has never been included in the framework.
The source was freely available and versions of it have appeared in CodePlex and on GitHub
The GitHub source appears to be the origin of the Nuget package
I've resurrected Dynamic LINQ, adding support for .NET 4.0/4.5, added support documentation (a work in progress), and added lots of new features.
Here is the link to the docs page, and from there, you can find the NuGet package and GitHub Project

Resources