visual-studio-2012

Path to SignTool.exe or “Windows Kits” directory when using Visual Studio 2012

人走茶凉 提交于 2019-12-31 08:24:12
问题 How do you get the path to SignTool.exe when using Visual Studio 2012? In Visual Studio 2010, you could use <Exec Command=""$(FrameworkSDKDir)bin\signtool.exe" sign /p ... /> Where $(FrameworkSDKDir) is "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\" But in Visual Studio 2012, $(FrameworkSDKDir) is "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\" and SignTool is in "c:\Program Files (x86)\Windows Kits\8.0\bin\x64\" Is there a way of getting the path to this directory

How I can modify the code to make work all statements?

回眸只為那壹抹淺笑 提交于 2019-12-31 07:29:28
问题 I have the next code : private void Install_Click(object sender, EventArgs e) { string configfilename = path + "config.ini"; string installerfilename = path + "installer.ini"; string configtext = File.ReadAllText(configfilename); string installertext = File.ReadAllText(installerfilename); var link = File.ReadLines(path + "config.ini").ToArray(); var lin = File.ReadLines(path + "installer.ini").ToArray(); foreach (var txt in link) { if (txt.Contains("PLP=")) { var PLPPath = txt.Split('=')[1];

How to run commands from within Visual Studio PTVS?

牧云@^-^@ 提交于 2019-12-31 07:00:52
问题 I'm using Visual Studio 2012 and PTVS to play around with locustio and suds. I have setup an environment using virtualenv in Visual Studio and installed locustio, suds and all the associated dependencies. If I was to run locust via the command line in Mac or Linux I'd do something like: `locust -f theFileToRun.py' and locust would run and open a locally hosted page where I could control locust. Django has a similar setup where you type runserver from the command line and your django project

Why does a single line app with System.Console.WriteLine give me a syntax error?

≡放荡痞女 提交于 2019-12-31 05:07:05
问题 I decided to have a go at building Windows Metro style apps with the Windows Developer Preview again, after multiple frustrating experiences. So I fire up Visual Studio and BAM! Right as I try to type in this code System.Console.WriteLine(""); it gives me the red squiggly under "Console". So I try something else: string text = System.IO.File.ReadAllText(@"C:\Users\Public\TestFolder\WriteText.txt"); and THAT fails as well! Red squiggly under File. Why is this error popping up? All this code

Optimizing assembly generated by Microsoft Visual Studio Compiler

断了今生、忘了曾经 提交于 2019-12-31 04:30:51
问题 I'm working on a project with matrix multiplication. I have been able to write the C code and I was able to generate the assembly code for it using the Microsoft visual studio 2012 compiler. The compiler generated code is shown below. The compiler used the SSE registers, which is exactly what I wanted, but it is not the best code. I wanted to optimize this code and write it inline with the C code but I don't understand the assembly code. Basically the assembly code is good for only one

Asp.Net Website extension for visual studio 2012 express for windows desktop [closed]

孤者浪人 提交于 2019-12-31 04:27:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . Currently,I have Visual studio 2012 express for windows.I want to build asp.net website on it but it currently does not have any provision for it.What should i do? 回答1: You can install either: Visual Studio 2012 Express for Web Visual Studio 2013 Express for Web Or, and this

Open custom file with own application [duplicate]

淺唱寂寞╮ 提交于 2019-12-31 00:43:05
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to associate a file extension to the current executable in C# So, I'm making an application for school (final project). In this application, I have a Project -class. This can be saved as a custom file, e.g. Test. gpr . (.gpr is the extension). How can I let windows/my application associate the .gpr file with this application, so that if I doubleclick the .gpr file, my application fires and opens the file (so

Microsoft Visual Studio 2012 has stopped working

冷暖自知 提交于 2019-12-30 19:28:03
问题 I have been using Visual Studio 2012 on Winodws Server 2008 R2 sp1, Although apart from a bit slow performance it seem to work fine. But whenever I close the application, I get following error- Microsoft Visual Studio 2012 has stopped working And prompts to restart or debug the program. I read here that deleting following registry key, would fix the issue on 64 Bit machine. [HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers] The issue is, I have

Getting Sql Server Data Tools to work with Visual Studio 2012 Express Release Candidate

随声附和 提交于 2019-12-30 18:54:13
问题 I'm struggling with migrating to Visual Studio 2012 Express Edition to handle a project that includes a database project with a .dbproj extension. This blog http://visualstudiomagazine.com/blogs/data-driver/2012/06/getting-visual-studio-2012-and-ssdt-to-work-together.aspx gives the impression that with a bit of work this is all basically manageable. First you have to convert the .dbproj to a .sqlproj in Visual Studio 2010. I managed to install Visual Studio 2010. This allowed me to convert

Active pattern broken in F# 3.0

谁都会走 提交于 2019-12-30 17:38:43
问题 This active pattern compiles with F# 2.0: let (|Value|_|) value = // 'a -> 'T option match box value with | :? 'T as x -> Some x | _ -> None but, in F# 3.0, emits the error: Active pattern '|Value|_|' has a result type containing type variables that are not determined by the input. The common cause is a [sic] when a result case is not mentioned, e.g. 'let (|A|B|) (x:int) = A x'. This can be fixed with a type constraint, e.g. 'let (|A|B|) (x:int) : Choice = A x' I tried: let (|Value|_|) value