visual-studio

Super long Visual Studio pauses connected to TFS

Ever since I connected to TFS, Visual Studio has started pausing for very long periods of time (30-60 seconds), even when doing things that probably shouldn't be hitting the server. It eventually comes back, but it's very disruptive. The server is not local, but I'm told that it's not really doing much, nor does it have a lot of traffic....

LightSwitch beta 1: "CreateRuntimeExtensionAssembliesManifest" task failed unexpectedly

Using LightSwitch Beta 1, every time I build my project I get this error on the ServerGenerated project: The "CreateRuntimeExtensionAssembliesManifest" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.LightSwitch.BuildTasks.Extensions.CreateRuntimeExtensionAssemb...

gcc compiled code on visual studio

Hi, Assume I have source code for a lib/tool that works on gcc compiler. Can I use the same code and compile it in visual studio. will that be possible at all? If it is possible, how do I do it? ...

How to implement clickonce using Apache on windows

I am trying out click-once on my local machine using Apache 2.2. I have added following to httpd.conf AddType application/x-ms-application .application AddType application/manifest .manifest AddType application/octet-stream .deploy AddType application/octet-stream .msp AddType application/octet-stream .msu. I have given the publishin...

Why visual studio recognizes __asm {} but can't recognize assembly code?

We can use stuff like this in visual studio: __asm { mov x1,offset thunk_begin; mov x2,offset thunk_end; } But as quoted from here: Since Visual Studio does not recognize assembly code, Visual Studio will have to be told what program to call to compile the assembly code. I'm really confused. ...

Why is the modifier set to Friend in Winforms?

When adding a new control to the designer in Winforms, the modifier on the control is set to Friend, but the default modifier is Private (right clicking the property and resetting the modifier). Does anyone know why? Is there a setting to set the modifier to default (Private)? ...

developer specific app.config/web.config files in Visual Studio

Hi, we have several .net projects where we store certain settings in config files. Now each developer will have their own config files that differ a little (different connection strings to connect to local db, different wcf endpoints etc.) At the moment we tend to check out app/web.config files and modify them to suit our needs. This le...

How to force Visual Studio to sort files in Solution Explorer using culture-invariant sort

Hello, VS uses culture-variant sort for sorting files in the Solution Explorer -> in Czech, the 'Ch' digram is sorted between 'h' and 'i', and this behavior confuses me (I'd like to have my 'checkUser.aspx' files sorted next to 'createUser.aspx'). Is there any way how to achieve this, or VS just gets it's configuration from OS? ...

Nightly Code Metrics in Visual Studio 2010

Is it possible to set up an a process that runs over night (every night) to run Visual Studios Code metrics Analysis? ...

Finding and using hidden properties(such as DisplayRectangle)

In many code examples I have found the DisplayRectangle property of a Control object being used. However this property does not appear in the intellisense popup, neither does it get any syntax highlighting, but it does compile and work as expected. Should I use this kind of Property? How can I find out about more of them, can they be a...

Show a custom popup if someone doesn't have the required .NET-framework to run an application

I built an application for version 4 of the framework. When I try to run it it says: In order to run the application, you have to install the following version of the .NET-framework first: v4.0 [...] That already isn't too bad but it would be great to display a custom message, maybe even with a link to the latest version of the fra...

File (or assembly) can't be found after changing project's .NET target-framework from 4.0 to 3.5

I want to change my C# project, which is based on the .NET 4.0 to 3.5. So I changed the project's target-framework to 3.5. After re-opening and trying to compile the project I get the error: The file or assembly "System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" or one of its dependencies couldn't be...

DLL Inclusion in Multiple Developers Project with Visual Studio

Hi! I'm using Microsoft Visual Studio 2008 for my solution. We are a couple of developers on the same project and we are using SVN. My Question is: What is a good way of including external dlls referenced from a project? And if the dll is used accross many projects in the solution, do you still put the DLL in each one of the project? T...

Why does Visual Studio Premium 2010 not show all of the available project templates?

I'm trying to create an ASP.NET Web Application, but this is all I see: I have confirmed that I have the full Visual Studio installed, not just Visual C#. Why can't I see ASP.NET Web Application in the "new project" list? ...

Splitting up a .NET solution/Git repo for multiple apps

I currently have a single solution that contains both the one application developed so far and projects for all of the homegrown libraries. This entire solution is also kept in a single Git repo. I am now going to be developing a second application that will make use of those same libraries. That application will have different releas...

Do I need visual studio license?

Hello there, I am a novice freelancer providing .NET solutions. Currently I have a Student version of Visual Studio that I am working. But, If I want to deliver solutions to the clients, do I need to have buy the VS license? For instance, I got a requirement from a client (does'nt have VS license) to build a web application in godaddy....

Old assemblies don't work in windows 7 64 bit with visual studio 2008 professional

Hi all I just installed visual studio 2008 professional on windows 7 64 bit i am having a problem. I added Nfop as a reference and it was not recognized( yo know the yellow mark on it) then i tried some old assemblies of mine( created on visual studio 2008 but on windows XP) and there was the same problem. How do i solve this? Thanks. ...

performance of visual studio vs gnu C++ compiler

I calculated time elapsed in my function in VS and g++. I see a huge performance difference. I use unix time command to calculate time elapsed from my g++ compiled executable. I use clock function in main() to calculate time elapsed in VS. g++ is giving ~2 seconds whereas VS is giving 19 seconds which is a huge difference. Can this be ex...

SSRS 2008 R2 - cannot logon to localhost/reports

When attempting to deploy a SSRS 2008 R2 Report to my localhost/ReportServer, or trying to login to localhost/reportserver (via web browser), I am not able to get any further than a security error message. When trying to access the report server via a web browser, I'm prompted to enter my login credentials. Even though I am the admin o...

asp.net expandable image

I have an image which is too big so by default I want it to be hidden and instead, display something like a "+" sign on the page. toggle that sign will show/hide the image. Which component in asp.net can achieve this? I did not find anything in the VS 2010 Toolbox. ...