visual-studio

Programmatically creating VS solution/project files

I have a C project with a very nice rake build system in place. Unit test runners, mocks, as well as some boilerplate code, are generated. The requirement is for the pc based stuff to be available in VS. I know the VS .sln and .proj formats are undocumented. I also know that cmake can generate VS solution files as long as it's own file...

"Add as Link" for folders in Visual Studio projects

In Visual Studio, we can "Add as link" to add a link to a file in another project in the solution. Is there any way to do this for entire folders, so that an entire folder in project A will be visible in project B, without the need to manually link to new items in that folder? ...

How to execute JavaScript in Visual Studio design mode?

I have a JavaScript that generates HTML on my web page (AJAX control). Now I need to create a ASP.NET Control that is visible at design time. It should look exactly like the original AJAX control. Any ideas about how to execute JavaScript at design time? Unfortunately I cannot create all the required HTML in .Net as it is too large and c...

Keyboard mapping scheme plugin for VS 2010

Does anybody know whether it is possible to write a plugin for visual studio 2010 to implement a different key mapping (emacs in particular) for the C# editor? Are there any examples? ...

Silverlight error 4004 value does not fall within the expected range.

hi all, I get the following error when I try to edit and save fields in dataform : Microsoft JScript runtime error: Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.MethodEx(Int...

What is the difference between these two....?

From a security stand point what are a couple major points that would aid in the result of using a .master file versus a .aspx file? ...

Need Help with VS 2010 installation. Urgently! Here are the errors that I am getting......

not sure if I can ask this kinda ques in here but anyway..hoping to get helpful answers coz this installation is driving me crazy..been trying since the last two days but to no avail... (including the pics of errors that show up in the same order as the link of the pics given below) http://www.flickr.com/photos/50525207@N02/4945483207...

Question about Cyclone

I have read on Wikipedia that the Cyclone programming language is a safe dialect of the C programming language so consider the following C code. int strlen(const char *s) { int iter = 0; if (s == NULL) return 0; while (s[iter] != '\0') { iter++; } return iter; } This function assumes that the string being p...

Modifying the cursor of a resize grip in a WPF window ("CanResizeWithGrip" + "WindowStyle:none")

Hello. Seems ilke none of the other StackOverflow questions answers this specific question. Or it may be lousy search skills... I have a ("CanResizeWithGrip" + "WindowStyle="none"") application written in WPF / C#. The application resizes sideways only (MaxHeight and MinHeight are the same), so I would want the cursor of the ResizeGrip ...

Loading numpy into IronPython

Hi, I've recently installed Ironpython + tools and having trouble loading external modules (numpy). this is my test code: import numpy numpy.test() when writing my simple test, intellisense can find numpy, however when it's run from vs2010, I get: ImportException was unhandled by user code: No module named numpy IronPython Consol...

ASP.net hyperlink in email

I'm pulling a hyperlink from a SQL db and trying to embed it in an email programmatically as follows: Dim dv As System.Data.DataView = CType(SqlDataSource2.Select(DataSourceSelectArguments.Empty), System.Data.DataView) ''Add Ticket URL and comments to answers dictionary Dim emailMessage As New MailMessage("donotr...

Pre-build event fails

I set a prebuild event to: $(TargetDir)MyConsoleApp But when I run the application I get the following output: ------ Build started: Project: BlahBlahBlah, Configuration: Debug x86 ------ 'd:\users\user\documents\visual' is not recognized as an internal or external command, operable program or batch file. C:\Windows\Microsoft.NET...

Dealing With Different Coding Conventions/Styles In Visual Studio...

I'm working on two different projects - both in VB.NET/Visual Studio 2008 (as much as I'd like to move to 2010). I find I'm confusing the different coding standards that I'm supposed to follow. IE - Project1 wants variables named in a Hungarian-style notation like 'iSomeValue'; the does not want a prefix. One project requires an _ pre...

I'm getting the error "Application" is ambiguous in the namespace 'microsoft.office.interop.excel'

I have a project which opens a simple Excel file and populates it. It was working fine until this morning, when it has suddenly started giving me the error above: 'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel'. I haven't changed any project references, or anything within the file itself. The references incl...

Good ways of using CSS in Visual Studio

I searched a lot around here, and did not find anything spectacular about using CSS in Visual Studio. Many people talk around, but not specifically. But I just want to know if there are some simple ways of managing CSS and collaborating it with ASP.NET pages and stuff in VS. Theming is out of discussion for today. I would gladly accept...

Advantage of running Visual Studio 2010 on Windows 7 instead of Windows XP

Is there any advantage of running Visual Studio 2010 on Windows 7 instead of Windows XP? ...

Got error \Windows\v6.1\bin\rc.exe

Today, I compile my VC++ project in Visual Studio 2008. Suddenly, this error appears: Error 6 Error result 1 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\rc.exe' May I know how can I resolve this? Because I have tried a lot of way including download the Windows SDK, disable the incremental linker and so on. Help...

How does visual studio 2003 detect assemblies specific to .net framework 1.1 ?

When i install VS2003 and VS2005/2008 on the same machine. All DLLs goes to the GAC. So GAC contains .net 1.1 and .net 2.0/3.5 dlls. When i load visual studio 2003,how does it reference only 1.1 dlls. how does it resolve ambiguity as multiple versions with same name exists. ...

Is it possible to trace all the events fired when debugging a Silverlight application in Visual Studio?

I'm debugging a Silverlight application that is consuming 100% CPU usage because some event is being fired repeatedly. First of all, does Intellitrace works on Silverlight? ...

How to change Task Flag Color in Microsoft.Office.Interop.Outlook via C#?

Hi i am coding a project with "Microsoft.Office.Interop.Outlook". How can i change flag color according to task importance (High, Medium, Low). i want to change color task importance public class MyTecOutLookTasks : IOutLook<MyTasks> { public Microsoft.Office.Interop.Outlook.TaskItem oTask { get; set; } ...