Hi everyone,
It would be nice if we would have the feature 'align named parameters' for method calls?
Eg. I have a method:
void myMethod(int arg1, int argWithLongerName)
{
//do something
}
and I call:
myMethod(
arg1:1,
argWithLongerName:2);
I want it to be formatted automatically as below:
myMethod(
arg1: ...
I have a strange problem which seems to have recently appeared. I used to be able to press the keyboard shortcut CTRL+M+O to 'collapse to definitions' in VS2010 when editing code, but it seems suddenly the CTRL+M key seems to have stopped working. When I now press the key combination I get the Open File dialogue.
I have tried the obvio...
I have VS 2010 Professional (which, unlike Premium, does not include access to Code Analysis configuration within the IDE), and a C# 4 solution containing many-dozen projects. I want to do static code analysis as part of solution compilation.
The possible ways I have identified with the help of SO and Google are:
Edit every .csproj in...
Our development machine is 64 bit hardware running Windows 7 Professional N (64 bit), 64 bit Office Professional 2010 and Visual Studio Professional 2010.
We created a Word 2010 (Application Level Addin) using .net framework 4 , Ribbons and windows installer targeting Office 2010 using this link. We followed everything to the dot sever...
I've set an environment variable named %SDK% in windows.
Can I use it somehow in .csproj file?
Something like:
<ItemGroup>
<Reference Include="SomeDll">
<HintPath>%SDK%\SomeDll.dll</HintPath>
</Reference>
</ItemGroup>
I've tried %SDK% and $(SDK) and it does not work. Any ideas?
...
I found this article (http://blogs.msdn.com/b/narend/archive/2006/10/13/how-to-extend-linking-and-workitem-ui-with-custom-link-types.aspx) about link extensibility in TFS 2005. I'm wondering how to do this in TFS 2010/Visual Studio 2010. It doesn't look like the dll Microsoft.TeamFoundation.WorkItemTracking.Controls.dll exists anymore, ...
The data generation tool that comes with Visual Studio allows you to populate tables with random/patterned data. As an example, you can tell it to populate an Employees table with 50,000 rows and you can tell it to add 5 address rows to an Addresses table for each Employee row.
I've got a junction table much like the permissions exampl...
Is anyone aware of a free or < $25 VS2010 extension that suggests namespaces based on partial information? E.g., you can type "bar()" without knowing where it is and intellisense will prompt you with "Foo.bar()". IIRC, ReSharper does something like this, but it exceeds my preferred expenditure.
...
I try create file in visual studio c++.
But it now work, what is wrong?
CreateFile("1",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED,
...
When I tried to run a binary (exe file) that was made with Visual Studio 10 from mono 2.6/Mac, I get the following warning.
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v1.1.4322
How can I disable this message with mono? Is there a way from Visual Studio not to show this message wi...
I've just upgraded to VS2010 as I was running into problems with a Silverlight project that I needed to be built in 2.0 but I also needed other projects built in 3.0.
I read about VS2010's ability to specify the Silverlight Target version and figured it was time to upgrade to solve my problem.
I've installed 2010 and have also installe...
So I essentially have the following code. I had working code and wanted to separate some of it into two different classes, D3DWindow and D3DController, rather than having it all in D3DWindow. I don't believe it is a pch problem because it was working prior to the separation. The problem occurs in D3DController.cpp. It says something alon...
How to create text file?
CreateFile("1",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
CREATE_NEW,
FILE_FLAG_OVERLAPPED,
NULL);
throw
1>------ Build started: Project: test2, Configuration: D...
I've made an extension inside a package and I am calling the following code (occurs when a user presses a button in the toolbar):
DocumentEvents documentEvents = (DTE2)GetService(typeof(DTE));
_dte.Events.DebuggerEvents.OnEnterBreakMode += DebuggerEvents_OnEnterBreakMode;
_dte.Events.DebuggerEvents.OnEnterDesignMode += DebuggerEvents_On...
This is more of a VS.NET issue I'm sure, but I can't get this to work.
I am updating an older ASP.NET MVC application.
I update code in a class (eg: Controller or Model).
When I rebuild the project/solution and test it (localhost) the changes to the code are not compiled, these changes are not applied. However, changes to the Views t...
Hi,
I have requirement like this. For a function, i get input as a stream of numbers. I mean, function keeps on getting called with single number in each call. I am using queue for storing stream of numbers. I need to process a collected set of numbers only when some condition is satisfied. If condition is not satisfied i need to throw...
I have setup a new development environment on my laptop and for some reason the "Navigate To" function (CTRL + comma) does not work. It's the same exact solution (C#) and the same exact version of Visual Studio as on a number of other computers where the function works. It gets stuck on "Found 0 matching results" while the little progres...
I'm using the project reference feature of WiX to harvest a project automatically using Heat. This is particularly useful since the WiX installer is being built both locally and on a TFS2010 build server, and when it's built on the build server the output is redirected to a different location meaning that if I don't automatically harvest...
Can anybody please tell me how to get ReSharper to replace multiple instances (instead of just one) of a highlighted expression when using Extract Method ? I swear I've gotten it to do it before (just like Eclipse does in its Extract Method refactoring), but I'm unable to do it on the latest installation, 5.1. I'm using Visual Studio 201...
I am working with a Visual C# project in Visual Studio 2010 and browsing various types in the Class View. According to this documentation, there is supposed to be a 'Show Derived Types' option in the class view settings menu similar to the 'Show Base Types' option. However, it seems to be missing.
I haven't managed to find any bug repo...