I was wondering if anyone was aware of an add-in that allows me to add and edit rich text files in my actual solution or project file. Any .rtf file I add comes up and is edited as a text file.
If not, I was wondering what most people do when they need to add specs or documentation to their project?
Thank you
This wont be possibl.e with out OLE integration
Related
Typescript seems to be great alternative to javascript.
we are using paython for visual studio aka PTVS.
the problem there is no wat to add .ts file to the project
any idea?
This is a general problem with VS projects, in that they themselves decide the "suitable" item types for Add New Item dialog. However, you can always add, say, a .txt file, and then rename it to .ts.
I have personal Visual Studio projects that I would like to expose to the internet. I'm using BatchPurifier to remove metadata from various files but I doubt it gets whatever Visual Studio does.
You only need to "expose" the solution, project and source code files. These are all plain text files that do not contain metadata and can be reviewed with a simple text editor. They do not contain secrets unless you put them in yourself.
If you have resources as well then it is entirely up to whatever program or device created the file, Visual Studio isn't involved.
Poking around github or codeplex is a good way to find out how other programmers publish their projects.
Open the solution and project files in a text editing program such as notepad and remove any metadata you find unnecessary. I doubt you will find a tool to remove exactly what you want, you'll have to do it manually.
I need to delete several lines from the solution file (.sln). When changing .csproj files I can use "Unload project". But what is the proper way to edit .sln file in TFS?
Your best bet is to close the solution and use a text editor (Notepad or equivalent) instead.
You can use the TFS Powertools for that purpose. It enables you to make tfs-"operations" from the windows explorer (and edit the .sln file with an txteditor).
Another option is to copy the sln in Visual Studio as a temporary text file, and edit there. I used this to handle some changes like regex updates to the sln file, without having to use the VS UI to adjust tons of build processor changes (and without having to do it using a public online web tool).
Once the text was updated, paste the new text back into the original sln file and save, using a tool like notepad, etc. VS will then tell you it needs to reload the new sln, and the changes will be loaded.
I would like to create custom templates for c# files, unit test classes, .aspx.cs etc so that common items to all files are included once they are created eg file headers. I am working with visual studio 2010 and resharper 6. What is the easiest way to create these files and is it possible to be able to share them a team of developers easily? Appreciate any assistance or information as to how I might achieve this.
Visual Studio templates are simple enough to create - you can distribute them to your colleagues to setup in the same location on their computers (or even create an installer, if you want to makes things even easier).
See Creating Project and Item Templates and the Introduction to Visual Studio Templates on MSDN.
Contents of a Template
All project and item templates, whether installed together with Visual Studio or created by you, function by using the same principles and have similar contents. All templates contain the following items:
The files to be created when the template is used. This includes source code files, embedded resources, project files, and so on.
One .vstemplate file. This file contains the metadata that provides Visual Studio the information it needs to display the template in the New Project and Add New Item dialog boxes and create a project or item from the template. For more information about .vstemplate files, see Visual Studio Template Metadata Files.
When these files are compressed into a .zip file and put in the correct folder, Visual Studio automatically displays them in the My Templates section of the New Project and Add New Item dialog boxes. For more information about template folders, see How to: Locate and Organize Project and Item Templates.
You should open Templates Explorer from ReSharper | Templates Explorer. Then select the File Templates tab. There are default templates that comes with ReSharper. You can examine them and see how you can write your own. Here's the documentation and there's a question for useful examples.
i have taken over an asp project from a friend and he was basically just using notepad++ to develop. I would like to use visual studio 2008 but there is no project file or solution file at this point, just a bunch of asp pages and some images, css
the other trick is that he will still be developing for a bit but doesn't want to use VS.
what is the best way to "upgrade" this so i can use VS ide features and he can still use notepad++ without any issue?
EDIT: Thanks for the responses. One additional request. We will ultimately be looking at migrating this to an ASP.net mvc site. Would that change any of the answers below or should i start from scratch when that happens in terms of vs projects solutions?
Yes. We are currently using it that way to support a legacy .asp application. We have a project in one of the solutions for the .asp pages.
edit:
In response to your edit I wouldn't see a need to change anything when migrating to MVC. You'll be adding new project(s) to your solution containing the .asp code. If anything, having it all in one place might make your life a little easier during the transition. Our ASP.net site(s) are in the same solution as the .asp project.
edit (part deux):
Using Notepad++ should present no issues. The edits would be to the .asp files (and .css, etc), not to the VS .proj file. I often use UE to edit the .asp files if I don't need to open the IDE. Assuming you're using a source repository of some sort...
Just create a blank solution (New Project > Other Project Types > Blank Solution) and then include all of the .asp files and any other relevant files.
You can just do File > Open > Web Site... and point VS at the folder containing the files. That should let you just edit the files. I say should as I don't have a classic ASP site to test this on.
When you start the MVC app, I'd start that one from scratch with a new project and then use your existing asp pages as starting points for your views.