visual-studio

Free distributed source control with visual studio integration?

I'm looking to move to distributed source control since I use multiple computers and often work offline. What if any distributed source control systems integrate with visual studio and how good is the integration? ...

Castle ActiveRecord and The ActiveRecord VS Solution Template

What do you need to do or install to get the The ActiveRecord VS Solution Template working in Visual Studio 2008? I have installed the Castle Project, but I don't see any new solution templates in VS2008. ...

How do I create a "virtual" folder in a Visual Studio 2008 project?

I want to create a folder inside a C# project to contain some configuration files. However, I don't want these files to be copied to bin\Release\MyFolder. I'd rather have them copied to bin\Release directly. I'm thinking this may be doable by having a "virtual" folder, like solution folders, but I don't know how to do it. Is there a way ...

Why does one of my project's GUIDs change when I build the project in VS 2005?

For two of my VS 2005 C++ projects, VS wants to write to the .sln file when I build the projects. I have got a number of other VS 2005 C++ projects where this is not the case. It is a problem as due to the fact that we have ClearCase source control integrated with our VS 2005 installations and when we try and run an overnight build via...

Can I reformat HTML in Visual Studio without removing blank lines ?

The HTML formatting in Visual Studio works great -- especially considering you can pick a selection and just format that. You can just select a tag or block, right click and do 'Format Selection'. You can also reformat the whole document. However I like to use a lot of whitespace in my documents to keep things organized and the reformat...

Are there any Jira plugins for Visual Studio?

We are switching over to SVN+Jira+VS2008 for our .NET development. Are there any plugins for Visual Studio that allow to work with Jira directly from the IDE? It would be great if it could be integrated with SVN support (we use AnkhSVN for now), although it's probably too much to ask. Google did not yield much, only some mailing lists wh...

How to specify an order for the columns in a matrix?

I'm working on a SQL Reporting Services report (in VS.Net 2005) which displays a count of different data in a matrix. The columns have a count on the amount of customers in a certain set. So I have several columns like these: "1 employer", "2-9 employers", "10-19 employers" and so on. The problem I have is that SQL Reporting Services so...

How to programmatically create a Quick Campaign in MS Dynamics CRM

hi i trying to create a "quick campaign" in code, but i don't find a class to do that. I found the way to create a list and add users to that list. But i can't continue, because i don't know the way. Anybody can help me? Thank's Hola Estoy intentando crear una campaña expres, pero no encuetro la clase para hacerlo (o la manera). ...

How do you deal with exceptions in UserControls constructors when using the .net Winform Designer ?

When you load an UserControl in the WinForm designer, VisualStudio executes the InitializeComponent() method of the control, but not its constructor. This really makes a difference because it's quite common to have some code in the constructor which cannot run at design time. Unfortunately, when you add an UserControl to another control...

Visual Studio 2005 Clean Solution

If I have a solution with 10 projects. When I click "Clean Solution" does that just clean out the bin/debug in the main startup projects solution or the bin/debug in every projects directory? ...

Specific form of Constructor in C#

I'm studying ICT. One of my courses is C# and another is Physics. Our Physics teacher used Visual Studio to animate some movements gave us some of the code he used to do it. He told us to look it up. Here's something I don't recognize: public static Vector operator + (Vector v1, Vector v2) { return new Vector(v1.X + v2.X, v1.Y + v2....

Help with one step build all projects + installer (.NET + WiX)

I have prebuild events on the installer to rebuild the projects with the appropriate configuration etc. If I right-click build/rebuild on the WiX (3.0) project in visual studio it all builds fine, but if I try to run MSBuild on the wixproj file the pre-build events will throw errors. I can instead call Candle and Light on the wixpr...

What's an easy way to access prebuild macros such as $(SolutionDir) and $(DevEnvDir) from code in C#?

Right now I'm thinking write the paths to a file in the pre-build event and then read from that file in the code, but I'm wondering if there's an easier more elegant way. edit: This is sort of a follow up to Help with one step build all projects + installer (.NET + WiX) since I didn't really get an answer to that, seeing if I can get an...

SetClientCredential visible in vs.net 2005 but not 2008

I add a web reference to my wse 3.0 service in Visual Studio 2005 and my intellisense shows the name of my service like MyServiceWse (it adds the WSE extension to the name). I also have access to SetClientCredentials() where I pass in my UsernameToken, everything works fine. In Visual Studio 2008 I don't have the proxy class with MySer...

NET: Best Practices/guidelines for dividing namespaces between files?

What should be the general guidelines/gotchas for dividing application code (App_Code) into separate files? I've found that over time, the original files do not match up well with how the namespace hierarchy evolves. How do I keep application code containers organized intuitively over time? What PURPOSE should the file divisions aim t...

Why would my ASP.NET project run on the development server when not among the startup projects?

I have a visual studio 2008 solution that includes an asp.net-hosted remoting project in c#. The solution also contains other c# projects and c++ projects. When debugging the interaction between my c# client and the asp.net server, the debugging is great. I can literally step into server calls and back out. However, there are times in ...

How can I Export the Compare Folder results from Team Foundation Source Control

Hello, Having run a compare between a main branch folder and a given changeset in Source Control (Visual Studio TFS), and finding a number of differences, I would like to export the results to a spreadsheet so that it can be passed around and notes made etc... Is there any way that I can export this list results from the Folder Differe...

CSS problem between Visual Studio IDE and IIS

Hi I'm not a web developer, so what seems weird to me is hopefully an easy one. Have an existing ASP.NET web site which I need to modify, using VS 2008. I worked on an aspx page and somehow the CSS settings changed and messed the page up badly. I restored the old CSS files and now the page is fine again in the IDE but still a mess wh...

How to avoid duplicate app.config using Visual Studio 2008 unit testing?

When I have one app.config in my main project I always have to duplicate it to its test project. How to avoid it? Update I also asked a very similar, and slightly complicated question ...

Default News Feed on Visual Studio Start Page (C# Profile)

Whenever I install Visual Studio 2005 or 2008 and choose the C# profile, the "News" portion of the start page defaults to "http://go.microsoft.com/fwlink/?linkid=45192&clcid=409". I like the start page and like to reference it and like the content of the default MSDN C# news feed (there is a lot of good stuff there) provided, but t...