I was searching for a way to extract hardcoded string values to a resource file to be able to easily edit the string values and maybe create translation files...
I found a Addin : the Resource Refactoring Tool. But there is two problems :
It only works for Visual Studio 2012 and lower but I'm using the 2013 edition...
So I've searched for an updated version... and I found one (developped by a German) ! The new problem is that I fail to install it.
In the linked zip file on the previous website, there is a "HowTo - Install.txt" file which contains :
HowTo - Install
Copy all DLLs to "C:\Program Files (x86)\Power Toys for Visual Studio\Resource Refactor Tool"
Copy "ResourceRefactor.AddIn" to "C:\Users\<UserName>\AppData\Roaming\Microsoft\MSEnvShared\Addins"
(Re)Start Visual Studio.
At the 2. I've a problem because I don't have the destination folder (C:\Users\<UserName>\AppData\Roaming\Microsoft\MSEnvShared\Addins).
I've created the folder (useless or not ?) and I've done all the instructions, but it doesn't work.
I don't have "C:\Users\Drarig29\Documents\Visual Studio 2013\Addins" also.
Then I documented myself and I found this... I don't know what to do anymore.
Please help !
Regards, Drarig29.
Related
I wrote an Visual Studio Extension for our Company, which gets the Specific Version of Files in a Solution based on Microsoft TFS. We use Visual Studio 2015 / 2019.
My question is, is there some way to set the "Latest" Information of an File which gets displayed in the Source Control Explorer programmatically?
Like this:
Latest Information Visual Studio
So i have a list with all files which i want to get.
Before i used this method to get for every file:
WorkspaceInfo workspaceInfo = Workstation.Current.GetLocalWorkspaceInfo(filePath);
Workspace ws = workspaceInfo.GetWorkspace(new TfsTeamProjectCollection(workspaceInfo.ServerUri));
status = ws.Get(new GetRequest(new ItemSpec(filePath, RecursionType.Full), VersionSpec.Latest), GetOptions.GetAll);
This worked fine and refreshed the latest information.
Sadly this method is to slow compared to the "real" Get Specific Version from Visual Studio.
Now I tried this method, which is much faster, but doesn´t change the latest information of the file:
item.DownloadFile(filePath);
Even if I downloaded the file (I checked the differences between changesets) and got the latest version of it, the information in Source Control Explorer keeps saying "No".
Does someone know a solution for this, or even a better solution?
Why you don't use the VersionControlServer.DownloadFile instead the item.downloadfile? https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2012/bb138622(v%3Dvs.110)
I decompiled a EXE and now when I try to open it. I get
One-way upgrade
Visual Studio will automatically make functional changes to the following projects in order to open them. You will not be able to open these projects in the version of Visual Studio in which they were originally created.
If I click okay I get ~250 errors
I found that need to open .csproj file and delete lines with
ProjectMode, TargetOfficeVersion, FileUpgradeFlags, UpgradeBackupLocation or OldToolsVersion. But I don't have in .csproj any lines like this.
Is there a way to fix this. Or at least a way to find what Version of Visual Studio was using the author ?
I am new to .Net and Visual Studio. In order to learn more, I decided to create a simple asp.Net application in my spare time. In Visual Studio I am trying to follow the same project structure as the application I support at work. I noticed that my work application has the following project structure
Development
|_services
|_RedSun.Onvia
|_various VS project folders (i.e. RedSun.Onvia.Core, RedSun.Onvia.Web, etc)
|_RedSun.Onvia.sln
|_RedSun.Onvia.v12.suo
Notice how the VS solution files are on the same level as the RedSun.Onvia solution folder. However when I create a basic empty project Visual Studio, it gives me the following structure...
Development
|_services
|_RedSun.Onvia
|_RedSun.Onvia.sln
|_RedSun.Onvia.v12.suo
Note the RedSun.Onvia.sln and RedSun.Onvia.v12.suo files are a directory deeper than the solution folder. When I tried moving files around manually with File Explorer to try and match the structure above I was unable to open the project in VS due to errors.
Can anyone please explain how I can get the same structure as shown in the first example?
I'm working with WiX installer and trying to open my Installer files .wxs for editing and i'm getting a this error.
No EditorOptionDefinition export found for the given option
name:TextViewHost/LineNumberMargin Parameter name:optionId
Follow the steps:
1.Close Visual Studio
2.Open the folder: %LocalAppData%\Microsoft\VisualStudio\12.0\
3.Rename the ComponentModelCache folder
4.Restart Visual Studio. Visual studio will recreate the folder and all will be well with the world (or at least VS).
I was facing the exact issue where I was not able to open any files(code) .
The easiest way in which we can resolve issue is to download the visual studio web essentials .(http://vswebessentials.com/download)
Once you download you will be able to open your files and no error will be thrown.
thanks,
Abhimanyu
I am using Visual Studio 2008 with TFS. I have one workspace set up with one working folder. I map the root source control folder $/ to C:\TFS and get all code. When working on any project under the root, Visual Studio will randomly add incorrectly mapped working folders to my workspace.
For example, it might map $/WebProject/ to C:\TFS\WebProject\DataAccess -- where the real files exist at C:\TFS\WebProject.
Once it incorrectly adds these working folders, I can no longer open the solution. I am forced to remove the working folders that Visual Studio added and get latest from TFS.
Has anyone experienced this? Is there something I can do to avoid running into this?
go to "Source Control Explorer". Click on the "Workspace" dropdown. Select "Workspaces" and delete any custom workspaces you don't need.
Update:
Your vs2008 TFS cache might be corrupt. Your cache is located here:
C:\Users\YourUserName\AppData\Local\Microsoft\Team Foundation\1.0\Cache
Install Team Foundation Sidekick and look at your workspaces
http://www.attrice.info/cm/tfs/
http://www.attrice.info/images/workspace_sk_screen.gif
What do you see there?