I have created a set of templates that I want to share across multiple projects. Is it possible to add the template to the Project “Add New Item” dialog such that when I choose it an instance of the code file is generated from the template and added to the project?
Update
Thanks for suggestions Preet. That answers the question but I th...
Well fast question is there any way to use a css class in a web user control?
why?
well i have some classes in css that change the layout dramatically so if i want to view the result of the changes i dont want to press f5 and se the page load....
ps im using visual stuido 2008
...
complaining {
I always end up incredibly frustrated when I go to profile my code using Visual Studio 2008's profiler (from the Analyze menu option). It is one of the poorest designed features of VS, in my opinion, and I cringe every time I need use it.
}
I have a few questions concerning it's use, I'm hoping you guys can give me some ...
We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking for best practices for such beasts. Along the lines of questions I am hoping to get answers to, are:
how do you best handle references between projects
should "copy local" be on or off?
should every p...
Is there a way to copy files between two Visual Studio 2008 instances ? A plugin, setting, or something else ? Currently, dragging a file from one instances to another does nothing (mouse shows that it's invalid operation).
Right-clicking a file and selecting "Copy" from instance 1, and pasting in instance 2 results in the following e...
Linqpad, when coding in C#, will draw a vertical line between opening and closing curly braces.
Boy, oh boy, I sure do wish Visual Studio would do this. Does it? Is there anyway to make it do it?
...
I am using the Microsoft.VisualStudio.TextTemplating.Engine class from the VS 2008 SDK along with the objects from the Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates namespace to automate the process of creating C# classes from T4 templates.
Here my code. It taken straight from the example on Oleg Sych's Blog...
usi...
I've been developing a C# project that references the ADODB 2.8 COM on a Windows 2005 machine. (No I'm not using it for data access I need it because CDO needs returns ADODB.Streams).
Now I've tried opening this solution on a Server 2008 box but I'm told ADOB 2.8 is missing and sure enough there aren't any ADODB items in the COM refere...
I'd like to compile a C++ project with just a single call to WinExec in order to launch another executable with some command line parameters. I've no idea what settings to specify in my project in order to get produce an executable that works without requiring Microsoft side-by-side DLLs, which I don't want to have to install on my targe...
I am in need of a new laptop, and I'm considering going for a Mac. However, an import part of my day-to-day work involves remote desktop'ing to my office computer (Vista), and running Visual Studio 2008. Has anyone done this? Are there specific issues to be aware of?
Thanks!
...
I'm trying to debug something in the global.asax.cs file in an ASP.NET web app and have set a breakpoint in the Application_Start() event however that event is not getting fired when I start the web app inside VS2008. I'm targeting the 3.5 framework.
What could prevent this event from being fired? Or how could I have messed up the proje...
How can I compile using Visual C++ 2008 and link against an older version of the C runtime (I want version 7 instead of 9)?
...
Is there a VS2008 plugin for code metrics for C++? I have Team System but it doesn't work for non- .NET code. I tried studioTools but it just freezes. So, does anyone know one that actually works?
...
hi,
I want to find out inside a webcontrol the real type of the page that is designed in Visual Studio 2008.
I can obtain the WebFormsRootDesigner, and somehow i know it is possible to get the
file path of the aspx page.
I would like rather to get the ProjectItem for that page, because it would be an overkill to have the control pars...
hi,
I've a native binary dependency for my c# solution which comes in Debug and Release variants, and I'm trying to figure out how to best organize this such that
(1) It ends up in the build output, and is found when running unit tests
(2) It lives under the checkout directory in source control
(3) The correct variant (debug/release)...
Hello, how to recognize a comment in the C# source code?
I want to retrieve all information from the comment.
public class TestClass
{
/// <summary>
/// Sample method
/// </summary>
/// <param name="a">1 argument</param>
/// <param name="b">2 argument</param>
/// <param name="c">3 argu...
When adding a user control or a project reference to a VS 2008 C# project, I can add only one configuration of the assembly. Is it possible to add separate configurations, depending on the configuration of the container project.
E.g. I am developing a user control, and I am working on a sample application. I want to add the user control...
After installing TortoiseSVN 1.6.0, all files loaded into an AnkhSVN enabled Visual Studio 2008 project are marked as new (blue +).
I have tried re-installing AnkhSVN 2.0.6347 and checkout the repository into a new "clean" folder. However neither seem to resolve the problem.
My question is kind of two fold, is there a resolution to thi...
I inherited the prototypical corporate application with a person form (with address, phone, etc).
Now on that mentioned person form one label+textfield is a child of the form itself and not of the panel it visually belongs to.
How can I change a control's parent from form to an existing panel in VS 2008 designer?
Update:
Ah, it seems...
I'm trying to put a plain image on a System.Windows.Forms.StatusStrip control (Visual Studio 2008, C# .Net 3.5).
I remember being able to do it quite easily in earlier framework versions, but for some reason the only controls made available to me from this new StatusStrip are a StatusLabel, a ProgressBar, a DropDownButton, and a SplitBu...