Git Extensions doesn't show up in VS 2010 after installing - visual-studio-2010

I have tried installing Git Extensions numerous times and can't get it to show up in VS 2010. There is simply no tool bar menu 'Git'. Any ideas?

It turns out that since I had moved the 'My Documents' folder in Win 7 Git Extensions installed the add-in in a VS 2010 folder in the correct 'My Documents' but VS was still looking in the c:\users\'me'\my documents\VS folder.

The issue appears to be that Git Extensions installs the add-in for the current user only.
If you are having this issue when running VS 2010 as Administrator, and you installed Git Extensions under a different user login, you can copy the Git Extensions add-in files - C:\Users\\Documents\Visual Studio 2010\Addins - to your C:\Users\\Documents\Visual Studio 2010 directory and Visual Studio will find it.

Set Git in: Tools -> Options -> Source Control -> Plug-in Selection

That seems similar to bug 80, which is still opened.
Downloaded the source and built in some logging, but none of that logging was appearing at all on the non-functioning machine, worked fine on the local machine.
Which lead me to believe (correctly) that the addin was not being picked up at all.
I am logging into a domain and have 2 user folders:
C:\Users\Sebastiaan
C:\Users\Sebastiaan.CAKAD
The second folder didn't contain the Addins folder in Documents\Visual Studio 2010.

Related

How to disable git source control on visual studio 2019?

The "Git for Windows (32 bit)" process makes Visual Studio 2019's CPU usage high which bugs me because I have multiple programs open at a time, so my PC lags. I've looked up on how to disable git on Visual Studio 2019, Tried the solutions on this link, but they didn't seem to work. My Visual Studio 2019 version is 16.6.0.
Disabling git via going to Tools / Options / Source Control / Plug-in worked thanks to #dxiv's comment, I didn't know because I was looking at old answers.
I found that I was able to solve this issue by removing the .git folder that was in my user root directory. It was C:\Users\MyUserName\.git I don't know where it came from. It did not correspond to any of my legitimate GitHub repositories. It was large and seemed like it was constantly trying to index and prepare my entire user directory to push to a remote repository that did not exist.
This also resolved other ways the seemingly same issue presented itself in both VS2019 and VS Code.
Just delete the c:\users\yourusername.git folder and VS will stop showing GIT in Team Explorer.

copying paste solution to another computer mono.debugging.soft.disconnectexception

Hi I have noticed that I develop a cross platform solution on my laptop and copy and paste it to my work computer or viceversa i get the error below and I cannot longer debug.
Is there something I need to do when a copy/move solution from one place to another?
I have rebuilt deleted bin and obj still same problem
Ideas?
This has already been identified as a bug and should be fixed in an upcoming version of Xamarin for Visual Studio.
You can find the bugzilla bug here: https://bugzilla.xamarin.com/show_bug.cgi?id=56787
The release notes page also has a description of how to work around this issue here: https://releases.xamarin.com/common-issues-in-the-xamarin-15-2-2-release-being-tracked-by-the-xamarin-team/
Download the missing Mono.Posix file and unzip the archive.
Right-click the Mono.Posix.dll file in Explorer and select Properties.
Check the Digital Signatures tab to ensure the file shows a valid Xamarin Inc. signature.
At the bottom of the General tab, if an Unblock checkbox appears, enable it and select OK. (This checkbox appears depending on how the file was downloaded.)
For Visual Studio 2017, copy the Mono.Posix.dll file into the “Xamarin.VisualStudio” extension directory. For example, for a default installation of the Enterprise edition, copy the file into:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Xamarin.VisualStudio
For Visual Studio 2015, copy the file into the “Xamarin\Xamarin” extension directory:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\
Quit and restart Visual Studio.

Visual Studio 2015 does not start

