visual-studio-2012

First line of batch file fails - is not recognized as an internal or external command, operable program or batch file

荒凉一梦 提交于 2019-12-21 11:02:15
问题 on Windows 7 in VS2012, I have setup an External Tool to call a bat file (let’s call it BatA.bat). In the external tool, I am passing in $(ItemDir) as the one and only Argument and I have the Initial Directory to $(ItemDir) as well. Within BatA.bat, a call is made to run BatB.bat like this: call "%1BatB.bat" This command calling BatB.bat results in the following in the output window: 'rem' is not recognized as an internal or external command, operable program or batch file. hello BatB.bat

How do you change the background colour for Solution Explorer in Visual Studio 2012? [duplicate]

二次信任 提交于 2019-12-21 10:51:22
问题 This question already has answers here : Change background color of Solution Explorer in Visual Studio (5 answers) Closed 6 years ago . I really don't like the "Light" theme of VS 2012. I've managed to change a few things to make it better but one thing is still annoying me - the fact that the solution explorer background is a light grey colour. Is there a way to change this back to white? I can't see an entry for Solution Explorer in Options > Environment > Fonts and Colors, so how can I

Which class is used for “Text Visualizer”?

廉价感情. 提交于 2019-12-21 10:47:23
问题 When I use DebuggerVisualizer attribute as follows c# [assembly: DebuggerVisualizer(typeof(DataSetVisualizer), typeof(DataSetVisualizerSource), Target = typeof(DataTable), Description = "My DataTable Visualizer")] vb.net <Assembly: DebuggerVisualizer(GetType(DataSetVisualizer), GetType(DataSetVisualizerSource), Target := GetType(DataTable), Description := "My DataTable Visualizer")> I can reuse Dataset Visualiser in my visualisers dll. This allows to have built in VS visualizer as first

Which class is used for “Text Visualizer”?

给你一囗甜甜゛ 提交于 2019-12-21 10:47:03
问题 When I use DebuggerVisualizer attribute as follows c# [assembly: DebuggerVisualizer(typeof(DataSetVisualizer), typeof(DataSetVisualizerSource), Target = typeof(DataTable), Description = "My DataTable Visualizer")] vb.net <Assembly: DebuggerVisualizer(GetType(DataSetVisualizer), GetType(DataSetVisualizerSource), Target := GetType(DataTable), Description := "My DataTable Visualizer")> I can reuse Dataset Visualiser in my visualisers dll. This allows to have built in VS visualizer as first

Visual Studio slow down the execution when use conditional break points

时间秒杀一切 提交于 2019-12-21 10:19:11
问题 Am using a For Loop like following: for (int i = 0; i < 1000; i++) { int mod = i % 1795; //Do some operations here } it works fine, but when i put a break point and apply condition as mod=150 then it slow down the execution. why this is happening? what is actually happening when i add such conditional breakpoints? 回答1: A conditional breakpoint is not something supported by the hardware; processors only support unconditional breakpoints. What's going on is that when you create a conditional

Adding SubMenu to Visual Studio Project Item Node

ぃ、小莉子 提交于 2019-12-21 09:36:58
问题 How can I add a menu and sub menu items when right click on a file item visual studio solution explorer? I have one menu and three sub menu items which will be displayed when I right click on a file in solution explorer like the below picture. I tried using .vsct buttons but it will display on context menu and Iam unable to add sub menus 回答1: Authoring VSCT files is somewhat tricky; what you´ll need is a combination of a menu and buttons. First of all you need to reference the IDM_VS_CTXT

C#/XAML Compile Error - Various Errors (The name “LayoutAwarePage” does not exist")

核能气质少年 提交于 2019-12-21 09:28:38
问题 EDIT : Here are the pastebins for the code: BasicPage1.xaml.cs BasicPage1.xaml LayoutAwarePage.cs EDIT 2 I have added a MS Connect ticket here: https://connect.microsoft.com/VisualStudio/feedback/details/771648/c-xaml-compile-error-various-errors-the-name-layoutawarepage-does-not-exist#tabs Right a head scratcher which I'm hoping others have experienced and know how to resolved as I'm a little disheartened by the whole affair. The Problem I have been working on a Windows Store App using C#

Create Visual Studio Theme Specific Syntax Highlighting

大憨熊 提交于 2019-12-21 09:17:17
问题 I would like to create a Syntax Highlighter in Visual Studio 2012 (and above) that supports different themes (Dark, Light, Blue). Visual Studio's Editor Classifier project template explains how to create your own colors in the environment using Microsoft.VisualStudio.Text.Classification.ClassificationFormatDefinition . It works fine... ... until you realize that there are different themes in Visual Studio 2012 (and above) and you don't really support them. Your pretty dark blue colored

EntityFramework tries to select a none existing column?

放肆的年华 提交于 2019-12-21 09:15:20
问题 I have an issue and I just can't figure out what is causing the issue. I have a redmine database with a 'journals' table http://puu.sh/1iRIt. Using the Visual Studio 2012 plugin EntityFramework Power Tools this has been reverse engineered into the following class: public class Journal { public int id { get; set; } public int journalized_id { get; set; } public string journalized_type { get; set; } public int user_id { get; set; } public string notes { get; set; } public System.DateTime

Visual Studio 2012 alongside 2010 - kernel32.lib, windows.h

折月煮酒 提交于 2019-12-21 09:14:18
问题 I just installed Visual Studio 2012 alongside Visual Studio 2010. The problem is that I can't manage to convert simple projects from 2010 to 2012 - they fail to link to files such as kernel32.lib or include files such as windows.h. My system also has Windows SDK 7.1 installed. I have tried messing with Property Manager for my x86 and x64 user platforms (since I had appropriate $(DXSDK_DIR) references added there), only to get mixed results - sometimes it just works, sometimes it compiles but