In Visual Studio Professional 2010 whenever I type the following:
new {
It automatically changes to:
new object {
Is there a way to make it not do this? "Object" does not have the properties of the object I want to anonymously create.
...
I have a Silverlight 3 project with something like this:
<ItemGroup>
<Content Include="Content\image1.png">
</Content>
</ItemGroup>
Basically I've added a PNG file to my project and set its build action to "Content". This works nicely.
Now what I'd like to do is be able to add images in a different format to my project, and have ...
I am using SysMonthCal32 windows in my application and I am seeing some strange problems while using it.
The problem is regarding sending keydown event to calendar window. As per msdn documentation, if the window handles the message, it should return 0. The problem is whatever key i passes to the calendar window, it returns 0. This caus...
In earlier version of Microsoft Visual Studio products if user in text editor hit CTRL+W editor will do select the word where is pointer. Does that keyboard shortcut exists still in Visual Studio 2010?
...
I am building a T4 template that will build a POCO from a LINQ to SQL entity, but right now it produces one POCO file based on one L2S entity. How can I reuse this remplate to iterate through all L2S entities and produce a POCO for each one, or for any chosen one?
...
How can i compare 2 string array with generic class? it returns tome true they are equal but not return true....
namespace genericCollections
{
class Program
{
static void Main(string[] args)
{
string[] xx = new string[] { "gfdg", "gfgfd", "fgfgfd" };
string[] yy = new string[] { "gfdg", ...
I'm starting a new project that'd involve using several SDK's including:
Intel Atom Developer SDK
text to speech SDK (Suggestions?)
webcam and augmented reality support of some sort (Suggestions?)
I currently have 2008, but I can also install 2010. Is there any reason to use 2010 for this project?
...
I have the following code in a tester class in my main assembly, PocoGenerator. This assembly is supposed to use a T4 template to generate POCO's based on L2S entities in a referenced assembly (a project reference), DataObjects.
var assemblyName = "DataObjects";
var dataObjects = AppDomain.CurrentDomain.Load(new AssemblyName(assemblyNa...
I've tried to resolve assembly reference pains in my T4 template by moving code out into a helper method in the same assembly and namespace as my template, but T4 refuses to find my helper method.
The helper method:
namespace PocoGenerator
{
public class EntityReflector
{
public static IEnumerable<PropertyInfo> GetPrope...
In my add-in I build List<> objects of specific file types (which are project items) during the Connect() event. In order to check and possibly append new items as and when these are added I've bound the relevant event:
ProjectsEvents.ItemAdded += ProjectsEvents_ItemAdded;
But the event only passes the Project which contains the new ...
I'm pairing with someone who is against using resharper (don't ask me why) so I'd like it to hide without uninstalling - is this possible?
Thanks in advance
...
Hi,
I'm making a basic program in C# wich calls a C++ dll. I give the pannel's handle to the dll so OpenGL knows where to draw.
[DllImport(@"../../../Debug/Model.DLL")]
public static extern void startOpenGL(IntPtr hWindow);
I mashall IntPtr hWindow to HWND hWindow.
after I call draw from C#
[DllImport(@"../../../Debug/M...
I have a huge solution with multiple projects. Sometime I need to navigate to a file in Solution Explorer. Using the VS 2010 Navigate To feature I can open any file by name in Visual Studio 2010 but I want to be able to select the file in Solution Explorer as well?
...
I have some code which makes use of Extension Methods, but compiles under .NET 2.0 using the compiler in VS2008. To facilitate this, I had to declare ExtensionAttribute:
/// <summary>
/// ExtensionAttribute is required to define extension methods under .NET 2.0
/// </summary>
public sealed class ExtensionAttribute : Attribute
{
}
Howe...
Is there a way to make sure that all of the environment variables from MSBuild are propagated to the batch scripts that I am calling from my custom build steps? It would be really nice to use variables like %CONFIGURATION% and %TARGETPATH% in the batch files...
...
CourseID, ProfessorId and StudentID are foreign keys, i want
to print CourseName, ProfessorName, StudentName instead of ID's.
I'm using the wizard (typed dataset).
Note: the three id's are of composite pk as well fk, so no duplicate
records will appear.
What can i do?
...
I'm experimenting with the Silverlight 4 SDK DataPager. I have some code in my XAML that looks like this:
<sdk:DataPager
x:Name="dataPager1"
PageSize="100" />
As SOON as I paste that into my XAML the designer breaks with this odd message:
Error HRESULT E_FAIL has been returned from a call to a COM co...
When I set additional compiler options for a project in Visual Studio 2008, they propagate to all files. If I then set additional options for a specific file, they are added to the project's command line and additional options. How can I compile an individual file without the project-wide options?
...
I have made several projects in one solution.
The problem is that the projects share same include/lib directories, but I don't want to put it into my IDE-global setting.
Is there anyway to deal with it effectively?
...
I've been trying to get oF examples to compile with Visual Studio, but I'm either missing a link or something.. Is there a tutorial on how to setup oF with Visual Studio 2010 (or 2008 - or any version)? If not, can someone provide step-by-step directions on setting up oF with Visual Studio?
(Unfortunately, the oF website doesn't provid...