visual-studio-2008

Getting started with Entity Framework in VS.NET 2008

Hi, What exactly do I need to get started with Entity Framework in VS.net 2008? I am downloading SP1 for vs.net 2008 as I type this, anything else I am missing? From what I understand I will have to create some XML and then use a .exe tool to spit out the code? ...

How do I stop Visual Studio from resizing my controls?

Visual Studio 2008 SP1 (although IIRC, the behavior was present in 2005 as well) keeps resizing a couple of grid controls (Janus.GridEx to be precise) I use. I can resize them back to normal, save, and compile just fine. When it does compile, these two controls will expand to ridiculous values. More Information: This problem is related...

How to force a MSTEST TestMethod to reset all singletons/statics before running?

I'm using MSTEST inside Visual Studio 2008. How can I have each unit test method in a certain test class act as if it were the first test to run so that all global state is reset before running each test? I do not want to explicitly clean up the world using TestInitialize, ClassInitialize, AssemblyInitialize, etc. For example: [TestClas...

Visual Studio 2005 vs 2008 - What are the benefits?

What are the benefits of upgrading from Visual Studio 2005 to 2008? Any thoughts on whether it's worth the jump, or is it better to wait for whatever's coming next? ...

Is it possible to download the VS2008 "Test Project" template?

For some reason, my visual studio 2008 installation doesn't have the "Create Test Project" template installed. I'm assuming I should be able to download it from somewhere on MSDN, but I cannot find it anywhere (Guess my Google-Fu is weak) Does anyone know where I can get the template to install it? Thanks EDIT: I've managed to get my ...

How do you run a console application in the Visual Studio output window, instead of opening a new command prompt?

I'm developing a simple console application in Visual Studio 2008 and want to run it in the output window inside Visual Studio 2008, instead of having a separate command prompt window come up. Is there a way to do this? ...

How do I stop Visual Studio Express SP1 install detecting old version that doesn't exist

I haven't installed Visual Studio before on my computer. However when I try to install Visual Studio 2008 Express SP1 I get an error message "Setup has detected that this computer does not meet the requirements to install this software. These requirements must be met before you can install Microsoft Visual C++ 2008 Express Edition with ...

Disable Visual Studio's validation of non-xml files that look like xml?

I have a bunch of Velocity template files in a Visual Studio 2008 project, the problem is that despite the fact that the extension is .vm instead of .xml or similar Visual Studio thinks that the HTML they contains must conform to XML naming standards and generates errors (not just warnings even) on each compilation. How do I tell Visual...

Hidden folder copied during unit test run on VS2008

I've found that when running a VS2008 unit test that a hidden .svn subversion folder is copied under the Out folder that the unit test creates. This is because I've labeled a Resources folder in my unit test as "Additional File and Folder to deploy." Anybody know if you can mark a folder (in this case the .svn folder) as an exclude? ...

Is the design view for aspx pages in Visual Studio useful?

I have never really found the design view in Visual Studio useful when developing aspx pages, and so I basically never use it. Am I missing something or is it just one of those features that isn't particularly useful? Do you use the design view? If so, how do you find it useful? If not, why not? ...

How do you enable Visual Basic.NET namespace by default?

I'm coming from C# background and in Visual Studio. The namespace is shown by default but not in Visual Basic. Is there an option to enable namespace to be shown in Visual Studio 2008? ...

Creating test run configurations in VS 2008

I am working with an n-tiered architecture in Visual Studio 2008 (Developer Edition), and I have run into an issue. We are running unit tests on every method of our services layer, and I am attempting to see the code coverage results, to ensure I'm hitting all the main paths through my methods. When I attempt to view the results, I am ...

How do I set a source control plug in default for Visual Studio 2008?

We recently installed Team Foundation Server 2008 and we are using it for both Visual Studio 2008 code and Visual FoxPro 9 code that we are still migrating to .Net. I had to install the TFS MSSCCI provider to get connectivity from the VFP9 IDE. That works fine, but Visual Studio now seems to get confused about which source control plug i...

Why do my toolbox items disappear in Visual Studio 2008?

I'm working on a solution that contains multiple projects targeting Windows Mobile 5 and standard Windows applications. Lately when opening up a form in designer the common UI controls (textbox, button, label, etc etc...) have vanished leaving only the controls defined within the project. Resetting the toolbox has no effect. A google ...

VS2008 Debugger Hang

I'm using Visual Studio 2008 Team System with SP1, and I've noticed an annoying tendency for the IDE to hang for several (10-15) seconds whenever I stop debugging an application. At first I thought this only happened with WPF apps, but I've observed the behavior in Windows Forms apps and ASP.NET sites as well. I've made a series of cha...

Visual Studio 2008 crashes horribly

Hi all, This has happened to me 3 times now, and I am wondering if anyone is having the same problem. I am running Visual Studio 2008 SP1, and hitting SQL Server 2005 developer edition. For testing, I use the Server Explorer to browse a database I have already created. For testing I will insert data by hand (right click table -> show...

How to change registration company name for Visual Studio 2008?

Is there a way to change name of company to which the Visual Studio 2008 is registered without reinstalling it? ...

JQuery: Visual studio, error CS1056: Unexpected character '$'

Trying to include ThickBox (from http://jquery.com/demo/thickbox/) in an ASP.NET application. Visual Studio is failing when I try to run the application with the error: js\ThickBox\jquery-1.2.6.min.js(11): error CS1056: Unexpected character '$' Using Visual Studio 2008 and jquery 1.2.6 ...

Can't install Visual Studio 2008 after having beta version

When trying to install Visual Studio 2008 I get the following message straight away: "You must uninstall all pre-release products in a specific order before you can continue with setup." And then it gived me this link on how to do that. I've been working on this problem for quite some time now, uninstalling the components a...

Refreshing LinQ2SQL Model in Designer without losing all Properties

Hi, so I'm using LinQ2SQL quite heavily in my current application, and although I have most stuff in partial classes, some things have to be adjusted in the VS Designer (like Accessors for fields I wrap). Then, sometimes I like to name Fields differently in the Model than they do in the DB. So, my problem now is. When going back to cha...