visual-studio

Unit Testing - Is it bad form to have unit test calling other unit tests

I have a unit test called TestMakeAValidCall(). It tests my phone app making a valid call. I am about to write another test called TestShowCallMessage() that needs to have a valid call made for the test. Is it bad form to just call TestMakeAValidCall() in that test? For reference this is my TestMakeAValidCall() test. [TestMethod...

ToolStripControlHost hosting a UserControl designer Serializing won't occur

I am currently developing an application in which I want to display a UserControl inside a context menu. I was able to (somewhat achieve this using ToolStripControlHost). Shown in (NumericUpDownToolStripItem code): below is code for the object (written in VC++.net 2.0). Note: There are semi-similar SO questions on this, but none seem ...

How do i add an App_Data folder in visual studio?

This is a silly question but How do I add an App_Data folder to a project? i have an xsd file that i want to include into the project. ...

Controls relative-positioned in Visual Studio 2008 gets misplaced in browsers

Hi all! I'm developing an aspx page using Visual Studio 2008 where I have a png image of a map of my country and many other png images, one for each state of my country. I'm trying to place these other images (little dots) over the image of the map using relative positioning. But I place the controls in design time at the position I wan...

How to export and import an XSD file in Visual Studio?

How do i export and import an XSD in visual studio? I simply tried to do a copy-and-paste an xsd file into a new project and VS2008 automatically created some wrapper classes for it. When i tried to add a query to a table in VS, I get an error that the connection strings are broken. I slightly fixed that by inserting the proper connectio...

Share a folder between two Asp.Net web applications in the same solution

Hi, I'm currently working on an Asp.net MVC Web application. In my solution, there're two projects: front office and back office. I'd like to share a folder that'll contain resources such as images, documents, etc... that'll be uploaded through the web application. For example, when I upload an image using the back office, I only need ...

how to extend tools options in visualstudio

Hello, I have found in Internet some video sample that explains how to add my own page into Tools-> Window dialog. But it's not clear for me how and where should I save my own settings? Thanks ...

Is C# in English universally?

Does the C# language localize for people that have their machine's set to some language other than English? In other words, is C# always unconditionally written in English? ...

Can I make ASP.net applications with Visual Studio 2010?

Just curious. Right now I'm using Visual C# Express 2008 for Desktop Apps, and Visual Web Developer 2008 Express for ASP.Net Apps. Can I download Visual Studio 2010 and use it for free for a one stop shop development IDE? ...

Is a free, publicly downloadable edition of Visual Studio 2010 available?

Can I download this IDE for free? When will the beta expire? ...

Visual Studio 2008 Web Project problem with PNG files

I've added a PNG file to a directory in my VS2k8 webforms project, and when I run the app, it refuses to render my image - it even knows the dimensions but renders a box with a red X. Oddly enough, if I double click the PNG file within VS2k8, it opens up in the IDE and displays fine (but only within the IDE). Does anyone have any clue...

Rename a batch of Class Objects in VS

I have a VisualStudio project with a few sub folders like Accounting, Store etc. I need to make a duplicate of the "Accounting" folder and also rename all the Class Objects in that folder. Each object in that folder is prefixed with "Accounting". Basically I want to name the duplicate "Customer" and change all the prefix of the Class O...

How to debug *Invoke() in Visual Studio 2008

I have a problem debugging Invoke() or BeginInvoke() in Visual Studio 2008. For instance in the code below the debugger breaks on the Invoke() call. I would have liked it to break on Console.WriteLine(p.ToString()); because that is where an exception is thrown. In code as simple as this this is not that much of a problem but it can get ...

How can I use MS Visual Studio for Android Development?

Can you use Visual Studio for Android Development? If so how would you set the android SDK instead of .NET framework and are there any special settings or configuration? ...

Finding xml file in a solutionexplorer

i have a big solution containing that much projects..i need to find a specific xml file in that solution example "sample.xml".Using ctrl+shift +F we cant find the specific xml file ..Is there any shortcuts for finding xml file in solution explore ...

Plugin for VS 2008 - With Structural Highlighting - Support Syntax Delphi Prism

Hello, Anybody know any plugin for Visual Studio 2008 that has the ability to "Structural Highlighting" and Syntax support for Delphi-Prism. Currently use Castalia and CnPack, but just work on Rad Studio. I've also used Codekana, but does not support the syntax of Delphi Prism. Bye. ...

TFS Query to show items changed yesterday by specific user

Does any one knows how to create a query for tfs that will show items changed yesterday by specific user? I need to view what items was done by team yesterday. ...

versioning in dot net

I always create a MSI file for our web application.There are different states when I build a MSI For system testing on test server after the issues are fixed Another for submitting it to the customer Third is for a hot fix The current versioning scheme is v3.2.18.18 i.e v x.x.xx.xx Now how to increment in the above three cases & wha...

Change default browser by project or solution in Visual Studio 2008?

hi, i have to work on various web projects for different customers. some use IE only, some Firefox and other browsers in their companys. i would like to debug project/solution A with IE and project/solution B with firefox (and so on) by just hitting F5 or "view in browser". I do NOT want to switch the default browser in visual studio...

"View in Browser" and "Browse with..." context menu entry on classic .asp files in VS?

hi, some bad legancy web application projects still have classic asp files. these project consist of 95% of classic .asp files and the rest only of asp.net (.aspx). if you right click on an .aspx file in the solution explorer of VS you can choose "view in browser" and "browse with...". however if i right click on an classic .asp file...