visual-studio

Ignore code analysis rules in Visual Studio

How do I ignore a specific VS code analysis rule (say CA1305 : Microsoft.Globalization) within a: Method? Class? Namespace? (Assuming these options are all possible.) ...

Append to a Select Command

I have a Gridview that I want to filter. My gridview is in an update panel and my filter button is not. On button click i have the following protected void bttnfilter_Click(object sender, ImageClickEventArgs e) { if (TextBox1.Text != "") { SqlDataSource1.SelectCommand += " and field like '%' + @param + '%'"; SqlC...

VS2008: Autogenerated files and XML documentation

This is an annoyance more than a problem. My project contains a number of autogenerated files (using mgmtclassgen.exe). When I generate the XML documentation, my beautifully commented library is plagued by xml documentation warnings from these autogen files. Is there a way to either a) suppress generating documentation for these files ...

How can I testrun my SSL-Required ASP.NET MVC Website in Visual Studio?

My ASP.NET MVC application enforces the use of SSL (nothing happens at all over plain HTTP) - session cookies are required to be SSL & HttpOnly; my authorization module checks that no communication goes in or out over anything except HTTPS. The problem: How do I debug/step-through in Visual Studio now? I still want to be able to do F5 q...

Assembly context being changed in MStest- Possible to avoid?

I am trying to use MSTest on our code base. Now I am running into different problems during this. We implicitly use _getDefaultName from Microsoft.Practices.EnterpriseLibrary.Data and it gets the default connection string in the current Assembly's App.config. Since this test project would be a new assembly/project it is not able to fin...

VSTS 2010 Debug Feature

I heard of a feature supposedly included in VSTS 2010, but now I can't find any mention of it. It was a tool that allowed a developer to attach a debugger that was on a flash/jump drive and start debugging a program. It did not require any installation. Note: I am not referring to the Historical Debugger. Anyone else heard of this? ...

Visual Studio addin for mass breakpoints

When I'm starting with some big code I don't know. I find useful to me to search for a constant or function name and then add a breakpoint at all the references so I can begin to understand the code. Is there a VS adding to do that quickly ? ...

Where does Visual Studio search for txt files when conducting file management operations?

I know this is a noob question, but I've worked with Python before and when you wanted to simply access a .txt file for example, all you had to do was make sure the txt file was in the same directory. I have the following C++ code below but it's not finding the Numbers.txt file that I have saved on my desktop. All I have in the file is o...

Visual Studio 2008 Asp.net MVC and Run as Administrator

In my visual studio asp.net mvc applications I have 4 build configurations; one is to use IIS as the web server, which requires "run as administrator" when running visual studio. So I ran as admin and created some new files. I have a multi-project template that I use for all my web applications. So I copied the new files from the projec...

Possible to write strongly typed entity classes in javascript?

When I am retrieving JSON entities via jQuery from the server and manipulating them client side, I have this desire to be able to see their interface via Visual Studio intellisense. So, ignoring whether this is a stupid idea, is this possible in any way? So what I was thinking was being able to reference Entities.js, which would contai...

Why are user types not highlighted in Visual C++?

I would like to have Visual Studio highlight the names of my own classes in the text editor. I have selected a color under User Types in Options > Fonts & Colors -- but strangely, this only works for Visual C# but not Visual C++. Any ideas what's going on? EDIT: I received some great tips regarding 3rd party tools in response to my pr...

T4 Template to generate first cut of GUI (aspx) derived from database?

I'm wondering if anyone has come across any existing T4 templates to reverse engineer a database into a first cut at an ASPX GUI. It would be nice to be able to design your database, run it through a code generator for the data access layer, but also generate a simple GUI. As a simple example, for each table in the database, create som...

What is this dashed line called that aligns function blocks in my IDE?

The SPE IDE that I use for my Python code uses this "visual cue" that looks like a vertical dashed line for alignment of (what I would call) function blocks. How can I get this option in Visual Studio 2008? Here is what it looks like: ...

Installing Visual Studio 2008 TS after Visual Studio 2010 Beta 1

Hello I recently installed Visual Studio Professional 2010 Beta 1 and noticed that most of the install directories were independent of "shared" directories (I have Visual Studio C++ 2008 Express installed and didn't notice any conflicts). If I install the full version (non-beta/trialware), of VS 2008 TS, will it conflict at all with th...

Why Intellisence doesn't show up for snippettag ?

I want to create a Code Snippet for VS: <?xml version="1.0" encoding="utf-8" ?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2008/CodeSnippet"&gt; <CodeSnippet Format="1.0.0"> <Header> <SnippetTypes> </SnippetTypes> </Header> <Snippet> Why Intellisense doesn't show up when I typed SnippetTy...

Is there any way to get Delphi to read other debug formats?

When I'm debugging something in Delphi and there's a system library in the stack trace, I've got the name of the library and the function that's being called into. Unfortunately, this doesn't seem to apply to any other external DLLs. I've got one that was compiled in Visual C++ 2005, and any time it gives me any sort of trouble, I have...

Visual Studio 2008 - Un/Comment button for css

Is there a way to add a comment/uncomment css line/s button to the menu in the VS2008 css editor? Other than adding a macro. Thanks. ...

PortableApps deployment project in visual studio

I have a WinForms project that I want to distribute as a portable version using PortableApps. I am looking for a deployment project template to embed in my visual studio for this purpose. ...

How to debug remote website?

I have a online website and i have locally on my PC all its source code "c#/asp.net3.5" i want to debug the online version using the current local source code i have inside my Visual studio 2008. Anyone have an idea how to do that or its not possible? ...

Prevent cl.exe from printing the compiled source file

I use the MS compiler from the command line (VS 2008), and whenever it compiles one source file, it prints the compiled source file. Is there a way to avoid this useless print ? ...