visual-studio-2010

Reverse Engineering a C# Solution

China☆狼群 提交于 2020-01-01 03:27:11
问题 I know Visual Studio 2010 Ultimate has some abilities, and I would normally do this by instinct, but I am on a very tight schedule. I also have Visio 2010 installed and integrated into VS, but its reverse engineer function doesn't seem to do much, and has to be run on a per project basis, and a hindrance here is the solution structure, with several solution folders each holding a multitude of projects. I would like some advice on how to go about reverse engineering a C# solution into

Visual Studio 2012 Network Shares

假装没事ソ 提交于 2020-01-01 03:18:09
问题 I emulate Windows 8 on a VM using Parallels. I store all of my developer projects on my Mac's partition for simplicity and coherence. When I try to build an app (Visual Studio 2012) running off this network share, I get the following compile-time error: Error 1 Error : DEP0700 : Registration of the app failed. Rejecting a request to register from file:///Z:/Users/MY_USER_NAME/Sites/App1/App1/bin/Debug/AppX/AppxManifest.xml because the files are on a network share. Copy the files to the local

How to generate C# documentation to a CHM or HTML file?

风流意气都作罢 提交于 2020-01-01 03:01:11
问题 Is there a way to generate a readable document file from the documentation on the code directly from Visual Studio? (also considering 2010) Code example: /// <summary> /// Convert a number to string /// </summary> /// <param name="number">An integer number to be converted to string</param> /// <returns>Number as string</returns> /// <example> /// <code> /// var s = MyMethod(5); /// </code> /// </example> /// <exception cref="Exception">In case it can't convert</exception> /// <remarks> ///

Visual Studio C++ Multiline comments

一个人想着一个人 提交于 2020-01-01 02:59:05
问题 In VS C++ code, if i haven't selected anything or full line selected and press comment selection (Ctrl+K + Ctrl+C) then it will comment the whole line with // int x = 5; After Pressing Ctrl+K + Ctrl+C without anything selected or full line selected. // int x = 5; Now if I select some part of the line and press comments button again only selected text will be commented (bold means selected) int x = 5 ; After Pressing Ctrl+K + Ctrl+C with x = 5 selected. int /*x = 5*/; Incase of multiple lines

Visual Studio C++ Multiline comments

◇◆丶佛笑我妖孽 提交于 2020-01-01 02:59:04
问题 In VS C++ code, if i haven't selected anything or full line selected and press comment selection (Ctrl+K + Ctrl+C) then it will comment the whole line with // int x = 5; After Pressing Ctrl+K + Ctrl+C without anything selected or full line selected. // int x = 5; Now if I select some part of the line and press comments button again only selected text will be commented (bold means selected) int x = 5 ; After Pressing Ctrl+K + Ctrl+C with x = 5 selected. int /*x = 5*/; Incase of multiple lines

How does Visual Studio's debugger/interactive window dump the properties of COM Objects in .NET?

空扰寡人 提交于 2020-01-01 02:46:25
问题 In this related question, I noted that Visual Studio's debugger is able to enumerate the properties of System.__ComObject references, which is "a hidden type used when the wrapper type is ambiguous" -- e.g., the type of object you get when you obtain it from another COM object and don't instantiate it yourself: Additionally, if you simply write a COM object's identifier into the Immediate Window, its properties and values are similarly dumped: Note that this is separate from VS2010's "Dynamic

Visual Studio adds a circular reference when I drag and drop a user control from the Toolbox

隐身守侯 提交于 2020-01-01 02:44:10
问题 I have a user control C that is defined inside project P. C is present as a ".NET Framework Component" in my Visual Studio Toolbox. I open a form F (also defined inside project P) and drop C onto F. Once I do that drop, Visual Studio adds a reference under P pointing to P's own DLL . This is unnecessary and causes tons of build errors like The call is ambiguous between the following methods or properties... after which it lists the exact same method twice. If I go into References and delete

BootstrapPackage did not load correctly VS 2010

强颜欢笑 提交于 2020-01-01 02:16:13
问题 I just installed VS 2010 v 10.0.30319.1 RTMRel on 64bit Win7 Ultimate and keep receiving the following error when I try to open a web project. I have repaired and reinstall but the issue persists. I am looking for resolution suggestions. Thanks The 'Microsoft.Data.Entity.Design.BootstrapPackage.BootstrapPackage, Microsoft.Data.Design.BootstrapPackager, Version 10.0.0.0.... did not load correctly. 回答1: This was happening to me as well. In my case I installed Visual Studio on my D drive which

How to configure unity container to provide string constructor value?

眉间皱痕 提交于 2020-01-01 01:31:06
问题 This is my dad class public class Dad { public string Name { get;set; } public Dad(string name) { Name = name; } } This is my test method public void TestDad() { UnityContainer DadContainer= new UnityContainer(); Dad newdad = DadContainer.Resolve<Dad>(); newdad.Name = "chris"; Assert.AreEqual(newdad.Name,"chris"); } This is the error I am getting "InvalidOperationException - the type String cannot be constructed. You must configure the container to supply this value" How do I configure my

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

冷暖自知 提交于 2020-01-01 00:44:29
问题 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