visual-studio

Visual studio project properties tab "web" missing

Hello! I have recently started having a strange problem with visual studio 2008 sp1: in the properties of my web projects I can't see the Web tab - I get the following error: Unable to create the designer. File is already opened in an incompatible editor. Or in the case of ASP.NET MVC: An error occurred trying to load the pa...

Is there a way to get programmatic access to the columns of a ActiveReports detail section?

Hello, I have a report in Data Dynamics ActiveReports for .NET. In this report I am programmatically setting the ColumnCount property of the detail section to X. The detail section has one databound textbox. The ColumnDirection property of the detail section is set to AcrossDown and the and then the data binding mechanism automa...

Hotkeys no longer work in Visual C# 2010 Express

Suddenly none of hotkeys in C# Express work (like F5, F6 etc.). I don't know what I've done, but no doubt its something stupid. Does anyone know how to fixed this? I have tried the Keyboard settings in Options, but it won;t even let me add hotkeys for some reason, even once I've removed the old ones. So re-adding them does not work. ...

Equivalent for TypeConverters for tags within property element tags?

Scenario: I'm trying to build my DataContext object tree for use as design time data. Great, awesome. Issue: I have a few types, some I control and some (such as DataRowView) that I don't, which cannot be simply new-ed up. I need some way to create instances of these types for use in my models. What I'd love is an equivalent of t...

Clickonce Deployment server asks for credentials every time I Publish from Visual Studio

I would like to set it up so that my domain account is allowed to publish a clickonce app without having to provide domain/admin (or local/admin) credentials. I had this set up once before but do not recall how or where I did this. ...

How do you add folder level documentation to C# assemblies?

Me: I'm a relative new-comer to the .NET platform. Problem In Java, you can add package level documentation to your project by creating a package-info.java or package.html file and storing in the package folder. How do I add equivalent documentation to my project in C# using Visual Studio 2010? Background I like to write documentatio...

Is it possible to skip over an abitrary amount of a loop during debug?? Visual Studio

I am trying to find an error in my code. The problem is the error occurs in a loop. But the loop iterates about 500 times. Instead of clicking through the loop. Is it possible to skip over a certain amount of the loop ?? ...

Visual Studio 2008, MSBuild: "replacement" projects

Hello, My solution has a library project which needs a special environment to be built (lots of external libraries and tools)... but it is not vital to our application. We'd like to avoid installing these tools when not necessary (most of our developers work on other parts of code). We have created another project which has the same AP...

Suppress missing assembly error in Setup and Deployment Project (msi)

Hello, To install windows services on our client's site I'm using msi setup files created with Setup and Deoployment Project (VS2008). I'm using loose installation so assemblies are not packed but rather visible in the folder structure. The problem is that our solution contains projects specific to particular clients (in other words th...

How to solve timing problems in automated UI tests with C# and Visual Studio?

Question What is the standard approach to solve timing problems in automated UI tests? Concrete example I am using Visual Studio 2010 and Team Foundation Server 2010 to create automated UI tests and want to check whether my application has really stopped running: [TestMethod] public void MyTestMethod() { Assert.IsTrue(!IsMyAppRun...

interactive window to execute dos commands in visual studio

Hi, I know using External Tools options i can run a batch script or a cmd prompt. But here is what i need to do I want to be able to call a dos prompt inside visual studio, which must be interactive. That way i won't be outside visual studio and can run all my dos commands in it. Is it possible? Or can i extend the command window and ca...

How can I prevent external MSBuild files from being cached (by Visual Studio) during a project build?

I have a project in my solution which started life as a C# library project. It's got nothing of any interest in it in terms of code, it is merely used as a dependency in the other projects in my solution in order to ensure that it is built first. One of the side-effects of building this project is that a shared AssemblyInfo.cs is created...

How to add application folder to %PATH% after installation (VS Setup Project)

I'm looking for a easy way to include application installation folder to a %PATH% environment variable after installation is complete. Visual Studio 2005/2008/2010, Setup Project. Thank you ...

How best to deal with warning c4305 when type could change?

I'm using both Ogre and NxOgre, which both have a Real typedef that is either float or double depending on a compiler flag. This has resulted in most of our compiler warnings now being: warning C4305: 'argument' : truncation from 'double' to 'Ogre::Real' When initialising variables with 0.1 for example. Normally I would use 0.1f but t...

refactoring my code. My headers (Header Guard Issues)

I had a post similar to this awhile ago based on a error I was getting. I was able to fix it but since then I been having trouble doing things because headers keep blocking other headers from using code. Honestly, these headers are confusing me and if anyone has any resources that will address these types of issues, that will be helpful....

Autocomplete in F# 2008

Is there a way to get autocomplete in F# with Visual Studio 2008? That is, true auto completion (suggest words as soon as you start typing), not the kind where you have to manually press a key combination? Or, if not, since it does work in Visual C# 2010: is the lack of it because it's something C# has and F# doesn't, or because it's so...

ASP MVC - Getting application to restart when starting new debugging

Hi there. When editing parts of my project that get called in Application_Start(), i want to have the web app restart every time i press 'Debug', so that i can debug these parts. But if i dont change the Global.asax.cs self, it doesnt restart and therefore doesnt fire the Application_Start(). Is there any setting or trick to let the ap...

How can I tell Visual Studio to NOT BREAK on a particular exception?

I have a particular type of exception that I would like Visual Studio to not break on and show the Exception Assistant screen. Essentially I would like it just to let my normal exception handling infrastructure deal with it. The exception is an inheritor of System.Exception which I wrote and have the source code for. Any where this is...

Any diff/merge tool that provides a report (metrics) of conflicts?

CONTEXT: I am preparing a big C# merge using visual studio 2008 and TFS. I need to create a report with the files and the number of collisions (total changes and conflicts) for each file (and in total of course) PROBLEM: I cannot do it for two reasons (first one is solved): 1- Using TFS merge I can have access to the file comparison bu...

Search Db Code Add-in for Visual Studio

After 5 versions of Visual Studio I think I should be able to right mouse click on a Stored Procedure node of a database connection in the Server Explorer window and be able to search (at least) SQL Server code for the occurrence of a string. I don't want to have to rely on running an Stored Procedure to search SYSCOMMENTS. I want a rea...