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.) ...
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.) ...
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...
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 ...
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...
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...
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? ...
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 ? ...
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...
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...
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...
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...
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...
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: ...
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...
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"> <CodeSnippet Format="1.0.0"> <Header> <SnippetTypes> </SnippetTypes> </Header> <Snippet> Why Intellisense doesn't show up when I typed SnippetTy...
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...
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. ...
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. ...
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? ...
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 ? ...