visual-studio

Is there a VisualStudio project template for native C++ Win32 services?

I know there is one for .NET based services, even one for managed C++, but I don't see one for native unmanaged C++ Win32 services. Anyone know of any 3rd party templates? ...

Creating a Scrollable StackPanel Control

How would I create a control like the example at this site as a User Control? So, instead of doing this: <ScrollViewer> <StackPanel> <!– Content –> </StackPanel> </ScrollViewer> I could do this: <ScrollableStackPanel> <!– Content –> </ScrollableStackPanel> ...

Visual studio 2003 web projects.

Hi, I have a requirement to work on a VS2003 web project. I have VS2008,vs2010,vs2003 installed in my system Other System details are Windows Xp professional version 2 service pack 3. IIS 5.1 When i am trying to create a VS 2003 web project giving the localhost as path i am getting the following error. "visual studio noted that spec...

productversion tab in csproj file changed when i build soultion

my solution is in vs 2003 and using many projects and when i have taken latest from source safe(perforce) and build the project it has given some library not finding error i.e. some porjects which are used in the solution are missing because those assemblies are not at those particular location. so in all csproj files where the hard cod...

Where are the settings for multiple startup projects on a solution stored?

I've got a Visual Studio solution containing a couple of console app projects, and used the solution property pages to launch both of them when debugging. For some reason, this setting isn't saved in source control so when I check out the solution on a different computer it has to be set up over again. Where is this info stored and how ...

Referencing a .NET DLL from a different VS.NET version?

Hi, I have a Visual Studio 2003 project. I need to refer a library DLL which is built in VS 2005 to this project. Is this possible? while directly referring i am getting an error in Visual Studio stating that "..this is not a valid library or com component...". But is there any workaround.I cannot convert my Visual Studio project fro...

How do you cancel a ToolWindowPane or Visual Studio IDE close operation via a VSPackage?

I have a VSPackage with a dockable tool window containing form data. If there are unsaved changes in this form, I would like to cancel a close to either the tool window and the visual studio IDE if the user clicks cancel on saving changes before closing. I can perform the save test on close, but I don't see any event handler methods or...

Is it possible to use XSLT extensions (sitecore extensions) in XSLT editor in VisualStudio?

I'd like to use vs2008 to edit sitecore's xslt it is a regular xslt with normal .net extensions. Is it possible to add the extension objects to the xslt processor context in visual studio 2008 or visual studio 2010? It can be done easily in code using AddExtensionObject. But I'm not sure how to accomplish the same thing in visual studi...

How to run this test in NUnit

Why in NUnit when i write : Assert.AreEqual(ConfigurationManager.ConnectionStrings["FertigungRead"].ConnectionString , "Data Source=server511;Initial Catalog=FERTIGUNG;Persist Security Info=True"); it does not run the test and raises an error : Object reference not set to an instance of an object. But ConfigurationManager is static c...

Is it possible to copy code from Visual Studio (VB.NET) without indentation?

As I am copying something from within a method, and pasting it into a word document, the code I am copying is already indented. When I paste it I therefore end up with a load of white space next to each line. I need to copy without this. In C# I can just unindent my code, hit copy, and then indent it back again using the buttons in the ...

How can I stop the class view add member function wizard from adding (void) to argumentless functions?

The post http://stackoverflow.com/questions/1593349/vs2008-win32-project-defaults-remove-default-precompiled-headers outlines how you can edit the wizards to remove the use of precompiled headers. Can I do something similar to stop the add member classview wizard from adding (void) to argumentless functions? ...

Adding a 'Save Draft' button for task in Sharepoint Visual Studio workflow

So this is my question: how do I add a 'Save Draft' button, to a Visual Studio Sharepoint workflow, which will save the form information to the task list, but not complete the task? I copied the ListForm template for the tasks and added an <asp:Button runat='server' Text='Save Draft' OnClick='???'/>, but now I'm stumped. I implement m...

Background search for changes in TFS source control

SourceGear Vault's client app has the ability to background search for changes. This is very useful because at any time I can take a quick peek and see what changes my team members have checked in and that I need to get latest on. This is also helpful for previewing any merges that might be necessary. And on a day to day basis, it helps ...

Maximize the Visual Studio IDE from a macro?

While I'm perfectly willing to believe that this has been asked elsewhere, I haven't been able to find it. I'm currently using macros to switch window layouts in Visual Studio by importing .vssettings files, but these files don't maintain the maximized state of the IDE (I have a single-screen layout that I want to be maximized, and a du...

Visual studio has gone crazy trying to create files

I downloaded Process Monitor and began monitoring my project directory that I am writing code in. I see endless entries every couple seconds of: Operation: Create File C:\Inetpub\wwwroot\csharp C:\Inetpub\wwwroot\code C:\Inetpub\wwwroot\web and so on for the rest of the templates Then it says the result is PATH NOT FOUND. What is ...

Copy a table from an SQL Server CE 3.5 database to another in Visual Studio 2008?

How can I copy a table from an SQL Server CE 3.5 database to another (also CE database) in Visual Studio 2008, using the design tools? Note: When right clicking on a table there is a "copy" command, but I couldn't find any "paste" command so far... ...

Unit Testing Error - "Unable to get type" "Error: Could not load type" "from assembly"

I am getting this error with my new unit test: Unable to get type MyTestProject.MyTestClass, MyTestProject. Error: Could not load type 'MyTestProject.MyTestClass' from assembly 'MyTestProject'.. I have other tests in the project that were working just fine and now they are all showing a similar error message. If I run the test in Resh...

Identifying overloaded operators in Visual Studio (c++)

Is there any way to quickly visually identify overloaded operators in c++ using Visual Studio? One of the big gotchas IMO in c++ is not knowing that the operator you are using is overloaded. Is there something within Visual Studio or some third party tool which will automatically highlight or color-code overloaded operators? ...

Visual Studio - can be a breakpoint called from code?

I have a unit test project based on UnitTest++. I usually put a breakpoint to the last line of the code so that the I can inspect the console when one of the tests fails: n = UnitTest::RunAllTests(); if ( n != 0 ) { // place breakpoint here return n; } return n; But I have to reinsert it each time I check-out the c...

Expand children by EE Addin Dll instead of autoexp.dat 's [Visualizer] section - children keyword.

Anyone aware if it is possible to create MS Visual Studio Debugger visualizer of expanding data in an Expression Evaluator (EE) Addin dll? Meaning to do in you Addin dll same as autoexp.dat's [Visualizer] section does. In particular "children" expanding. ...