My co-developers and I recently upgraded machines to Windows 7 Ultimate 64 bit. Some of us are seeing a new error we used to never see when building solutions in Visual Studio (happens in both 2008 and 2010):
Error generating Win32 resource: The process cannot access the file because it is being used by another process.
It alwa...
We are beginning to use Visual Studio Database Edition 2010 (VSTSDB) for our continuous integration. In short I have our nightly build creating the Deploy SQL and then running the script on a SQL Server. I will eventually have integration unit tests run on the newly created database(s) after the build is dropped and database is created.
...
I need to connect to a database in Sqlite so i downloaded and installed System.Data.SQLite and with the designer dragged all my tables.
The designer created a .cs file with
public class Entities : ObjectContext
and 3 constructors:
1st
public Entities() : base("name=Entities", "Entities")
this one load the connection string from A...
I have a very simple code (simplified from the original code - so I know it's not a very clever code) that when I compile in Visual Studio 2010 with Code Analysis gives me warning CA1062: Validate arguments of public methods.
public class Foo
{
protected static void Bar(out int[] x)
{
x = new int[1];
for (int i =...
I have a Workflow Foundation 4 activity that has a InvokeMethod that is configured to call the Add method on an instance of type IList(Of String), providing a parameter of type String.
Running it gives me this error though:
'IList`1' does not have a public instance method named 'Add' matching the parameter
types, generic type arguments...
As I am working with the new database projects in VS2010, and as I am learning LINQ to SQL, I am curious as to the best way to link the two groups of information so that when I update one, the other updates along with it.
From my research here at SO, as well as in Google, it appears the general rule of thumb is: "Build the database, and...
I have an older laptop that I won't get around to replacing for another month or two. It has 1GB of memory so I'm trying to squeeze applications as much as possible.
In Visual Studio 2010, it has apparently loaded some extensions related to Team Foundation Server, since I have menu items and dialog choices for it.
Questions:
Would I ...
I have two tables parent and child.
If I make a foreign key on child that points to the primary key of parent, and then make an entity diagram, the relationship is shown correctly.
If I make the foreign key point to a different column, the relationship is not shown.
I have tried adding indexes to the column, but it does not have an ef...
I have a Microsoft Access 2010 database(*). Now, using Visual Studio 2010, I want to create a WPF application and add the database as a data source. The app will have a window with a frame that provides navigation through pages. No problem so far. But:
-What is the right way to set up the database in this scenario? Tables only? Or must ...
Visual Studio 2010 adds a zoom setting on the bottom left of the text editor (to the left of the horizontal scroll bar) and also adopts the control + mouse scroll idiom for zooming in and out.
The former is fine, but I dislike the latter as I am occasionally still holding control when I start scrolling my source code (which results in t...
Hi,
I've just upgrade my web application from vs2008 to vs2010, I create a new web app from vs2010, then copy across all the existing files from vs2008, then I add a new class file to App_Code folder, the intellisense is not showing up for everything and class etc is also not color in the right color. However, when I open the existing c...
I am having a problem using VS2010 and framework version 4 with bitmap effects. If I have the code below and run it in a WPF application using the .NET Framework 4 Client Profile, the bitmap effect does not appear. If I set the framework version to .NET Framework 3.5 Client Profile (and change no code), it runs as expected. At first, I t...
Hi everyone,
We need to install ASP.NET MVC on several developers machines with VS2010. Unfortunately the only files I can find in the Microsoft Download Center are labelled as ASP.NET MVC installer for VS2008.
Can someone please point me in the direction of installer for VS2010, or can the VS2008 one also work for VS2010?
Thanks,
Dan...
MY VS2010 crashes dozens of times a day. Compare that to 2008 and 2005 which were rock solid.
Is 2010 known to be susceptible to crashing? Or could it be my environment? I'm using x64 as a dev box for the first time. The only plugin I has so far is Ankh.
It crashes when doing different things. One I've noticed so far that always h...
The right-click (context) menu in Visual Studio 2010 editor is not tall enough and makes me scroll up/down looking for menu options. Is there a way to make it taller?
...
I've been following two tutorials on some Visual C++ fundamentals but they all seem to lack the information on how I get the intellisense going in Visual Studio 2010.
The following code snippet is what I have
#using<mscorlib.dll>
#using<System.Windows.Forms.dll>
using namespace System::Windows::Forms;
int main()
{
MessageBox::Sho...
After I upgraded my projects to .NET 4.0 (With VS2010) I realized than they run slower than they were in .NET 2.0 (VS2008). So i decided to benchmark a simple console application in both VS2008 & VS2010 with various Target Frameworks:
using System;
using System.Diagnostics;
using System.Reflection;
namespace RuntimePerfTest
{
class...
Hello.
Some of the old projects in our company are left to be built with VS2005 in autobuild system (making them build correctly in 2010 cost time). Is it any addins for VS2010 that will allow to open VS2005 project and edit it's files without converting project file itself to VS2010 format (converting will kill autobuild)? Of course i ...
I've just started using a VS2010 database project to manage the release of an update to an existing database.
I want the deployment option to generate a script that will contain the commands to change my existing database rather than create an entirely new one.
E.g I have 10 existing tables - one of which I drop in the new version and ...
Since I have upgraded from VS2008 to VS2010, I've been having an increasingly infuriating battle with the Intellisense.
For example, when specifying CSS styles, when I press Enter to start an new line, Intellisense (appropriately) lists available Styles to me. And if I select color and then type ':', it presents a list of color presets ...