visual-studio-2008

Is there a way to run unit tests sequentially with MSTests?

久未见 提交于 2019-12-28 12:56:10
问题 I am working in an application that is mostly single-thread, single user. There are a few worker threads here and there, and they are only using thread safe objects and classes. The unit tests are actually testing those with multiple threads (explicitly created for the tests), and they test fine. The VSTS unit tests fail when testing business objects and sub-systems that are not thread safe. It is okay for them not to be thread-safe, that's the way the application uses them. But the 'one

Why does app_offline.htm keep appearing in my web project?

不羁的心 提交于 2019-12-28 05:54:45
问题 I regularly (every few days or so) publish my ASP.NET web project to the local web server. But the weirdest thing keeps happening... a file called "app_offline.htm" keeps appearing, unbidden, in my web project! I have deleted this file several times, it is not in source control, and AFAIK nobody else is tampering with the project. But practically every time I try to publish the project, my publish fails ( Unable to add 'app_offline.htm' to the Web site. The file 'app_offline.htm' already

Why does app_offline.htm keep appearing in my web project?

邮差的信 提交于 2019-12-28 05:54:10
问题 I regularly (every few days or so) publish my ASP.NET web project to the local web server. But the weirdest thing keeps happening... a file called "app_offline.htm" keeps appearing, unbidden, in my web project! I have deleted this file several times, it is not in source control, and AFAIK nobody else is tampering with the project. But practically every time I try to publish the project, my publish fails ( Unable to add 'app_offline.htm' to the Web site. The file 'app_offline.htm' already

What should be modified to change the URL of a web service in C#?

☆樱花仙子☆ 提交于 2019-12-28 04:27:07
问题 I have one problem and it is some time ago I have added a Webservice proxy class into my application by copying all the generated code (copy paste the text of the .cs content). And it worked! But now I need to change the URL used by this web-service proxy class and I am not sure what and where to change in the code. I would appreciate if you can give me a clue that can guide me to find the right place so that I can update the url of the web service. 回答1: You should change the URL using web

Visual Studio appears to randomly adopt American keyboard layout

断了今生、忘了曾经 提交于 2019-12-28 03:20:30
问题 Gah! This is really causing me hassle today. Suddenly without warning '@' (at symbol) and '"' (double quote) are trading places on my keyboard but ONLY in Visual Studio 2008! I can't seem to find anything in help or online to explain/remedy this. Is there some keyboard shortcut I am inadvertently executing? I rebooted my PC and it went away for an hour or two and then suddenly came back. Oh, the insanity :( 回答1: I have tried the same thing, but it turned out to be because I was hitting Alt

Hide WPF elements in Visual Studio designer

十年热恋 提交于 2019-12-28 02:06:32
问题 I have a WPF form which basically looks like this: <Window ...> <Grid> <DockPanel> [content shown during normal operation] </DockPanel> <Grid Background="#CCCC" Visibility="Hidden"> [overlay grid which is only shown during special circumstances] </Grid> </Grid> </Window> The overlay grid hides everything else (i.e. the "normal content") and is only shown under special circumstances (i.e. if the network connection goes down). This works perfectly fine when running the program. Now, in design

Resolving “Validation (): Element ‘xxxx’ is not supported” warning in Visual Studio 2005/2008

大城市里の小女人 提交于 2019-12-28 01:56:14
问题 Over the last couple of days I started getting the following validation warning (green squiggly line at design time) in a Visual Studio 2008 ASP.NET WebForms project: Validation (): Element ‘xxxx’ is not supported. Where 'xxxx' was a standard ASP.NET server controls (asp:panel, asp:container, asp:textbox) The application would still compile and run but the warnings were an annoyance. See my answer for the resolution I found. 回答1: Delete the files from “C:\Documents and Settings[Username]

What is MyAssembly.XmlSerializers.dll generated for?

你离开我真会死。 提交于 2019-12-27 19:51:50
问题 I am working on a project which generates an assembly. I just noticed that an additional assembly *.XmlSerializers.dll is being generated. Why this file is auto generated and what it is used for? 回答1: In .NET implementation, the XmlSerializer generates a temporary assembly for serializing/deserializing your classes (for performance reasons). It can either be generated on the fly (but it takes time on every execution), or it can be pregenerated during compilation and saved in this assembly you

What is MyAssembly.XmlSerializers.dll generated for?

冷暖自知 提交于 2019-12-27 19:46:59
问题 I am working on a project which generates an assembly. I just noticed that an additional assembly *.XmlSerializers.dll is being generated. Why this file is auto generated and what it is used for? 回答1: In .NET implementation, the XmlSerializer generates a temporary assembly for serializing/deserializing your classes (for performance reasons). It can either be generated on the fly (but it takes time on every execution), or it can be pregenerated during compilation and saved in this assembly you

How can I disable ReSharper in Visual Studio and enable it again?

不羁的心 提交于 2019-12-27 11:50:50
问题 I installed ReSharper, and it works in Visual Studio, but how can disable it? Whenever I search in the ReSharper menu I can't find a disable option. 回答1: You can disable ReSharper 5 and newer versions by using the Suspend button in menu Tools -> Options -> ReSharper . 回答2: If you want to do it without clicking too much, open the Command Window ( Ctrl + W , A ) and type: ReSharper_Suspend or ReSharper_Resume depending on what you want. Or you can even set a keyboard shortcut for this purpose.