We have a number of projects that have NAnt build files that we can run from batch files. We went this direction so we can tie the builds to subversion hooks and automate running the tests. However, the output of the NAnt build is significantly different from what is generated by VS when we push F5.
We would like to be able to overrid...
I need to switch my CodeProperty between read only and read / write. I can achive this with Edit points and ReplaceText so:
if(readOnly)
{
CodeFunction setter = codeProperty.Setter;
TextPoint start = setter.StartPoint;
TextPoint end = setter.EndPoint;
start.CreateEditPoint().ReplaceText(end, string.Empty, 0);
}
else
{
CodeFunction ...
A colleague and I are working on the same area of code using Visual Studio 2008 and TFS 2005 on the server.
When we both edit the same file concurrently and I check it in first, TFS does not recognise this when he either gets latest version or checks in, meaning his or my changes get overwritten without a painstaking manual merge.
This...
I have a DLL project for Visual Studio 2005 that has "XML documetation file" turned on.
Whenever I do an incremental build, during post-build event execution there is no XML documentation file in the output directory.
If I pause the build during post-build event (using sleep utility from GnuWin32 CoreUtils), I can see the file in the ou...
i have installed wamp server and vsphp and my development environment is Visual Studio 2008. I was easily able to debug java script by turning on script debugging in IE, however now i have a java script which calls a php script and processes it's output, i want to know how in visual studio can i do that, so that it can execute php code b...
Hi,
I consider an option to use Eclipse as an cross platform IDE for C++ code on Linux and Windows.
Is it possible to set Eclipse to compile code with Visual Studio C++
(don't think it's relevant but Eclipse project files will be created by cmake).
Is it possible to debug from Eclipse application compiled by VS C++ compiler?
Is it po...
I'm using Visual Studio 2008 (C++) and would like to produce a list of all classes that are defined in that project. Does anyone know tools that extract those easily?
A simple 'Find in files' will not be sufficient, of course.
Edit: The list of classes should be created automatically and the result should be a simple file of class name...
Problem: I have a large Visual C++ project that I'm trying to migrate to Visual Studio 2010. It's a huge mix of stuff from various sources and of various ages. I'm getting problems because something is including both winsock.h and winsock2.h.
Question: What tools and techniques are there for displaying the #include hierarchy for a Vis...
Suppose I have a model and a view that display this model properties.
public class UserModel
{
public string UserName { get; set; }
.................
}
somewhere in a view...
<%= Model.UserName %>
Now I rename one of the properties (say, UserName => FullUserName), VS will suggest to perform refactoring meaning project-wide ...
Is there a Visual Studio addon, or a method present already, that allows me to recursivly compare a project/solution/folder with what's in source control?
Note: Source control product agnostic (a.k.a VSS)
Update
The reason i assume is there is a source control agnostic solution is that Visual Studio supports Microsoft's MSSCCI API. ...
I have a 2008 Solution that is giving me all sorts of missing assembly reference errors when we try to build it with MSBuild. I brought up the solution in Visual Studio and at first I got the same compile errors. Lots of missing references, so I went to the projects in question and expanded the References group and saw the exclamation...
When creating a new extension for visual studio, there are two project options: "Visual Studio Integration Package" and "Visual Studio Add-in". What is the difference between the two project types and when would you use one over the other?
...
I've been playing around with GEdit's syntax highlighting. I love the way that Visual Studio highlight's user created types. I would like to do this for my user created types in C/C++ (eg. typedef's/classes). For example (in C):
typedef struct Node *pNode;
And an example in C++:
class BigNumber
{
// Class stuff here.
};
See t...
I'm looking for some advice for unit-testing in a manner that doesn't leave "test hooks" in place in production code.
Let's say I have a static class (VB.NET Module) named MethodLogger who has a "void WriteEntry(string Message)" method that is intended to write the calling method and a message to a log file on disk. The actual target o...
Every time I view a form or dialog in Visual Studio (2005) the Properties and Toolbox panes show up on the right side of my screen. That's good to have because they are useful for manipulating dialogs.
However once I switch back to source code these panes just get in the way... is there a way to get them to go away automatically?
...
Hi,
I have a Visual Studio 2008 project where some code files are generated with each build (a parser, integrated via MSBuild aka editing the *.csproj file).
VS does not know about the generated nature of these files (i.e. they are not the result of a "Custom Tool). So they "change" with every build, naturally. And VS2008 asks me after...
I'm using the SQLite.net provider and VS Entity Designer to design and code against a sqlite database. At present, a model sqlite database is checked in to the source tree.
However, this is binary which is inconvenient for use with a revision control system.
I'd like to check in a serialized version using sqlite's .dump, but am not sur...
I am playing with Nant and CSC. I notice that a debug version of my dll is 140k if compiled via CSC and nant build scripts. However if i build a debug version in the Visual Studio env, it is at 203k!? the smaller DLL DOES appear to work fine in the main program however. Any ideas?
...
My Question:
Is there a way to set up Visual Studio to use the Style of Ctrl+Tabbing so that it doesn't remember the order of tabs and just goes to the next tab or previous tab depending on the usage of the "Shift" key?
Maybe a registry setting (I think that there was something for this in TweakUI for Windows XP)? or a program setti...
I have a solution where I'm repeating various class names within three different projects (a WCF service project, a unit testing project and a BL project). Also partial classes have been used to spread these classes across multiple files.
The net result is that I've got 5 different file names that are repeated across three different pro...