visual-studio-2010

PowerBuilder and Visual Studio files in same StarTeam project?

We have a system that is largely written in PowerBuilder 11.5 and we are using a single StarTeam project to hold the source code. Now we are wanting to add some related websites developed in ASP.NET with Visual Studio 2010 to source control as well. We would like them to be able to share the same set of Change Requests as the PowerBuil...

Add image files to VS2010 project

I need to load some image files in my application, and I want to just build them into the application instead of having the user point to their path. So I think I need a resource file. But I'm having a little trouble figuring out how to create a resource file and add it to my application. ...

How to add a new project type to IronPython Studio?

I'm trying to follow this tutorial, but it only describes how to add a new project type based on C#. I want to create a new project (sub)type underneath IronPython. I've downloaded the IronPython source code, and I think I've found the place where I need to add my new template, but I don't know how to "run" it. VS tells me I can't run t...

How can I paste curly quotes into my IDE as straight quotes?

How can I paste curly quotes into my IDE as straight quotes? I will often paste code into Visual Studio from PDF files. Then I have to change all the quotation marks to "straight" ones. Ive tried the programs that strip formatting but they don't work. Below is a pic of what I mean. Thanks ...

Conditional operator correct behaviour in VS2010?

I'm wondering whether this bit of code is exhibiting the correct C++ behaviour? class Foo { public: Foo(std::string name) : m_name(name) {} Foo(const Foo& other) { std::cout << "in copy constructor:" << other.GetName() << std::endl; m_name = other.GetName(); } std::string GetName() const { return m_nam...

Is there a way in VS 2010 to add a reference to an assembly that is only in your GAC?

Right clicking on project and clicking "Add Reference..." does not provide a way to do this. The .Net tab doesn't look in the GAC and if you browse to C:\windows\assembly you are presented with the actual directory structure of the GAC. Thanks! ...

Can't Add Service Reference in VS 2010 to a net.tcp endpoint

I've got a service running (well, it doesn't crash), but when I try to add a Service Reference to it, I keep getting: Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. If the service is defined in the current...

Visual Studio and TortoiseHg: folder not visible in VS

I created a C# project and added it to source control (mercurial). I can edit files in VS, commit it and push it using TortoiseHg. It goes to the server. When some one pulls they get the files. In my visual studio I added a folder and a file inside that folder. I used TortoiseHg and it saw the new file in the new folder. I committed it ...

Team Build 2010 software requirements for VS 2008 clients

One of our TFS 2010 requirements is to support software projects that still use Visual Studio Team System 2008 for development. My question is whether a Build Server based on Team Build 2010 can compile 2008 code by itself. I mean connecting to TFS 2010 using Visual Studio Team Suite 2008, which means we are planning to install the Forwa...

Debugging Silverlight applications with IE9 beta

I spent some time debugging a SL3 application with VS 2010 in IE9 beta today and noticed a few quirks. Sometimes when launching the Silverlight app in VS it fails to load in the browser, but refreshing with F5 tends to fix the problem. Also, there are sporadic scripting errors that pop up a debug dialog - these also seem to be fixed by...

How to correctly paste HTML into C# code with Visual Studio or Resharper (or any other tool!) ?

Is there any way to make a "safe" paste into Visual Studio (C#) of HTML code? If I try to paste something like <div class="user-info"><div class="user-action-time">answered <span title="2010-09-16 02:23:16Z" class="relativetime">21 mins ago</span> into my code, C# will cry. Using the @ operator doesn't help us, either. Is it possible...

Visual Studio 2010: Search within Team Explorer query results without modifying the query

Hi all, Imagine you have a query that looks like this. and it returns all the items whose title contains the string "fixed". However, I'd like to refilter the results further - for example, searching for another string in the title (ex. ListBox). Is it possible to do that without modifying editing the query and adding another And cla...

Entity Designer missing

As the title says, somehow the entity designer disappeared from my installation of Visual Studio 2010. When trying to open an .edmx file, it only opens it in the XML editor. When i choose "Open With...", the Entity designer doesn't show up in the list. It has worked before, and i don't know of anything i could have done to remove it from...

VS 2010: automatic declaration of controls in code-behind (*.designer.cs) files, when those are in a separate project - how?

In a simple web application project, when adding new controls to an *.aspx file, Visual Studio generates a corresponding declaration of that same control in the *.designer.cs file. This works well (at least most of the time, as some might know) ;-) Now, we have a more complex setup where we've decided to move all code-behind files to a ...

How to add an existing sub-folder (with/without child files/folders) to the solution?

The folder resides within my solution physical location but I can not find a command to add existing folder to the project from right-clicking. All I can see is "Add existing files". Trying to create the folder is denied since it already exists! I tried to move the folder out of the solution folder on the hard disk, and add it again. Th...

Visual Studio 2010 managed c++ targets .NET 2.0 PROBLEM

For someone who's been down this road, please share your breadcrumbs. I have old VS2005 solution. Most of the parts are c# but I have one c++ managed project. Dev machine: Windows XP. Target framework version: 2.0 I moved the project to the Windows 7 64 BIT, VS 2010, did the project conversion. First thing I noticed were build erro...

Why is Telerik JustCode so confused?

I have been using JustCode(latest ver) for about 2 months now, and have started just turning it off most of the time. The final straw was today when I wasted about an hour trying to find out why I was getting an error(along the lines of no overload with those parameters) when I was sure the code was correct. Finally I turned JC off and t...

SparkViewEngine does it work with asp.net mvc Vs2010.

Hello, I am trying to use new spark view engine . i have done all necessery configuration as mentioned here http://dotnetslackers.com/articles/aspnet/Installing-the-Spark-View-Engine-into-ASP-NET-MVC-2-Preview-2.aspx and Have below Erorr message on run time..what am i missing? AS in understand Spark view engine uses system.web 2.0 ...

How can i make that the console, with the output, will not disapear after the program ends in VS 2010 express C++

Hi, How can i make that the console, with the output, will not disapear after the program ends in VS 2010 express C++? i write in c and not in c++, soo i need a function and include path to library. Thanks ...

All of my C# 2010 projects stopped loading today

Today, I tried to open one of my Visual Studio 2010 Express Edition projects and it failed to open. I thought that maybe the the file has been corrupted or something, but it turns out that all of my projects are doing this, including the ones that I haven't touched for months! This is the error message I'm getting: D:\CSharp\Sandbox\Mus...