I am getting Visual Studio compiler warnings from third-party includes and my coworker is not. The following are true:
We have checked out the exact same code, .vcproj files, and .sln files, with no local modifications.
We are including the exact same third-party files.
We are using the exact same version of Visual Studio.
We have bot...
I am interested in improving my testing methodologies but am not sure if I prefer NUnit or VS 2008 test. I also have a book that uses NUnit in it's examples. Do the two frameworks coexist well with each other?
...
I have a scenario where I will have to kick off a ton of threads (possibly up to a 100), then wait for them to finish, then perform a task (on yet another thread).
What is an accepted pattern for doing this type of work? Is it simply .Join? Or is there a higher level of abstraction nowadays?
Using .NET 2.0 with VS2008.
...
When I'm trying to add a new Class Library Project in Visual Studio 2008 I get this error:
After clicking OK this message appear:
And then an directory was created with properties folder and AssemblyInfo.cs file only.
What caused this problem?
How to fix it?
Edit: when creating the project as a new project I got this message i...
If I drag a control from the toolbox in Visual Studio (2008+SP1) into an ASPX page I get a proposal for an ID:
<asp:Button ID="Button1" runat="server" Text="Button" />
That's nice and helps not to forget to assign an ID. Most of the time I rename the ID like:
<asp:Button ID="MySpecialButtonForSpecialTask1" runat="server" Text="Button...
Hi,
its possible to add my own strings to visual studio 2008 intellisense for C# using only xsd file? (without class library and without any implemented methods.)
for example I will edit here an scenario:
xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetName...
I created a new test project with web tests as described in Microsoft's documentation here. However, when I try to run a web test, even if it's just a blank test, I get the following error:
Request failed: Could not run Web test 'WebTest1' on agent 'MYCOMPUTER': Method not found: 'Void Microsoft.VisualStudio.TestTools.WebTesting.WebT...
The Visual Studio 2008 environment(on Windows Xp) has some variables set in already WindowsSdkDir and VCInstallDir etc.. I want to setup portable cross platform packages like Xerces here : C:\Program Files\xerces-c-windows_2000-msvc_60 and configure Visual Studio 2008 environment VC++ include and lib directories with an environment va...
I'm porting some code from Visual Studio 2005 to Visual Studio 2008.
Can i use the glaux.lib found in Visual Studio 2005 found in \PlatformSDK\Lib folder in Visual Studio 2008 ?
I don't want to change my APIs and have the requirement to use glaux.h
as said here , does this work
looks like glaux.lib is deprecated.
Instead link ...
I've been digging around Google trying to find the appropriate way to determine the installation path selected by a user from the install wizard.
Basically I'm running into an issue where my service can't create files in it's own directory because it lacks the proper permissions. I'm assuming the correct way to resolve this is to make s...
Is there a way to host/display a full WinForms form (not just a single control) within some sort of container or wrapper type control within a WPF form? I’m looking for something similar in concept to a virtual include from php or iframe in html. Possibly by compiling it into an OCX or DLL.
...
We are using .NET 3.5 with VS2008. I have a solution with ~20 projects in it, and that number will grow over time as the application grows and adds new modules. Today I needed to set a property on every project. I had to edit each csproj file to add the following:
<Target Name="BeforeBuild">
<CreateProperty Condition=" '$(Solut...
Hi, Have a problem that has been bugging me for a couple of weeks now.
I want to do two things...
Change a textfield text or picturebox image from a native function.....It happens in the managed type(eg Form 1)....How can I change this image or text externally from the managed type...
I'm getting the obvious code.
C2065 - undeclar...
Code Sample 1
//Set Label.
this->TextLabel1= (gcnew System::Windows::Forms::Label());
Code Sample 2
//When Button Clicked....
TextLabel1->Text = "Button has been pressed";
How do I reference (+ change) the Label that has been set, outside the Form's code. Eg. Another cpp or header file?
...
Hello,
I have a problem with Visual Studio 2008. When I installed vs2010 rc1 some strange error messages appeared when I opened a silverlight3 solution in vs2008, I told it not to show it again, but I remember it have some strange guid keys.
I have reinstalled everything and it keep showing no silverlight designer when I open a xaml, b...
http://msdn.microsoft.com/en-us/library/ee2k0a7d.aspx
Event handling is also supported for
native C++ classes (C++ classes that
do not implement COM objects),
however, that support is deprecated
and will be removed in a future
release.
Anyone knows why? Couldn't find any explanation for this statement.
...
In Visual Studio 2008, when i click on Debug > Start Without Debugging (or CTRL + F5) happens the same thing as if I clicked on Test > Run > Tests in Current Context / All Tests in Solution
After few attempts of fixing, now every time I run project I get this warning:
"Executing the current test run will
produce a new test run res...
In Visual Studio 2003, each server added to the Servers node of the Server Explorer had a SQL Servers node showing all the SQL Servers on that server. In Visual Studio 2008 this seems to have disappeared (leaving just Event Logs, Management Classes, Management Events, Message Queues, Performance Counters and Services).
I can add a speci...
I'm in the process of migrating a VB.NET web application from Visual Studio 2005 (.NET 2.0) to Visual Studio 2008 (.NET 3.5) and while it was mostly straightforward I encountered a problem which took some time to resolve.
The code in question reads:
Dim serviceArray = New SecurityLayer.Model.Service()
serviceArray = new SecurityLayer.S...
hi,
it`s possible to create snippet into StringBuilder/MemoryStream or something else and to use it? More important: without to create snippet files on hard disk in Visual Studio folder ( ...\Microsoft Visual Studio 9.0\VC#\Snippets\1033\Visual C#)
I can do it? and how?
...