visual-studio

vs2003: problem with building solution.

when I try to build the solution with many projects, i get the following error: Error: The dependency 'myproject1.myproject2, Version=1.0.3799.25569, Culture=neutral' in project 'myproject3.myproject4' cannot be copied to the run directory because it would conflict with dependency 'myproject1.myproject2, Version=1.0.3841.15015, Culture=...

Visual Studio 2008 with SQL Server 2005 Developer Edition

I am trying to add a database to the App_Data location in an ASP.NET MVC 2 application in Visual Studio 2008 (VS). I have SQL Server 2005 Developer Edition installed on the local machine. However when adding the database VS complains that SQL Server 2005 Express is required. I configured VS to use the local server instance (MSSQLSERVER)...

Remote Debugging in Visual Studio can't find the symbols?

I've been scouring the net trying to find an answer to this question, but all other suggestions don't work. I have a C# .net 3.5 dll that is an add-in to another program. The program calls the dll when the user presses a certain button. My tool is having an error that is related to the specific setup of the users computer (unrepeatable ...

how to rename a project without killing solution

When I rename a project within a solution, and then try and build that project, I get the error: "The project file "xyz.csproj" was not found. Where xyz is the old project file name! The annoying thing is that I can search my project & solution for the old project file name, and the search will come up with nothing, and when I click on...

Strange enable_if behaviour using nested classes (MSVC compiler bug or feature?)

After quite some time debugging my code, I tracked down the reason for my problems to some unexpected template specialization results using enable_if: The following code fails the assertion in DoTest() in Visual Studio 2010 (and 2008), while it doesn't in g++ 3.4.5. However, when i remove the template from SomeClass or move *my_conditio...

How to access VS 2010 TFS over the internet from remote office

We have a team member in a different country, and are trying to figure out the most viable option to provide them with access to our Team Foundation Server for Visual Studio 2010. ...

how to deploy a project on client's computer?

I have a built a .net application using visual studio. This application is coded in C# and uses SQLSERVER for database purposes(storage,retrieval and manipulation of data). Please tell me how to give this application to client? Do I have to install .net framework on client's computer..? Do I need to install complete sqlserver on client...

What's the limit to project size Visual Studio IDE can handle?

Visual Studio stores "projects" in XML (.vcproj files). In my experience as more and more files are added to the project and as more and more projects are added to a solution opening a solution in IDE takes longer and longer. Is there a limit to the number of files or to project tree complexity or to some other characteristic of Visual...

What parameters is Visual Studio running msdeploy with when executing "Build Deployment Package"?

I would like to execute msdeploy from a powershell script to create a deployment package, but i can't find out what parameters Visual studio is actually calling msdeploy with. ...

Xcode equivalent for Visual Studio environment variables

Hello, I use premake to build solutions for Visual Studio and Xcode. Does anybody knows the equivalent environment variables in Xcode for Visual Studio $(ConfigurationName) and $(SolutionName)? Thank you ...

Problem referencing C++ /clr project from C#

Hi. I have compiled a native C++ project using the /CLR switch ("gloox", an XMPP library). The build succeeded and I'm able to reference it from a C# project (ie it shows up in the References folder). The C++ project exposes some classes under the namespace 'gloox'. I can also see the gloox {} namespace in the object browser, along wit...

how to use data list in visual studio?

how to use data list in visual studio? ...

Put a Mark in aspCode

Hi every one, This is a practical question, i wonder if its possible to put a mark in code to quickly refind the place. So i'm working in the middle zone of a big ASP page (so debug dot isnt possible) and i have to get any information at the top of the page.. It would be cool to put a mark to come back quicly at the first place.. Than...

How to move TFS commands in Visual Studio from right-click menu into sub menu?

Since we have installed TFS as our source code control system, my right-click menu in Visual Studio 2010 is ridiculously long! I know how to customize the context menus, but having to do it in all those places is painstaking... is there any addin that will automatically move all the TFS-related items into a sub-menu. I miss how Ankh ...

Viewing return code in debugger when the value is not assigned to a variable

In case of the following code: da.Fill(ds) Is it possible to view the return code from the Fill method in the Visual Studio debugger? If the following is the case: rc = da.Fill(ds) then it's not a problem, as the variable rc gets the value assigned, but there are cases when I can't modify the code and re-build. Thank you. Todd ...

Why does VS2010 remove my references?

In a small console application I'm writing to test something I need to add a reference to one of the DLLs built from a build of another solution. The Add References dialog works perfectly; after I browse to the DLL on disk and add it I see it with a green tick and it appears in the list of references in Solution Explorer. All fine so far...

What is the shortest way to reference the application path in a VS project?

I want to use an xml file in a windows forms application. I added a new xml file to my project. When I reference the file like this xmlDataDoc.DataSet.ReadXml("~\TestLog.xml"); how do i just tell it to look at the xml file that is part of the project? The line I put above doesn't work. ...

Updating SHDocVw.InternetExplorer DOM to handle dynamically created form controls

I have a program that I'm working on that fills out a webform on a page I don't control. It works pretty good for the most part, except for one part. They have a button that adds rows to the form as needed using javascript. I can set the values on the original row (web.Document.All("p[0].quantity").value = Qty), and I can make it .Cli...

Visual Studio 2010 - How to optimize

I am using the 2010 version of Visual Studio, but am having many problems with delays - my computer has a good configuration of RAM, and processor - especially when saving files. Currently I am carrying a medium-sized project, only one open file (ASP.NET page) using a single suite of components from third party, the Telerik. And yet, in...

Snippets Question - Escaping the $ character

I find myself doing a ton of jquery these days so I started to abstract out some of the common things I do into snippets. I look forward to sharing these with the community, but i'm running into an issue right now. The literals in snippets are defined by adding dollar signs ($) around the name of the literal to delimite where the value...