visual-studio-2012

How do I turn off preview in Visual Studio 2012 for pdf files?

眉间皱痕 提交于 2019-12-24 13:42:15
问题 When I select a file in solution explorer it opens immediately in a preview tab. For many file types this is a useful feature. But when adding PDFs to a website it is not. How do I tune Visual Studio 2012's preview feature so that it does not preview PDF files? (N.B. Kyralessa shows how to turn the preview feature off in an answer to another question, but I'd like to leave it on generally, and turn it off for PDFs.) 回答1: Click on the pdf file while holding ALT key - the file will be selected

Is it possible to debug the WF used to build in VS2012?

橙三吉。 提交于 2019-12-24 13:38:57
问题 Guess the title asks the Q really. I want to see what's going on on a step-by-step basis for the build process that I've inherited. I've only just started to play with WF and whilst I understand it is possible to debug a workflow I've really no idea how to go about it in this instance. 回答1: You can debug everything, starting from custom WorkflowServiceHost (if you have one), particular code-based activities, xaml based activities, up to activity designer surface. I believe the biggest

Release Build does not build current source

让人想犯罪 __ 提交于 2019-12-24 12:44:04
问题 I built the latest version using the Release build profile of VS2012 for presenting my application this morning. It didn't work as expected. I presented a faulty application even though it worked fine this morning. After a few tests, I discovered that the Release build configuration caused the issue. I cleaned my project a few times with no change. I have this Button Event Handler in my code: private void btnAddDatabaseValues_Click(object sender, RoutedEventArgs e) { MessageBox.Show("test");

VS 2012 does not list Microsoft.Office.Interop assembly while it can be found in GAC

狂风中的少年 提交于 2019-12-24 12:34:22
问题 I want to add a reference to Microsoft.Office.Interop to a current project but I can only select but I am able to find them in the GAC For now I choose to add them by navigating to the path within the GAC Butt I still have the question, why can it happen that I have them in the GAC (Office 2013 is installed) but cannot find them in Visual Studio 2012 when trying to add a reference? 回答1: Your assumption that the VS dialog lists assemblies in the GAC is wrong. It lists reference assemblies,

Clang+VS2013: error when including c++ header (vs2012:working)

。_饼干妹妹 提交于 2019-12-24 12:20:38
问题 Edit i found http://llvm.org/docs/GettingStartedVS.html Because of this, clang cannot parse the C++ standard library included with Visual Studio, nor parts of the Windows Platform SDK. So, if C++ is not supported with Visual Studio headers, should i still write a bug report? Q: I installed the clang visual studio toolchain from http://llvm.org/builds/. Using VS2013, i get several errors when compiling any c++ header. For example: #include <memory> int main() { return 0; } These errors seem to

Visual Studio 2012 Update 3 - initializer list & variadic templates

一世执手 提交于 2019-12-24 12:13:42
问题 Recently I have installed Visual Studio 2012. After the installation I updated my IDE with update 3 to guarantee functionality of my programs on Windows XP. Everything is working well, but I still can not use initializer list and variadic templates! Do I need any extra updates to get this working with Visual Studio 2012? 回答1: VS2012 does not support variadic templates and initializer lists, even with the latest updates. VS2013 RC, however, supports both. For a full overview of what C++11

Find Control in DataTemplate with a multi selection listbox

我的未来我决定 提交于 2019-12-24 12:12:06
问题 I have a multi selection listbox where a user can tick multiple items in the list. At the moment I have it so when a checkbox is ticked the ListBoxItem it is within also gets selected: private void CheckBox_Checked(object sender, RoutedEventArgs e) { //Select the Item using the DataContext of the Button object clicked = (e.OriginalSource as FrameworkElement).DataContext; var lbi = LstDistro.ItemContainerGenerator.ContainerFromItem(clicked) as ListBoxItem; lbi.IsSelected = true; } Now I am

How do I find Synchronizer External URL for TFS4JIRA on visualstudio.com

僤鯓⒐⒋嵵緔 提交于 2019-12-24 12:11:02
问题 I need to configure TFS4JIRA with visualstudio.com but On TFS4JIRA plugins in JIRA asking 'Synchronizer External URL' and I tried to find URL on visualstudio.com but didn't get it. 回答1: 'Synchronizer External URL' is the address of Synchronizer application that should be installed on your Windows machine, it has nothing to do with xxx.visualstudio.com. Remember that Synchronizer address should be accessible from internet, or more precise - from http://tfs4jira-ondemand.spartez.com (please

make the compiler not to automatically flush the buffer

倾然丶 夕夏残阳落幕 提交于 2019-12-24 12:09:09
问题 Why does the below code not stop the compiler from flushing the buffer automatically? cout.sync_with_stdio(false); cin.tie(nullptr); cout << "hello"; cout << "world"; int a; cin >> a; output: helloworld I'm using Visual Studio 2012 Ultimate 回答1: AFAIK, the stream can be flushed whenever the implementation likes to do so, i.e. there's no guarantee that the stream will be flushed after an insert operation. However, you could use one of these manipulators to ensure your stream gets flushed

DTSX package runs in Visual Studio but not when called from a Database Job

瘦欲@ 提交于 2019-12-24 11:53:38
问题 I have an SSIS package that takes database backups and it runs fine in visual studio but when executed from a database job it fails with the following error. The part I can't understand is that 'GS\BOS-DBMONITOR$' isn't a user. 'BOS-DBMONITOR' is the server name. Error: Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 10:58:03 AM Error: 2014-07-30 10