visual-studio-2008

WPF Converter casting causes Visual Studio designer exception

两盒软妹~` 提交于 2019-12-18 16:55:30
问题 A converter such as what follows will cause the 2008 visual studio designer to not display the xaml, and error out with a "Specified cast is not valid." exception. public class ItemsVisibilityToGridColumnWidthConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { //THE TWO OFFENDING LINES... var itemsVisibility = (Visibility)values[0]; var orientation = (Orientation)values[1]; if (orientation == Orientation

How to change MSBuild error message language?

廉价感情. 提交于 2019-12-18 16:32:56
问题 I'm on a Japanese system and when I run MsBuild.exe to build a Visual Studio project, I get a mix of Japanese and English in the output: C:\path\to\solution>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe solution.sln Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3082] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 2/18/2010 1:03:04 PM. Project "C:\path\to\solution.sln" on node 0 (default targets). Building

Visual Studio Plug-in to measure time spent on Solution/Project [closed]

瘦欲@ 提交于 2019-12-18 15:54:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . does anyone know of a Visual Studio (2008) Plug-in that attempts to track how long you've spent working on any given Solution or Project? I realize this would be difficult, like at work I might leave a Solution open all day, but only work on it for a couple of hours, on and off. However at home, I might only

Include folder in setup project

余生长醉 提交于 2019-12-18 15:53:32
问题 I want to include a folder in a setup project so that when I deploy that setup the complete folder is also deployed to the install location. 回答1: Right click the setup project, and select "View" > "File System", and from there you can access a lot of special folders like install folder, appdata, desktop etc, and add files to there, that will be created when you install the application. Make sure to set the "alwayscreate" property to true. 回答2: The answer is good because it gave me clue on how

Can I force subclasses to override a method without making it abstract?

痞子三分冷 提交于 2019-12-18 15:52:17
问题 I have a class with some abstract methods, but I want to be able to edit a subclass of that class in the designer. However, the designer can't edit the subclass unless it can create an instance of the parent class. So my plan is to replace the abstract methods with stubs and mark them as virtual - but then if I make another subclass, I won't get a compile-time error if I forget to implement them. Is there a way to mark the methods so that they have to be implemented by subclasses, without

User control always crashes Visual Studio

柔情痞子 提交于 2019-12-18 15:31:41
问题 I'm trying to open a user control in one of our projects. It was created, I believe, in VS 2003, and the project has been converted to VS2008. I can view the code fine, but when I try to load the designer view, VS stops responding and I have to close it with the task manager. I have tried leaving it running for several minutes, but it does not do anything. I ran "devenv /log" but didn't see anything unusual in the log. I can't find a specific error message anywhere. Any idea what the problem

Stop debugger on current line of code being executed

谁说胖子不能爱 提交于 2019-12-18 14:54:27
问题 So here I am trying to debug this issue where the program takes forever to run and I can't figure out where to put the breakpoint in code because there are 1 million events firing. Is there a way in visual studio to just stop on the current line of code being executed without setting a breakpoint? 回答1: Yes, hit the Pause button on the toolbar and it will break at the current line. Another option if the Pause button is not visible is to go to Debug -> Break All. 来源: https://stackoverflow.com

stop development server when i stop debugging

久未见 提交于 2019-12-18 14:16:22
问题 How can automatically I stop the development web server when I stop debugging in Visual Studio? 回答1: There is no way to get the Asp.Net development service to automatically stop when you hit the "stop debugging" button, as all that does is detach the debugger. You could however explicitly kill the process yourself (which would in turn cause VS to stop debugging). This question shows how you might do this in a Macro: Automatically stop/restart ASP.NET Development Server on Build Alternatively

Completely remove “error list” from visual studio

一世执手 提交于 2019-12-18 13:52:42
问题 I want to completely remove "error list" from visual studio 2008, not disable it i want it gone. It annoys me to no end popping up endlessly, i guess i must be "doing it wrong" but w/e i just want to use VS without being alerted every other keystroke about some warning. I've tried editing many different fields in the options (tools -> options) it has only slightly decreased the frequency of the error list popping up. I have also deselected errors, warnings, and Messages. and it pops up with

How can I have design time support for my custom user controls in Visual Studio 2008?

别等时光非礼了梦想. 提交于 2019-12-18 13:38:02
问题 I'm an creating a custom user control for .NET Compact Framework and I want to keep design time support. I'd like to think in Visual Studio 2008 that this is not the crazy almost impossible task it once used to be. And I'm hoping there is a simple tutorial somewhere that will show me, it is a snap. Any chance? 回答1: There is a sample you can download here that shows how to incorporate a WYSIWYG design-time experience. Also there is annother tutorial here. Look at the section on the "Designer".