visual-studio-2010

Add a new language to Visual Studio 2010 with syntax highlighting and intellisense

走远了吗. 提交于 2020-01-01 00:44:27
问题 I am trying to add support for a different language in Visual Studio 2010. I was hoping to add custom syntax highlighting, and have some sort of basic intellisense work with it. The language I am trying to add is 4Js Genero (a newer version of Informix-4GL). I basically just need support for the .4gl and . per file extensions that are used in Genero/4GL. Does anyone know how to do this, or can point me in the right direction? 回答1: It's not really for the faint of heart. Don't underestimate

How to run code right when a C# application starts?

一笑奈何 提交于 2019-12-31 23:00:26
问题 I have put some code inside of the public MainWindow() {} but I kept getting some obscure XAML parsing errors as soon as I did that (not on my computer but on 3 others I've tried it on - yep!) Is there the preferred way to run code AS SOON as t he application starts? The theory is I want it to call home and ask it it's ok to start. If it's not, I want the app to close out. Call it a makeshift copy-protection :) 回答1: Under normal circumstances, WPF creates the Main method (the entrypoint of

Visual Studio 2008/2010 on Windows 8 - problems?

跟風遠走 提交于 2019-12-31 21:31:46
问题 I am looking for any information that can be provided regarding problems with the use of Visual Studio 2008 and 2010 on Windows 8 (x64). I have been able find the following article that identifies the acknowledged problems for VS2010 on W8, but I cannot find any similar articles for VS2008. Specifically, I use VS2008 for mobile development so I cannot simply upgrade the projects to 2010/2012 (yet) but I do also have some web application projects and there may even be a couple of console and

How to attach sources to referenced assembly in Visual Studio

时光总嘲笑我的痴心妄想 提交于 2019-12-31 17:53:31
问题 I am fairly new to Visual Studio, coming from Java development on Eclipse. Among other things I sorely miss from Eclipse is an ability to view source of binary assemblies. In Eclipse I can attach reference to source code for a referenced jar and after that it is dead easy to navigate to the source, add breakpoints and debug those as though I have the libraries in my workspace. Up to this point I have not managed to attach source code to an assembly reference. Is it possible? How do I go about

How to attach sources to referenced assembly in Visual Studio

回眸只為那壹抹淺笑 提交于 2019-12-31 17:51:39
问题 I am fairly new to Visual Studio, coming from Java development on Eclipse. Among other things I sorely miss from Eclipse is an ability to view source of binary assemblies. In Eclipse I can attach reference to source code for a referenced jar and after that it is dead easy to navigate to the source, add breakpoints and debug those as though I have the libraries in my workspace. Up to this point I have not managed to attach source code to an assembly reference. Is it possible? How do I go about

Where is vcbuild in VS2010?

夙愿已清 提交于 2019-12-31 12:55:27
问题 I've upgraded to VS2010 and am looking for the vbuild executable. For VS2008, it was under: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe Where is it for VS2010? It's not under: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcpackages\vcbuild.exe 回答1: There isn't a vcbuild anymore - it's replaced by msbuild There is also a TFSBuild.exe in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE but I don't know if it's an exact replacement. 回答2: I was

Visual Studio - I want “Go To Definition” to open Object Browser, not “metadata”

纵饮孤独 提交于 2019-12-31 12:40:15
问题 In Visual Studio version 2002 and 2003 "Go To Definition" would find the selected type or member in the Object Browser. In 2005 onwards it opens a source window "generated from metadata" instead. How do I configure these newer versions to go to Object Browser? (In other words, I have the opposite problem to this one.) Installing ReSharper makes this change, so I know it must be possible, but how do I do it without ReSharper? 回答1: As workaround you can create the following macro: Sub

Upgrading Visual Studio 2010 RC to RTM/Retail/Final

∥☆過路亽.° 提交于 2019-12-31 12:30:28
问题 I have the RC build of VS2010 installed on my computer. Now that the RTM build is out, I want to upgrade. Aside from the main Visual Studio package and .NET Framework 4, what else should I remove before I install the RTM build in order to minimize potential breakage/conflicts? VS2010 installs a whole bunch of ancillary packages and I'm not sure which ones have been upgraded between RC and RTM. (Extra credit: I've got another machine that is still running Beta 2. Would the procedure be the

PhoneGap for Windows Phone - There is no script engine for file extension “.js”

百般思念 提交于 2019-12-31 10:48:34
问题 I've created new project using Microsoft visual Studio ,but got a compilation error as below: There is no script engine for file extension ".js" The command "CScript "c:\users\raja\documents\visual studio 2010\Projects\EasyMed.3\EasyMed.3/BuildManifestProcessor.js" "c:\users\raja\documents\visual studio 2010\Projects\EasyMed.3\EasyMed.3\EasyMed.3.csproj"" exited with code 1. Any idea? 回答1: This problem happens when your .js files become associated with something besides CScript. Usually it

Solution to adding a Git (TortoiseGit) toolbar to Visual Studio [closed]

走远了吗. 提交于 2019-12-31 09:45:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Anyone know how to create a toolbar in Visual Studio 2010 to use with Git (TortoiseGit)? Thanks SurfRat 回答1: I wanted a Git toolbar in Visual Studio and I found no solution to this so I thought I would share this with you. I installed the Git Source Control Provider and got Git working (via TortoiseGit) with the