visual-studio-2012

How to link a work load item with a commited change?

拜拜、爱过 提交于 2019-12-24 04:16:33
问题 I am working with Git for Visual Studio Online I added a Product Back Log item. I added some files & commited the change. (It did not linked for some reason) I made some more commits to the project & synced. My 1st change was not linked with the Back log item & it still shows as pending under tasks. How do I link the work item with my first commit? 回答1: Normally to link a commit to a work item you just reference the work item number in the commit message, for example git commit -am "related

Target the XNA framework in ordinary Visual Studio 2012 project

爱⌒轻易说出口 提交于 2019-12-24 03:38:16
问题 I have a C# XNA host project, with an F# client project that will contain all my functionality. It won't build because the F# project has references to mscorlib.dll and System.dll that the XNA project doesn't agree with (the actual error -- well, its really a warning that in my opinion should be an error -- is at the bottom of the post). How can I tell the F# project to target the actual XNA platform (specifically for the Xbox 360)? C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft

The TypeScript compiler couldn't be found

狂风中的少年 提交于 2019-12-24 03:37:20
问题 I am using Visual Studio 2012 and TypeScript version 0.9.5. I am also using web essentials 2.8. After I try to save the TypeScript file, it says: Compile Error. See error list for details The TypeScript compiler couldn't be found. Download http://www.typescriptlang.org/#Download But even downloading latest version did not help. I checked some links but could not find the solution. Right side panel of TypeScript files doesn't update properly Cannot compile TypeScript files in Visual Studio

MSVC - How can I find out if a type must be moved? [duplicate]

烈酒焚心 提交于 2019-12-24 03:28:14
问题 This question already has answers here : msvc is_copy_assignable always true? (2 answers) Closed 4 years ago . I seem to be having problems with a compiler/library bug. When I try #include <iostream> #include <type_traits> #include <memory> int main() { typedef std::unique_ptr<int> T; std::cout << "is_copy_assignable: " << std::is_copy_assignable<T>::value << "\n" << "is_copy_constructible: " << std::is_copy_constructible<T>::value << "\n"; } with Visual Studio 2012 Update 1 I get is_copy

Build platform target AnyCPU EXE still shows 32bit header in 64bit machine

我只是一个虾纸丫 提交于 2019-12-24 02:42:51
问题 Not sure this has been asked before (I could not find any). I have simple console app/ESE and have the below settings. I'm running Windows 8, 63bit OS. And the EXE target framework .NET 4.5 However, when I compile this EXE, it still shows as a 32bit EXE. Since this is "Any CPU", I would expect the EXE to compile as 64bit / PE32+. Can some please help tell why this would be still 32bit? 回答1: You are misinterpreting CorFlags I think. Here is a CorFlags truth table: CPU Architecture PE 32BITREQ

C++ Redistributable 2012 update 3 detection [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 02:39:25
问题 This question already has answers here : Detect if Visual C++ Redistributable for Visual Studio 2012 is installed (19 answers) Closed 6 years ago . I am trying to detect if C++ Redistributable 2012 update 3 is installed on machine.... I am currently doing check for 2008 through registry search and using guid, but I do not know guid for 2012 update 3... Does anybody know how to detect it? I also found this link but it`s not exactly for update 3 and I do not know right numbers which I should to

Value Type Duration is not allowed on property Duration in XAML

耗尽温柔 提交于 2019-12-24 02:14:18
问题 I am trying to do the following with an ordinary Windows Metro style application: public class MyButton : Button { public Duration Duration { get; set; } } <Grid> <local:MyButton Duration="0:0:0.2" /> </Grid> But I receive the error: Value Type Duration is not allowed on property Duration in XAML Any idea what I might be doing wrong? Any help would be greatly appreciated. 回答1: This is a bug in the Visual Studio 11 Beta XAML compiler. You cannot set user-defined value type properties via XAML.

Grid creating extra spacing that I don't want

五迷三道 提交于 2019-12-24 01:38:07
问题 I created a somewhat large input form in a WPF application, using nested Grids. I'm using VS2010 and VS2012 Ultimate. Here is the code: <Window x:Class="Gridtest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="16*"/> <ColumnDefinition Width="10*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/>

Compiler Can't Find My Header?

谁说我不能喝 提交于 2019-12-24 00:55:28
问题 Despite hash-including it, my project cannot seem to find its header file. I have included a screenshot because I think it's the most effective way to showcase my problem: ERROR MESSAGE 1>c:\users\wood\desktop\old programs\locker.cpp(2): fatal error C1083: Cannot open include file: 'Locker.h': No such file or directory Any ideas as to what's gone wrong? I've tried: 1) Cleaning the project and rebuilding it. 2) Creating a brand new, identical project. Thanks! 回答1: Ok, so let's say I have a

Export Grid View to Excel

回眸只為那壹抹淺笑 提交于 2019-12-24 00:53:34
问题 Need help bringing my gridview into a excel document. Ive tried several example and can't seem to get it right. Any help would be much appreciated. Here is my gridview code, it is being populated from a SQL database. <div> <asp:GridView Align="Center" ID="gvResults" AutoGenerateColumns="false" runat="server" Width="608px" Style="width: 80%; margin-bottom: 0px" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="gvResults_RowDataBound"> <AlternatingRowStyle BackColor="White"