visual-studio-2010

MSBuild doesn't find async required references

二次信任 提交于 2020-01-03 12:21:27
问题 We have Visual Studio 2010 SP1 and Async CTP (SP1 refresh) installed. A solution with projects that use async/await keywords builds OK when build from VS IDE. Also when built with devenv /build "Debug" solution.sln everything is OK. However msbuild @commands.rsp solution.sln reports: File.xaml.cs(123): error CS1993: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly? commands.rsp looks like this: /nologo

How can I mark the methods in a WCF client proxy generated class as virtual

给你一囗甜甜゛ 提交于 2020-01-03 11:46:08
问题 In VS 2010 I'm creating a service reference which code generates the WCF client proxy class Refernce.cs. I need the methods in this class to have the Virtual modifier so they can be used in Mock. Of course I can hand edit the generated code, but every time I update the reference the code is going to be regenerated and wipe out my changes. Do I have more control of how the WCF client proxy class is generated? Is there any way to have the code generator always add the Virtual modifier? I would

Global “using” directives in VS2010/C#?

半腔热情 提交于 2020-01-03 11:29:19
问题 I'm pretty sure I know the answer but I'm wondering if there's a way to define a global "using" directive in my C# projects so that I don't have to repeat the directive on top of every code file. My interest is really rooted with the introduction of extension methods in the .NET Framework. The only way to use an extension method is to define a using directive for the namespace containing the extension methods. Without the using directive, I lose Intellisense capabilities for the extension

VS2010 Web Load Testing with User Logins

混江龙づ霸主 提交于 2020-01-03 11:03:14
问题 I am looking to create a Web Performance test that can be bound to a CSV file with usernames and passwords so that I can run concurrent tests with different users. How do I modify a recorded WebTest in order to accomplish this? 回答1: Have you checked out Walkthrough: Adding Data Binding to a Web Performance Test (CSV File)? 回答2: Once you have added the csv file as a datasource to the webtest, right click on the webtest. select "properties" set the username property to the correct datasource

VS2010 Web Load Testing with User Logins

时光怂恿深爱的人放手 提交于 2020-01-03 11:02:32
问题 I am looking to create a Web Performance test that can be bound to a CSV file with usernames and passwords so that I can run concurrent tests with different users. How do I modify a recorded WebTest in order to accomplish this? 回答1: Have you checked out Walkthrough: Adding Data Binding to a Web Performance Test (CSV File)? 回答2: Once you have added the csv file as a datasource to the webtest, right click on the webtest. select "properties" set the username property to the correct datasource

Database Project to Drop Database before deploy?

最后都变了- 提交于 2020-01-03 10:59:06
问题 Is it possible to get VS to drop the destination database before a deploy? I've tried adding a post deploy script to the project, but it always comes back with active connections. 回答1: You'll need to look up the Always recreate database option in the properties of the database project -> Deploy -> Deployment configuration file -> Edit Dialog. Another option "Drop objects that exist in the target database but not in the schema" can also be useful to you. 回答2: You should check the Always re

Database Project to Drop Database before deploy?

主宰稳场 提交于 2020-01-03 10:59:02
问题 Is it possible to get VS to drop the destination database before a deploy? I've tried adding a post deploy script to the project, but it always comes back with active connections. 回答1: You'll need to look up the Always recreate database option in the properties of the database project -> Deploy -> Deployment configuration file -> Edit Dialog. Another option "Drop objects that exist in the target database but not in the schema" can also be useful to you. 回答2: You should check the Always re

Unable to Redirect to another page using Javascript

核能气质少年 提交于 2020-01-03 10:32:47
问题 In html file to redirect a page using Javascript i used like this window.location.href = "http://www.google.com/"; Its working fine. But when i tried in .aspx it is not working Below is my code. Thanks in advance <head runat="server"> <script type="text/javascript"> function PageRedirect() { window.location.href = "http://www.google.com/"; } </script> </head> <body> <form runat="server"> <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="PageRedirect()"/> </form> 回答1: Try

Unable to Redirect to another page using Javascript

ぐ巨炮叔叔 提交于 2020-01-03 10:31:09
问题 In html file to redirect a page using Javascript i used like this window.location.href = "http://www.google.com/"; Its working fine. But when i tried in .aspx it is not working Below is my code. Thanks in advance <head runat="server"> <script type="text/javascript"> function PageRedirect() { window.location.href = "http://www.google.com/"; } </script> </head> <body> <form runat="server"> <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="PageRedirect()"/> </form> 回答1: Try

Visual Studio 2010 Find and Replace dialog on dual monitors is whacked

可紊 提交于 2020-01-03 10:19:24
问题 Is anyone else having issues with the find and replace dialog in Visual Studio 2010? For as many improvements that have been made for multi monitor support is VS, this is making me crazy. Whenever I open up the Find and Replace dialog in VS 2010, it often straddles the two monitors. The other dialogs, like Navigate To seem to always work. Is this making anyone else go a little batty, or is it just me? Anyone have a fix? Find and Replace VS extension? Update: There is a hotfix out for this