visual-studio

How do I get Visual Studio to navigate to the right line from the Error List?

I've created a script that I run as a post-build step that runs jslint and minifys my javascript and css files. I've formatted the output so it shows up in the "Error List" in visual studio, complete with the File, Line and Column fields populated correctly. The problem is, if I double-click on an error, it takes me only to the correct...

ASP.NET MVC custom T4 templates for views

When I'm adding a new strongly-typed view to an ASP.NET MVC project, I can select between different view content templates (Create Details, Edit, List). I have read these are templates based on the Visual Studio T4 code generation engine. How can I author and configure my own templates and let them appear in the available templates when...

Is it possible to strip debug information from a COFF library file (.lib)?

I am linking with a number of 3rd party .lib files, and I get a large number of LNK4099 warnings at link time. It appears that this warning message cannot be supressed, so I believe that if I remove all debug information from the .lib files, the warning will not be shown. Is there a way to remove the debug information? These are librarie...

VS2008 internal compiler error

I'm consistently running into an internal compiler error while attempting to switch from MSVC6 to MSVC 2008. After much work commenting out different parts of the program, I've traced the error to two lines of code in two different CPP files. Both of these CPP files compile successfully, yet somehow have an effect on whether or not the...

Project Layout (on disk) in Visual Studio

What's the best way to manage the physical layout of a Visual Studio project on disk? I'm getting to the point where I have several folders but I can't really continue categorizing the way I am now. For example, I have several custom controls, but sometimes those controls have to do with application settings, so do they go into the Contr...

What should I consider before developing in .NET on Windows 7?

Does anyone use the Windows 7 preview release for .NET development? Do things like SQL Server Express 2005/2008, VS.NET 2005/2008 work on it fine? How about IIS? Any other things I should be taking into consideration? ...

Edit and Continue: "Changes are not allowed when the debugger has been attached to an already running process or the code being debugged was optimized at build or run time"

Hello, Even if I create a clean WinForms project, Edit and Continue doesn't work and gives me the error mentioned above. Edit and Continue option is checked in Tools -> Options -> Debugging. Optimization is not enabled. Seems like there is no any managed profiler set up. I am running in Debug mode I am running on x64 CPU and W...

Why doesnt my img show up in ASP.NET

I created a C# web project with MSVS 9 and thats all i know about my configurations. In my browser i can access any aspx files i have in my project. However when i use http://localhost:3288/img/test.png i see nothing. The working directory is ./root, the png file is in ./root/img/test.png How do i have ASP.NET display my images and ever...

There is any way to make Visual Studio self hosted ASP.NET applications to receive external connections?

I can't GET any of the pages hosted on my development machine externally, even after opening an exception at the Windows firewall. ...

Managing multiple configuration files in Visual Studio for a C# project

I have learned that builds should be very straight forward and requires less human intervention. In my situation, I have 3 environments, DEV (development version), SIT (STG integration testing) and UAT (user acceptance testing). All these environments have different database connection details and other settings (such as logging). Curr...

see previous definition of 'some symbol'

while programming in c++, Most of the times i get 'some symbol' has already been defined see previous definition of 'some symbol' I think this happens because improper order of headers file included. How can i find out all the definitions of 'some symbol' Thanks in advance, Uday EDIT: I am using visual studio I remember some comma...

How data sources are linked in compiled Visual Basic .NET applications?

When I try adding a new data source to my project I get a prompt saying "The connection you selected uses a local data file that is not part of the current project. Would you like to copy the file to your project and modify the connection?" This sounds rather obscure to me, as I'm new to VB.NET and programming non-script apps in general...

Invert assignment direction in Visual Studio

I have a bunch of assignment operations in Visual Studio, and I want to reverse them: i.e i = j; would become j = i; i.e. replacing everything before the equals with what's after the equals, and vice versa Is there any easy way to do this, say something in the regular expression engine? Cheers, Ed ...

What is involved with making a "build"?

Where I work we use a set schedule to build our applications. What is involved with builds? What is involved with getting an application to build somewhere other than at the local host? ...

.NET Different References List for Debug / Release

In my debug build I have a reference to a DLL that is only required in the Debug configuration (the reference is for CodeSite, a logging tool). Is it possible to exclude this reference in the Release build (my logging class only uses this reference when built in the Debug configuration). Using VB.NET and VS2008. ...

Using references in ASP.NET with Visual Studio and TFS

I am working with Team Foundation Server and Visual Studio 2008 for the first time. I had a web site project that was done with Visual Web Developer Express, which I have converted to a solution containing a Web Application Project, setup for TFS source control, etc etc. TFS was having issues checking in/uploading some of my referenc...

T4 templates newbie question

I am building a product, and I need a way to generate code at the runtime. Currently, I use VB.Net (only for this and nothing else) xml literals (is that what they are called?), to create templates and create code at runtime. My question is, can I use T4 on web server in shared hosting, without VS installed, to generated code at runtime?...

Static class members in shared library

I have a class like class K { static int a; static int b; } I would like to create a shared library (dll) containing this class K. In a cpp file compliled in the library I call int K::a = 0; int K::b = 0; to instantiate the static variables. The dll does compile without errors, but when I use the library, I get the unresolved e...

error PRJ0019: A tool returned an error code from "Copying DLL..."

Visual studio is giving the error PRJ0019: A tool returned an error code from "Copying DLL...". The console window includes the output: 'CopyDLL.cmd' is not recognized as an internal or external command. Here is some background as to why I don't know about the tool which is copying. Someone left the company a year ago and forgot to chec...

Visual Stuido Can not find CPPUNIT debugging database

Hi All, I am using Visual Studio 2008 with CPPUNIT. I already compiled CPPUNIT and add CPPUNIT path to Include and Library path. Currently, I can compile my program with CPPUNIT library. However, the linker generates the following warning. Warning 2 warning LNK4099: PDB 'vc90.pdb' was not found with 'C:\Program Files\cppunit\cppunit-1...