visual-studio-2012

Has this usage of async / await in C# been discovered before? [closed]

…衆ロ難τιáo~ 提交于 2019-12-18 16:58:47
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . After a previous question on stackoverflow regarding async / await it seemed to me that await was much more powerful and general than the marketing suggested. It seems to be a general method of building

SQL Database Project: build different scripts depending on build configuration

我怕爱的太早我们不能终老 提交于 2019-12-18 16:58:39
问题 The problem I want to solve is to build different scripts depending on build configuration. Say we have two instances of SQL Server: Enterprise version with connected Linked servers LocalDb version for offline developing and unit tests Enterprise version has views for Linked servers when LocalDB substitues those views with local tables. Those Linked Server views and local tables have the same names and set of fields. So they are not included in build by default (Build Action = None). Instead

Import separate XAML as ResourceDictionary and assign x:Key

房东的猫 提交于 2019-12-18 16:49:51
问题 I downloaded the Visual Studio Image Library and I see that the included icons are available in vector format in the form of .XAML files. Here is an example: Add_16x.xaml <!-- This file was generated by the AiToXaml tool.--> <!-- Tool Version: 14.0.22307.0 --> <Viewbox Width="16" Height="16" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Rectangle Width="16" Height="16"> <Rectangle.Fill> <DrawingBrush> <DrawingBrush.Drawing> <DrawingGroup> <DrawingGroup.Children>

Remove signing from an assembly

∥☆過路亽.° 提交于 2019-12-18 16:12:10
问题 I have a project open in Visual Studio (it happens to be Enyim.Caching). This assembly wants to be delay-signed. In fact, it desires so strongly to be delay-signed, that I am unable to force Visual studio to compile it without delay signing. I have unchecked "Delay sign only" and "Sign the assembly" on the Visual Studio project properties box, and rebuilt. The assembly is still marked for delay sign (as shown by sn.exe -v ). I have unloaded the project and verified that the signing is set to

Enabling Code First Entity Framework VS Web Express 2012

走远了吗. 提交于 2019-12-18 15:03:35
问题 I am trying to enable Code First in my Visual Studio Web Express 2012. From what I have read so far I have to use the Package Manager Console and the command Enable-Migrations. When I do this I get the following error. Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///E:\Working\wingtoysdl\C#\packages\EntityFramework.5 .0.0\tools\EntityFramework.PowerShell.Utility.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT:

Ctrl + Dot (ShowSmartTag) not working in Visual Studio 2012

泄露秘密 提交于 2019-12-18 14:54:29
问题 I'm now using the Visual Studio 2012, and now the keyboard shortcut for "ShowSmartTag", Ctrl + . , is not working. I googled a bit found someone said that CodeRush's Quick Nav shortcut is the same, so I disabled that command in CodeRush, but still I can not fix this. I also tried to disable all those suspicious extensions, but still no success. Any idea? 回答1: All keyboard shortcuts can be viewed from Tools > Options > Environment > Keyboard . What does your View.ShowSmartTag command say about

How to include data in a DacPac

笑着哭i 提交于 2019-12-18 14:50:28
问题 In Sql Server Data Tools for Visual Studio, you can create a Sql Server Project and import the structure of a Database. This works very well. Is it also possible to import data as well? For example, lets say I have a Type table with several types. I would like to have this data in the Sql Server Project, so when I publish it, it publishes the data as well. The closest I have been able to figure out is to use Sql Server Object Explorer to create a script for the data and then manually add that

DesignInstance not working in VS2012

喜你入骨 提交于 2019-12-18 14:45:12
问题 I just spent several hours on an issue when using VS2012, WPF 4.5 and design-time data, specifically the DesignInstance attribute. Goal : I wanted to have design-time data support in my WPF project (MVVM-based), both in VS2012 and Blend, and I could not for the life of me make the MVVMLight approach work consistently . So I tried to change to "just" using the built-in support for design-time data, using the markup extension provided with Blend. Problem : Consider the following code: <Window x

How can I add the MVC 5 project template to VS 2012?

六月ゝ 毕业季﹏ 提交于 2019-12-18 14:14:24
问题 I have Visual Studio 2012 and want to add the MVC 5 template. How can this be done or it is only available in VS 2013? 回答1: Update your Visual studio, Here's the link https://www.microsoft.com/web/handlers/webpi.ashx/getinstaller/WebNode11Pack.appids You can find more detail from below post. http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx 回答2: MVC 5/ Razor 3 support for VS 2012 has not shipped yet. If you want to

VS2012 Enable NuGet Package Restore disappears, missing

笑着哭i 提交于 2019-12-18 13:54:26
问题 I have two projects ones a class library and ones an mvc3 project. They both have nuget packages associated with them. On the class library when I right click the solution I get the "Enable NuGet Packges Restore" option In the MVC one I do not. needless to say I would like the feature for both projects. what am I doing wrong? 回答1: The NuGet package restore context menu item is hidden when the extension detects the presence of a $(SolutionDir).nuget folder containing the nuget.exe, nuget