Hi,
In VS2010 and .NET 4.0, I see the shortcuts in intellisense for adding contracts to my code (Eg cr, crr) but when I tab to add these in, the code (Such as Contract.Requires) does not have the valid assembly so there is no intellisense (The type can't be found basically).
How exactly do I get up and running with code contracts?
ED...
Hi,
I cannot compile this code under SUA:
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void * thread_function(void *arg) {
printf("thread_function started. Arg was %s\n", (char *)arg);
// pause for 3 seconds
sleep(3);
// exit and return a message to another thread
// that may ...
Should this bar on the HTML designer show the tag name? It sometimes does!
Here's an image of what I referring to.
I thought for sure it must be a bug but considering that I heard that MS was rewriting the editor (designer too?) I am starting to question whether I know how to use it!
Note the "TD" tooltip on the bottom right. Shouldn...
I have developed an application in vb.net. I use a dll that I build as part of a different project in my solution. For some reason I don't get the full functionality of my application with the dll built as a "release" version, but it does work if the dll is built as a "debug" version (that's a whole different problem). I don't have a ...
Anyone knows any free Visual Studio add-in that would find and/or delete dead (unused) code? I saw such possibility in MZ-Tools, but it's a little expensive as for private use ;)
...
Hi,
I have already gone through some of the posts in many websites regarding page_load being called twice but my problem is little bit different from those.
My problem is with the landing page of my web application.
Initially in my website page_load for the landing page was getting called twice every time when it is loaded. Since my a...
I have created a setup package using Visual Studio and in normal way for adding shortcut to programs menu and desktop, however in Vista , the application shortcut does not appear in the program menu or in the desktop. It works fine in XP.
Thanks in advance.
...
I currently work with both Visual Studio, Eclipse/Rad, and Vim heavily. Visual Studio and Eclipse don't present any problems because they're the same paradigm. However vim (which I use for my *nix work) muddles the issue because it's modal. I actually like the modal nature of vim and find myself trying to type esc k k in Visual Studio...
How can I read text of a current line (where cursor is situated) from Macros?
I'm going to use such a function:
Public Sub AddTextToChangeLogFile()
Dim textOnACurrentLine As ???
textOnACurrentLine = ???
If textOnACurrentLine.Text <> String.Empty Then
Dim sw As New StreamWriter("C:\###\Changes.txt", True)
s...
This may not be the kind of question one should ask on StackOverflow, but here's a frustration that I've been trying to find a work-around for.
When using the form designer, suppose the entire form does not fit in the space allotted to the form designer, and I have a control say, down near the bottom of the form.
If I try to re-size th...
I have a Visual studio 2008 solution, with 2 projects. A DLL, A, and a Web application, B.
B has a project reference to A, and A.dll and A.pdb are being copied to B's bin/ directory.
Everything is set to compile in debug mode.
I can run the cassini webserver and debug web application B fine, but when I come to call a method in A.dll,...
I've made a simple OpenCV application with Visual Studio 2008 and I've built it in both release mode and debug mode.It works fine from my computer but when I try to run it from another computer which doesn't have OpenCV installed or has another version of Visual Studio with OpenCV it doesn't work.
How can I make the app work from a comp...
I am trying to prevent VS from breaking on JS errors.
I have the following settings:
In IE, under Tools->Internet Settings->Advanced (tab)->Browsing
Disable script debugging (Internet Explorer) is checked.
Disable script debugging (Other) is checked.
In VS, under Debug->Exceptions->Common Language Runtime Exceptions
JScript Exception...
1) If I set HorizontalAlign property inside GridView’s ItemStyle tag:
<ItemStyle HorizontalAlign="Left" />
then Visual Studion will render this property as <td align=”center”>
a) Is there a way to tell Visual Studio to instead render HorizonatalAlign property as a style rule :
<td style=”text-align:center;” ... >
thanx
...
As I'm starting to put more tracing in my code, i'm realizing it adds a lot of clutter. I know Visual Studio allows you to hide and reveal code, however, i'd like to be able group code into "tracing" code and then hide it and reveal at will as i'm reading the code. I suppose it could do this either per file or per class or per function.
...
This is a bit of an odd situation. Here's what's happening.
So, we have a VS2008 project which outputs to a number of files under perforce control. These files have the always writable flag set.
I compile the project in VS, which gives me up to date binaries on my machine. If I then revert those binaries via perforce, I have the versio...
Hi - I am having a problem setting up the following in Visual Studio 2008: a parent project which includes the entrypoint Main() method class and which declares an interface, and a child project which has classes that implement the interface declared in the parent project.
I have specified that Parent's Output type is a Console applicat...
Anyone know if you can simply publish to a url? I don't know what the heck the new publish to web is but I don't like it. I want to be able to just publish to a url like I was able to in VS 2008 and down. I don't have a service endpoint to give it so not sure how to do this.
...
I'm working on using Find/Replace to change a bunch of labels to DataBound text.
Basically I'm trying to convert something like
<asp:Label ID="lbl213" runat="server" />
to
<%# Eval("_213")%>
Here's my regex
<asp:Label ID="lbl{\d*}" runat="server" />
Here's my replace
<%# Eval("_\1")%>
Here's my Error
Unknown argumen...
When doing "Console" apps in Java with Eclipse, I see the output being put in a text box on the IDE itself, instead of having a Console popping up like in Visual Studio. This comes in handy, as even after the program has exited, I can still make good use of the text that was written in it, as it doesn't get erased until I run it again....