visual-studio

How to create a Visual Studio 2008 C++ project template?

I've used the "Export Template" feature numerous times for C#, ASP.NET, WinForms, etc. projects. Today I tried to do it for a C++ project and noticed "Export Template" was grayed out in the File-menu. Is it not possible to create C++ template projects in VS 2008 ? ...

Visual Studio & TortoiseSVN

We have 3 VS2008 projects. Each project builds a executable and supporting files. All 3 projects will eventually ship together as an application. Up till now we have been using a separate SVN repository for each project and managing them separately with TortoiseSVN. At this stage it is now becoming necessary to share files between th...

app.config not being renamed when built by an external project?

We are working on a solution with various projects inside of it, the bulk of which is inside our Domain class library. This project contains a app.config file with various settings. The stripped down structure of the solution looks like this: Solution Domain project app.config Integration tests project app.config...

why does Blend suck at compiling?

about 10% of the time when I go to compile code that should compile, blend fails. I know the code should compile because w/o changing a thing it will compile in VS just fine. The really weird thing is that about 50% or more of the time, after compiling in VS and I come back to blend, it compiles. >_< So, why does blend suck at compiling...

VS 2010 Beta 2 problem with System.Web.dll

All of a sudden i'm getting this error in design view in all my webforms (they all use AJAX.NET) Error Creating Control-ScriptManager1 "Cannot find type System.Web.UI.IScriptManager in module System.Web.dll" and Error Creating Control-UpdatePanel1 "Cannot find type System.Web.UI.IUpdatePanel in module System.Web.dll" ...

Is there any way to catch compile errors in all build configurations?

I made a simple change of a property to an auto property and broke the build because the property was referenced in a conditional compilation section. I was building in debug and the reference was in a section of code that's only compiled in release configuration. Is there any way to catch these errors without manually switching the buil...

Will ASP.NET MVC 2 be supported in Visual Studio 2008 / .NET 3.5?

The ASP.NET MVC 2 preview 2 was first released for Visual Studio 2008 only. Later on, it was also included in Visual Studio 2010 beta 2. I've read that ASP.NET MVC 2 will be included in Visual Studio 2010 RTM, but is there any official word on weather or not ASP.NET MVC 2 will be officially supported in Visual Studio 2008 / .NET 3.5? ...

Visual Studio 2010 and .Net 4 Beta 2

Can anyone tell me if components made on .net 3.5 can work in .net 4.0, there are a number of components in my software that will have to be developed using .net 3.5, but the whole application must be based on wpf 4, which is on the .net 4 framework. ...

C#/.NET How do I find the containing namespace from a class name

I often find myself remembering the name of a class that I want to use, but not remembering the containing namespace. Apart from searching the web, i wonder if a good method exists for looking this up. ...

Determine RC dependencies

I have a fairly large project which uses make for its build infrastructure. When we perform a build, we take advantage of cl.exe's /showInclude option to find source dependencies. Is there a similar capability for rc.exe? The basic problem is this: A makefile specifies a resource to be compiled (say, resources.rc). The resource file...

ruby on rails on click events

I am so sorry if this question seems too easy but I can't seem to find it anywhere. I am creating a ruby in steel project. I have created a html.erb and rb file in a vs project (ruby on rails). My problem is the following: In my html1.erb file I have created a text box and button: <p> <input erb:blockvar="erb:f" erb:method="erb::myName...

Generating RC dependencies

I have a fairly large project which uses make for its build infrastructure. When we perform a build, we take advantage of cl.exe's /showInclude option to find source dependencies. Is there a similar capability for rc.exe? The basic problem is this: A makefile specifies a resource to be compiled (say, resources.rc). The resource file in...

ruby in steel error

I right clicked the project file for my rails project and created a new ruby file. Then i right clicked views and created a new erb file I added a textbox and submit button and click on page (design) and it gives me this error: failed to locate layout file can anyone help me pleasE? thnx ...

Visual Studio - why are line numbers off by default?

Seems totally backward to me that such an excellent IDE would hide line numbers by default. This seems like an obvious oversight, or poor default. Which means I'm missing something - because in the VS dev team vs Me, I know who has more experience. So what am I missing? Why would I -not- need to see line numbers in code? ...

How to put my component in a new group in Visual Studio toolbox?

I have created a component and it is automatically shown in toolbox when I open the solution. It can be placed on form, I can change properties etc. When I close the solution and install it in toolbox (choose toolbox item menu), I want this component to be shown in a different group (other than "All Windows Forms" group). How can I do i...

Creating a plugin for Visual Studio

I'm a fan of style cop but hate the way it dosn't have a more producticve way of resolving errors. So I'm thinking, to give me a wee project to keep me happy in my spare time, of creating a Visual studio plugin to automate some error fixing. Has anyone authored a plug in before and got any useful links, hints, experience to share? ...

How do I isolate debugging just to the current running project in visual studio?

I have just created a virtual directory and placed my app's files into it ready to allow some users to test. The problem is when I then go to my visual studio project (which uses a different virtual directory when running and seperate code location) I get debug errors randomly appearing from my users actions. How do I isolate debuggin...

Error: The project type is not supported by this installation.

I'm trying to open a silverlight project in Visual Studio 2008 and getting this error. The project type is not supported by this installation. Let me tell you I did installed: VS2008 SP1 Silverlight Tools 3 Silverlight SDK Silverlight And they were installed in the sequence they are mentioned here. Still I'm getting the same error....

Weird namespace addition when importing a typelib

I want to add a method accepting IStream* to my COM interface. Here's the idl excerpt: import "oaidl.idl"; import "ocidl.idl"; import "objidl.idl";//IStream is declared in this .idl file [ uuid(uuidhere), version(1.0) ] library MyLibrary { importlib("stdole32.tlb"); importlib("stdole2.tlb"); [ object, uuid(...

Simple & Practical C# code generation (VS 2008 or 2010)

I've put off using generated code as part of the build process for fear of the complexity it introduces into the build process. Is there a simple way to integrate build-time generated code into an app? The kind of code I'm thinking of is similar to the resource and settings file code generation that Visual studio performs: Having int...