We have installed Visual Studio 2015 Professional on Windows 7. It was working fine. But after we installed updates from the menu Tools-->'Extensions and Updates' today the Visual studio does not start anymore. we tried using 'run as administrator' as well. From the Start menu we right click on 'Visual Studio 2015', then 'run as administrator', the usual dialog box asking for permissions appears, we click on 'Yes', splash screen for Visual Studio appears for a second and then disappears. On the Task Manager, it does not appear as well.
Re-starting the system does not help either. .NET 4.6 is installed and Visual Studio 2012 on the same system is working fine.
UPDATE 1
The issue started after we installed the last update (from within VS2015) that had something to do with universal apps I think.
UPDATE 2
At the exact time when I start VS2015, one Windows Event log gets generated under security section as follows:
EventID 6281
Microsoft-Windows-Security-Auditing
Audit Failure
Message: Code Integrity determined that the page hashes of an image file are not valid.
The file could be improperly signed without page hashes or corrupt due to unauthorized modification.
The invalid hashes could indicate a potential disk device error.
File Name: \Device\HarddiskVolume3\Windows\System32\l3codeca.acm
I had the same problem recently after I upgraded one of the packages. I tried "everything" and the only option that worked was the /Setup switch (I was logged in as Administrator, but don't think that's required).
c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>devenv.exe /Setup
c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>devenv.exe
https://msdn.microsoft.com/en-us/library/ex6a2fad.aspx
Here's what worked for me.
Go to the Command Prompt and navigate to the folder with devenv.exe
In my case it was C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
then execute
Devenv.exe /ResetSettings
https://msdn.microsoft.com/en-us/library/ms241273.aspx
I had the same problem. It was caused by Visual Studio Extensions adding paths to $PATH, which made $PATH grow too long (>2048 bytes).
This breaks VS and lots of other stuff on your machine.
Removing outdated and duplicate lines from $PATH made it short enough and VS2015 and everything worked again.
If nothing above works (like in my case) then open a registry editor, go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio and delete all 14.0 directories.
It will reset all VS settings and next launch will be like first one after installation.
Found answer here
After trying the other solutions in this thread, what finally worked for me was:
From an elevated Command Prompt, navigate to "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE".
Execute:
devenv.exe /Log C:\temp.log
https://msdn.microsoft.com/en-us/library/ms241272.aspx
The log should contain a matching set of Begin and End entries for every extension:
<description>Begin package load ...
...
<description>End package load ...
If the last extension is missing the End package load entry, you need to uninstall that extension.
Execute:
devenv.exe /SafeMode
https://msdn.microsoft.com/en-us/library/ms241278.aspx
Go to "Tools -> Extensions and Updates" and uninstall the offending extension.
Exit VS. Start VS as normal. In case it still doesn't work, repeat the procedure.
Nothing of above helped me, What helped me was to copy devenu.exe from other computer which had VS installed and then replacing it with mine computers devenu.exe.
Run C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Blend.exe
Right click on some file in "Solution Explorer" such as "default.aspx" and select "Edit in Visual Studio"
For me it only shows Visual studio 2015 window without disappearing and showing IDE or any error.
Non of following solutions worked for my normal domain user but there was no issue running it with administrator.
Devenv.exe /ResetSettings
Reinstalling
Repairing
Watching event viewer for more details
Cleaning temp and cleanup and finally seeing some error
Finally I deleted my whole profile from admin via [System properties]-> [Advanced] -> [Profile] and it resolved the problem.
Just before that copy your user folder somewhere or at least your desktop and user folders and also your bookmarks and settings.
I tried several methods above and even re-installed VS but it did not work. The final solution was to really completely remove all the settings and registries of VS with the tool VisualStudioUninstaller. After uninstalling and re-installing it, it is up again.

Uninstall AnkhSVN from VS2012

I want to remove AnkhSVN from my VS2010 install, but find that the Uninstall option is grayed out when I navigate to TOOLS*/Extensions and Updates.
Starting Visual Studio 2012 as Administrator and unselecting AnkhSVN as the source control provider did not enable the Uninstall option.
*I'm not shouting TOOLS, just trying to get in the spirit of the new UI :-)
AnkhSVN apparently cannot be disabled or uninstalled from within Visual Studio 2012.
Do the following instead:
Close all instances of Visual Studio.
Run the AnkhSVN uninstaller.
Note: I ran the uninstaller in Revo Uninstaller, and there were no left-over artifacts (files, registry entries).
After uninstalling AnkhSVN, you may find that some of your projects still have source control binding information in the .csproj file. I had a solution with 10 projects, and only 8 of them had this problem (all projects were controlled by AnkhSVN... not sure why not all had the issue). In that case, you will get the error:
The project 'X' is under source control. An error occurred registering this project with source control. It is recommended that you not make any changes to this project.
I was able to resolve this by editing the .csproj files in a text editor and removing the following lines:
<SccProjectName>Svn</SccProjectName>
<SccLocalPath>Svn</SccLocalPath>
<SccAuxPath>Svn</SccAuxPath>
<SccProvider>SubversionScc</SccProvider>
I used
Windows > Control Panel > Programs > Uninstall a Program > AnkhSVN.
Seems to work with no hassle for me. VS2012 was not open during the uninstallation.

Copying visual studio 2010 installed extensions options to another computer

I have visual studio 2010 installed and configured with some extensions at my home computer. Now i want to copy all installed extensions settings from my home computer to work computer, how can i do that?
I can copy visual studio settings via import/export dialog but this not work for extensions settings.
I would look in this directory
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions
That is where the extensions are stored, copy that to your new PC.
I'm not sure if this will work 100% but you can give it a shot.
Visual studio extension settings are stored in the registry:
HKCU\Software\Microsoft\VisualStudio\<version>\DialogPage\<extension>
if they implement the default extension settings mechanism.
Otherwise you'll have to go to the individual extension website to see where they store their settings.
It is under one of the directories in AppData\Local\Microsoft_Corporation. Each extension has a user.config file stored.
For VS 2013 you can find them by this (not sure if this also works for VS 2010 but maybe it helps someone):
var config1 = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
MessageBox.Show("Config path: " + config1.FilePath);

Resources