visual-studio-2012

Why can I not reference Bing Maps in my app?

好久不见. 提交于 2019-12-22 09:39:05
问题 I tried to add a Reference to Bing Maps in my app by right-clicking on References | Add References | Windows | Extensions | Bing Maps for C#... , but selecting "OK" does nothing - the Reference is not added. I then tried adding it via Tools | Extensions and Updates , but when I installed the latest version (with today's date - 11/5/2012), I then got: Successfully installed 'BingMapAppSDK 1.0.1011.1716'. Successfully uninstalled 'BingMapAppSDK 1.0.1011.1716'. Install failed. Rolling back...

SqlLite in Visual Studio 2012 installed by NuGet dosent exist in Data Source for connection

你说的曾经没有我的故事 提交于 2019-12-22 09:35:19
问题 I have Visual Studio 2012 Premium, and I installed System.Data.SQLite (x86/x64) by NuGet Packages API. I added all available SQLLite References to my WPF x86 Net 4.0 project. I would like to create an entity model from existing db but there is a problem. In server explorer I want to add connection but SQLLite does not exist in the Data source. I tried uninstalling the SQLlite version which I installed manually before, and then reinstalling nuget SQLlite but it still is not working. I looked

Where can I find Solution Navigator after installing Productivity Power Tools 2012?

帅比萌擦擦* 提交于 2019-12-22 08:54:33
问题 I'm really interest in using solution navigator after reading the article about Productivity Power Tools 2012. After I install Productivity Power Tools 2012 in my VS2012, somehow I can't find the solution navigator everywhere. Could someone tell me where can I find it? Also in the article didn't mention it. By the way, I couldn't find it in "View" and Quick Launch... It will be really helpful to me and lot of peoples if someone suggests the solution. 回答1: Solution Navigator was a part of

ItemNotMappedException: There is no working folder mapping for XYZ

回眸只為那壹抹淺笑 提交于 2019-12-22 08:52:46
问题 I get a Exception throught VersionControlOnNonFatalError-Eventhandler with the following Content: "There is no working folder mapping for C:\SqlWorkspace." I have indeed that mapping on my machine. Because of this, i wonder whats wrong. The error is provoked on the line "workspace.PendAdd(pc.LocalItem);" where pc.LocalItem contains "C:\SqlWorkspace\Audits.sql" Workspace.Folders contains: LocalItem: "C:\SqlWorkspace ServerItem: $/Code/y_Test/SqlHistoryNew Type: Map}" Why this error, all

Using _bin_deployableAssemblies with Visual Studio 2012

允我心安 提交于 2019-12-22 08:44:23
问题 With Visual Studio 2010 I used the _bin_deployableAssemblies folder to include third party assemblies which should be included in the bin folder on build and web deploy. It's about those third party assemblies which are needed for the website, but you don't want to reference them. This worked awesome... Now with Visual Studio 2012 it stopped working... Well, a part of it stopped working. When I build, the contents of the _bin_deployableAssemblies folder are copied to the bin folder. But when

Selecting Data Using Entity Framework based on optional search parameters

↘锁芯ラ 提交于 2019-12-22 08:33:34
问题 I have a project that using EF to interface with the database. It does this via a WCF web service. This is my first EF project and I am trying to work out how to construct a query based on optional parameters. My web service has a data contract with matching fields to the classes in EF. The web service wueries the database, populates these client classes an passes them back to the client. For an example.... In the web service [DataContract] public class MyMovie { [DataMember] public int

Floating point differences depending on how debug build is run

浪尽此生 提交于 2019-12-22 08:30:02
问题 I am using a debug build and obtaining different results on the same machine whether I run under the debugger or not. I am using the excellent TestDriven.Net to run the unit tests. "run" with TestDriven.Net or the external NUnit runner produces the same result "run with debugger" with TestDriven.Net produces different results The code is A complex iterative mesh deformation routine involving significant computation at the limits of floating point precision C#, VS2012 targeting .Net 3.5.

How to refresh Visual Studio settings after setting a value in a VSPackage

偶尔善良 提交于 2019-12-22 08:22:30
问题 In a Visual Studio extension I have defined a VSPackage with a number of commands in it. In the handler for one of the commands, I set a user setting using the following code: SettingsManager settingsManager = new ShellSettingsManager(this); WritableSettingsStore userSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings); userSettingsStore.SetBoolean("Text Editor", "Visible Whitespace", true); This successfully sets the value in the registry (at HKEY_CURRENT_USER

How to include source code in dll?

纵然是瞬间 提交于 2019-12-22 08:21:11
问题 Short version: I want my program to be able to (read-only-)access its own source code during runtime. Is there a way to automatically package the source code into the dll during compilation? Long version: The background is that when an exception occurs, I want to automatically create a file containing some details of what happened. This file should, among other things, include the source code of the function that caused the problem. I want to send this file to other people by email, and the

WIX Toolset How to Set a Property

时间秒杀一切 提交于 2019-12-22 08:08:41
问题 This seems like it should be intuitive, but so far its been anything but. How do I simply set a property I have defined in my product.wxs when my custom dialog first opens? My Property is called "Port" which is initialized as blank. I have another called "df_Port", which I set to "8080". (These are set in my Product.wxs) When my Custom Dialog opens I want to set "Port" to "df_Port". I also have an Edit control on the dialog whose "Property" setting is set to "Port". So obviously the User