visual-studio

AnkhSvn doesn't add files to SVN

This is a known issue - when files are added using Ankh, they are not really added to SVN. Many a times this has caused problems, for instance when committing later through TortoiseSvn only to find missing files, or when creating a patch. Is there a workaround, or some plans to fix this is a future Ankh release? Edit - to clarify, when...

Where to put my custom Html Helpers ?

Where to put the helper class in the project folder hierarchy ? ...

VS setup project - is there drawbacks?

Taking into account that some Windows Installer products from independent vendors (for example IstallShield) are rather expensive we can say that using a setup project in Visual Studio for building Installation packages has some drawbacks. Otherwise why developers should buy something else. For what reasons developers could use somethin...

Visual Web Developer - ASP.NET Web Application Administration PROBLEM.

Hi All, Was wondering if somebody could please help me solve this. I've follwed all steps correctly, but when I go to create a new user, it keeps saying "Password length minimum: 7. Non-alphanumeric characters required: 1." I have tried about 20 different combinations of passwords and it just keeps saying the exact same thing and won'...

Visual Studio : malloc() crashing in Release mode

Hey, I have a Project that runs fine in Debug Mode. But in Release Mode it crashs with every malloc(); Even Winmainetc(){ char* szTest; szTest = (char*)malloc(1); } fails... Under Debug Mode all works fine. The thing is that I selected Multitrheaded (/MT) in the linker, so it statically links the mscvr90.dll into the binary. If i ...

Xcopy "exited with code 9009"

I am getting the following error, which I don't understand: Error 1 The command "xcopy "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject.Modules.Ribbon\bin\Debug\MyProject.Modules.Ribbon.dll" "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject\bin\Debug\Modules\" /Y" exited with c...

Visual Studio Build Fails on Configuring SQL Server 2005

I'm trying to build a setup project in Visual Studio 2005, and it is failing every time, after opening a dialog box labeled Microsoft SQL Server 2005 Tools and configuring for a few minutes. The Microsoft SQL Server 2005 Tools dialog then launches a dialog with the text Failure creating local group SQLServer2005NotificationServices$COMP...

Ribbon-based add-in for VS 2008?

I have a handy little add-in that I developed for MS Office apps that I would love to use in Visual Studio 2008, which is not ribbon-based. Is there a way I can display my ribbon-based add-in interface inside of VS 2008? ...

Type ahead autocompletion in Eclipse

Hi Do Eclipse have a plugin for type ahead autocompletion like Visual Studio, so I don't have to destroy my spacebar by pressing Ctrl+Space all the time? (If you don't know how it works in Visual Studio, please don't bother answering.) And also, can I limit the autocomplete to imported packages, rather than every single java class on e...

Procedure for managing resources (images) in Visual Studio build.

I have a software product that is used by two customers. There is one codebase, the only difference is that each customer has their logo on the product. My question is, what is the best way to manage the codebase so that I can easily build the project for each customer, and never use the wrong logo? I currently have both images in a dir...

Tools to create class methods interaction diagram

Let's say I have a MyClass class, with various methods, and let's say that method MyClass.A() calls methods MyClass.B() which calls MyClass.C(). Method MyClass.A() also calls MyClass.D() which also calls MyClass.C() and so on :) Is there any tool to visualize this as a diagram? UPD. I see NDepend can do what I need but it costs too much...

How to use Visual Studio test for a method which returns datatable

I'm new to visual studio tests, I created a new test method to test a method which returns a datatable based on the tablename passed, but I'm confused as to how to test such a method, since the results are variable based on what's in the backend store at any point in time [TestMethod()] public void GetTableDataTest() { ...

How does visual studio find web services on the local machine?

When adding a new web reference, one of the options that visual studio gives you is to search for web services on the local machine (The exact option name is "Web services on the local machine"). My question is, how does Visual Studio find the web services on the local machine? The local website that contains the service doesn't contain...

Why can't I run my OpenGL program outside of Visual Studio?

I have an OpenGL-program using GLSL, that I can run just fine with the Play-button in Visual Studio (2008) -- both in the standard Release and Debug configurations. However, when I try to run the executable from Explorer, all I get is a flashing cmd-prompt with no text in it to indicate any kind of failure loading something. I have tri...

How do I generate a unit test project along with my new project in Visual Web Dev Express?

Taken from http://msdn.microsoft.com/en-us/library/dd410597(VS.100).aspx ... If you are using the Standard or Express editions of Visual Studio, the Create Unit Test Project dialog box is not displayed. Instead, the new MVC application project is generated without a test project. Does this mean it can't be done? If it can...

How to set project wide #define in C#

I have several classes in a project which need to only be in certain builds of the application which are currently not ready for release or debug. To prevent these classes from being used, I want to set around them this: #if USE_MYCLASS // Code here... #endif Unfortunately, I don't know how to setup a project wide #define. Is there ...

Are Visual Studio pre-build events guaranteed to finish before compiling starts?

I'm using a pre-build event in Visual Studio to run a batch (.bat) file that performs some code generation (specifically, I'm running SqlMetal.exe to generate LinqToSql code). Is the batch file guaranteed to finish before the compilation begins? Or does it run the batch asynchronously? Bottom line: I want to make sure the new code gets...

How to reference different version of dll with MSBuild

I have a web application project which utilises a set of 3rd party dll's. The issue is that the dev/staging environment is 32bit, but production is 64bit. As such, we have to re-reference and build the solution each time we want to deploy. I am now wanting to automate this, but unsure how to go about it with MSBuild? All other dll's ar...

What is the correct file name for the interface "IRepository<T>"

Just curious what people would name the file that contains the generic interface IRepository<T>. IRepositoryT.cs? Update One minor point to add. Normally, when you change the name of a class file, Visual Studio asks if you want to do a rename on the class as well. In the case of IRepository<T>, no matter what I name the file (IReposit...

How to disable markup validation (and others) in Visual Studio?

Hi, Sometimes while opening markup in an ASP.NET application, Visual Studio's speed increases very much just because of validation or processing of markup. Although I do not need such a feature. Is it possible to disable it? Thanks ...