visual-studio-2010

c++ winsock code does not work in its original solution/project in visual studio 2010

Hey... I am not 100% sure if I shall become insane... As mentioned in many many other posts, I am writing this Connection class which stats up winsock, creates some sockets, binds them and let´s you send and receive some data... I made this within my Server-project... But , everytime i wanted to test the connection part of the server ...

Would you recommend Eclipse over VS 2010 for C# Development?

I might have to address some development improvement projects in C# in the near term. Presently, we have Visual Studio 2010 licenses available, but you are free to use whatever tool you like. As I'm pretty familiar with Eclipse (and I like Mylyn), I'd like to know if someone here had experience with both environments and can share some ...

Visual C# app.config file for a referenced assembly

We have a Visual Studio 2010 solution that contains several C# projects in accordance with Jeffery Palermo's Onion Architecture pattern (http://jeffreypalermo.com/blog/the-onion-architecture-part-1/). We have a UI project that is an ASP.Net MVC project, and we have a C# Class Library project called Infrastructure that is referenced by t...

abort() is not __declspec(noreturn) in VS2010

In my copy of VS2010, stdlib.h contains (lines 353-355) _CRTIMP __declspec(noreturn) void __cdecl exit(_In_ int _Code); _CRTIMP __declspec(noreturn) void __cdecl _exit(_In_ int _Code); _CRTIMP void __cdecl abort(void); I find it strange that there's no noreturn annotation on abort(). Does anyone know a reason for this? Is it a bug? ...

How to prevent Visual Studio from adding generated files to source control

Here's my specific scenario: Using VS2010, Pex and TFS2008, generated moles files are getting automatically added to source-control (TFS). Pex adds a "project_name.moles" file to your test project and then autogenerates 3 files at build time: project_name.Designer.cs, project_name.Moles.dll, and project_name.Moles.xml. I want to keep th...

How do I create a custom build rule for Visual Studio 2010?

I'd like to create a custom build rule in VS2010 that will run on project items that have a certain file extension. They need to run a command line tool as follows: "FullPathToTool.exe" "FullPathToInputFile" The tool then generates a c++ file that I'd like to be compiled along with other C++ files already in the project. I've found th...

How can i duplicate a CSS style?

On the .master file i have... <div id="menu"> <ul> <li class="1"><a href="#">One</a></li> <li><a href="#">Two</a></li> </ul> </div> <div id="Div1"> <ul> <li class="1"><a href="#">Three</a></li> <li><a href="#">Four</a></li> </ul> </div> and on the css file i have #menu { width: 940px...

Is it possible to have a vs2010 vsix check for updates locally?

I'm writing a project structure and code analysis extension for visual studio at work. The project can not be published to the Visual Studio Extensions Gallery. Is there any way to manage updates and deployment built in to visual studio so that a team can use the extension and get the update prompts? ...

referencing a source controlled project (using TFS) in another source controlled project.

i have three VS solutions : Human-resource Solution Payroll Solution And a Main web site (Shell); Human-resource is a solution which is also a team project. Payroll is the same, and so do the Main web Site(Shell). what i need is to reference the (Shell) in Human-resource solution and also in Payroll. is that possible in TFS...

Can't add vb class to c# project in vs 2010

When I add my vb classes to my C# project in vs 2008 they are readily available to be used in my c# classes. But for some reason 2010 can't see them. I could be missing something simple but i couldn't make it work in the past hour. Any ideas? ...

c++ free Profiler

i need a free profiler that works in win7 and compabitly with vs2010 thanks ...

SDL C++ Application not doing anything when built using Visual Studio 2010

Hi, I've just started using C++ again after using solely VB for a year and I wanted to try my hand at cross platform development. So I started learning to use SDL (which is very very easy thankfully) to create simple graphics driven games like Pong and Tetris. I am compiling the code with Microsoft VisualStudio 2010 Enterprise edition, a...

Destructor not called while debugging in VS 2010

Hello, I have a C# project in which managed C++ class is used. This managed C++ class is wrapping an unmanaged C++ code. I have code block like this; if (true) { ManagedFoo foo = new ManagedFoo(); } //GC.Collect(); // I also tried with this one but result is same I have placed a simple output string t...

Hiding folder structure for a view in SharePoint 2010 list definition

There's a setting on the "Edit View" page in SharePoint 2010 that allows you to show all items in a list, ignoring folder structure. The setting is under Folders > Folders or Flat > Show all items without folders. My question is: Is there any way to enable this setting via an XML list definition created in Visual Studio 2010? Is there...

How to get VS ASP.NET unit testing to work?

I'm trying to write a few test for an aspx page that handles posted xml. The project runs fine on the visual studio's web development server (WebDev.WebServer40) but when I try to run a basic (empty) test like the one bellow, the test run results show me this error: The host type 'ASP.NET' cannot be loaded for the following reason: The ...

Saving files to a VPN in Visual Studio 2010 very slow

I'm connecting to a VPN so I can work at home, but when I open small ASPX files and make minor changes and save them, it's incredibly slow. Also even doing simple things like clicking a different line in the file to move the cursor is lagged noticeably. Is this a known issue, or is this as I 99% suspect just down to network connection....

FTP to FTPS proxy

Visual Studio 2010 allows to publish web projects via FTP. Great feature but due to security reasons FTP is disabled at the target site (FTPS is available). As far as I know VS2010 does not support FTPS ;( Is there any plugin for VS2010 that implements FTPS support? Or, maybe, a simple proxy for installation on the local PC that translat...

Build errors in VS2010 when a markup file is open

Our solution has several projects(like over 100), most of which work fine. However anytime a markup file from the "main" project(which the rest of them build into) is open and we attempt to build or debug we get the following: Error 18 Value of type 'System.Collections.Generic.List(Of IInterface)' cannot be converted to 'Syste...

VS 2010 Custom Private Extension

I have written a custom Visual Studio 2010 extension that helps developers at the company I work with with some of our development standards. Obviously, this is specific to this company and I would not want to upload it to the public gallery. My question is, how can I have VS detect updates for it? Everything I saw said to upload it t...

How do I force Visual Studio to stop building when it hits the first error?

UPDATE Exact duplicate of http://stackoverflow.com/questions/3041982/vs2010-how-to-automatically-stop-compile-on-first-compile-error Basically when it's compiling I want it to immediately stop when it encounters the first error. What it currently odes is tries to build all the rest of the projects which in turn fail. Anyone know how to...