Using VS2010 - I already know how to edit the default code templates. What I am looking for is a way to modify the path that VS2010 points to for these templates. The default path, if you are running 64 bit, is: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Code\1033
I have a requirement where there are multiple developers on a team - and we want the templates to be in one central location - in our case, on a network. The only idea that comes to mind is changing the default VS2010 template path. Does anyone know if this is feasible?
Chris
This article is about Visual Studio 2005 but might be anyhow interesting for you, because the workflow should be generally the same:
Create Reusable Project And Item Templates For Your Development Team
Related
The standard method of implementing a Reporting Services report template is to create an .RDL (report file) and place it in the Visual Studio Report Project template folder at C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject
Since this is a purely local approach, is there a way to implement a shared and source controlled template that can be used from the new item menu?
Our current solution for this issue is to store our templates in our report solution, and copy/paste them for new reports. Just wondering if there's a better alternative.
You need to create this as a .vsix extension and then share it. If you update the package and version all Visual Studio instanced that have it installed will prompt the user to update.
How to: https://blogs.msdn.microsoft.com/vsx/2014/06/10/creating-a-vsix-deployable-project-or-item-template-with-custom-wizard-support/
Although you can setup your own repo to load it from, It's much easyer to use http://marketplace.visualstudio.com for distribution.
How do I create a Visual Studio Project for Development on my Local PC that links to Existing files and folders on a Server?
My employer has a large website. Most of that girth (close to 100 GB) is contributed to Portable and Image document (i.e. PDF and JPEG) files, but there are also numerous web files (.html, .aspx, .php, etc).
We have the following folders:
a WORKING folder that contains everything that is "Live" on our web server.
a BETA folder that contains newest technologies that are being tested and tried.
a DEVELOPMENT folder that contains numerous copies of projects that are being worked on by the different developers.
Developers are allowed to use whatever tools they prefer, so we have people who develop using Notepad++, Dreamweaver, Komodo, Zend Studio, and (now) Visual Studio.
It is NOT OK for me to create Visual Studio Projects for myself on the network servers. Other developers using other tools are not creating solution files or \bin and \obj folders on the servers, and I certainly should not be either.
So, to work on a file in Visual Studio, I use Windows Explorer to browse to the location, then I open it in the IDE.
However, this causes me to lose a lot of the power of Visual Studio - particularly if other classes used in this file, because I would have no access to the Intellisense for that class and I cannot simply Right-Click and go to definition.
Also, since each development environment is so large, I can not copy them to my laptop with its high tech 125 GB Solid State Drive (should be interesting to read that in a couple of years).
What I would like to do is create the Visual Studio Projects on my local drive, and then have them reference the files and folders on our network.
I've looked and found these similar questions, but my goal is slightly different:
Working efficiently on remote projects in Visual Studio
How do I add an existing directory tree to a project in Visual Studio?
How to "Add Existing Item" an entire directory structure in Visual Studio?
These are all great topics, but none of them show a way to create a local project that uses remote files.
It would seem that developers in large company teams would have already developed a way to do this, and that I just do not know what it is called.
I have found a way to do this!
For a long time, I was working with 2 sets of folders. One for our repository and one for Visual Studio.
I'd make changes in Visual Studio, then copy those working files over to the repository folder.
That was time consuming! Very.
Here is how I found to fix it: Open the Visual Studio Project file (*.csproj, *.vbproj, or *.phpproj) in NOTEPAD with Visual Studio closed.
Locate the <ItemGroup> tab, and change every path to be from the one shown to one that uses a relative path to get to the actual files.
Notepad's Replace... CTRL+H will save you hours here!
It makes a funky looking project environment, but it works!
If this helps anyone else or if it were even something you didn't know you could do to manipulate Visual Studio, kindly vote it up.
I've this environment:
I'm using "FxCop 10" and "Visual Studio 2010 Profesional". I connected the FxCop to Visual Studio 2010 Profesional using "FxCop Runner".
This is my purpose:
I want to disable some rule for my project, and integrated it with others projects (in the same solution). I also want to save that configuration in source control, so my team member can use it easily.
And this is my experience:
As StyleCop can generate the "Settings.StyleCop" file and can be referred by other projects.
My question is:
can I do the similar way for FxCop?
Regards,
Aditya
FxCop supports two mechanisms for this. The first is a .fxcop project file, which can be created via the FxCop UI application. This is probably your simplest option.
The second approach is a .ruleset file, for which the UI editor is Visual Studio Premium or Ultimate for VS 2010 (or Professional if you have VS 2013 as well). If you don't have one of these editions, you could edit a .ruleset file manually since it's just XML, but it sounds like there's no reason not to use a .fxcop file in your case.
We have Visual Studio 2005 and using Sitecore. In Sitecore solution we have different 4 projects. The problem is whenever I debug it takes much time to debug and then after debug when I run in browser it takes even more longer time.
I tried to clean the solution but did not work and I am trying to fix from many hours now and cannot find any solution.
I tired to create new project separately then it works fine its only with this solution of Sitecore which has problem.
Can anyone please help me...
Thanks!
this is a common problem in all versions of Visual Studio which is due to the many files in the /sitecore folder WHEN you have the "Show all files" turned on, on the project which contains Sitecore. I think Visual Studio tries to load each and every file when debugging with that option turned on.
Turn it off and you should be good to go :)
We include the Sitecore directory as a virtual directory in IIS, this way we don't have to have the Sitecore folder under the VS project root. Our typical setup for Sitecore is something like this:
/Site
/Website
/Layouts
/XSL
/Bin
/...
/Virtual
/Sitecore
/Sitecore Modules
/Data
The Visual Studio project then looks at the /Site/Website folder and knows nothing about the virtual folder.
I just started to use VS 2008 Express. I noticed that I cannot add a new solution folder within a solution in the way like VS 2005 Prof. Not sure if this feature is disabled in the Express version or not.
In VS 2005, I can also add project within a virtual solution folder. This makes my projects in a well organized tree. However, I cannot add virtual folder within a solution in VS 2008 (express?). I am not sure if I could add projects within a virtual folder (if possible in Prof) or not.
I even tried to use text editor to add folder structure in sln file like VS 2005 sln file. However VS 2008 complains the virtual folder.
I couldn't find a question in your post, but yes, the express edition disables this functionality. Consider it another reason to shell out the money for a higher tier.