Visual Studio 2010, C++ project.
Is it possible to hide files in the External Dependencies list based on their folder?
I would like to hide all files that are stored in
X:\Microsoft Visual Studio 10.0\vc\include
X:\Program files\microsoft sdks\windows\v.7.0a\include
So I could have a 'clean' view of files that I really forgot to add to my project.
Related
Visual Studio 2013 Premium Update 4; Visual Studio 2013 SDK installed.
I see the code sources are for older Visual Stuido version. It has a link to Visual Studio 2010 (instead of 2013) SDK Samples.zip file. I try compile its some projects but I get an exceptions... For example:
Other projects compiled successfully, but I read their instruction of running:
Running the Sample
To run this sample, copy both the
AlphaBlendToolbar.Addin file and the newly-built AlphaBlendToolbar.dll
file into your Visual Studio Addins directory (My Documents\Visual
Studio 2010\Addins) and then open a new instance of Visual Studio
2010. Next, run the Tools | Add-in Manager menu command. Check the checkbox next to AlphaBlendToolbar and hit OK. You should see a new
toolbar with two command buttons on it. The interesting thing about
this sample is that the command button icons have alpha-transparency.
But VS 2013 has not the Addins directory... Ok, I create it:
I compiled the sample of SDK:
but I don't see here the compiled DLL:
Why I have such problems?
The AddIns folder under the Documents folder is not created by default by VS when installed, so you need to create it by hand, as you have done
Remove the folder C:\Users\developer\Documents\Visual Studio 2013\AddIns from the Options window, it is not required, the %VSMYDOCUMENTS%\AddIns folder takes care.
.AddIn files can contain several values to describe the target VS versions. The AlphaBlendToolbar.AddIn file of the sample only contains the VS 2010 target, you need to edit it and add the VS 2013 ("12.0") target:
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>12.0</Version>
</HostApplication>
Notice that there are two .AddIn files, one in the Documents folder (for deployment) and other in your solution (for source control, etc.), ensure that you update both.
FWIW, there is a VS 2013 SDK Samples: http://blogs.msdn.com/b/vsx/archive/2014/05/30/vs-2013-sdk-samples-released.aspx
How can I create my custom visual studio template based on Office App template?
You can locate the Office Add-in templates in the following directory, then you modify the template as you see fit and then put them in your own template folder.
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\CSharp\Office\Addins\1033
The template for the Visual Studio App for Office is located in the following directory:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\CSharp\Office SharePoint\Apps\1033\SharePoint15OfficeApp
I know products (such as VisualDDK) exist to use Visual Studio as a front end while using the DDK to build a project but I have the exact opposite question.
Are there tools to take an already existing Visual Studio *.sln and *vcproj files and generate dirs and sources files that can be used with the DDK?
I am interested in Visual Studio 2008 and above products.
I have a VB6 project that I'd like to eventually upgrade to something else. To that end, I want to start using InteropForms Toolkit 2.1, but the page states that the installer only works with VS2008 and VS2010.
Is there a way to use the toolkit in VS2012 anyway? If so, has anyone been successful?
Steps to make Interop Toolkit 2.1 work with Visual Studio 2012 (modified earlier response)
Modify the InteropFormProxyGenerator.AddIn file in the following folder: C:\Program Files (x86)\Microsoft Visual Basic Power Packs\Interop Forms Toolkit 2.1\Setup\User
Add the following:
<HostApplication> <Name>Microsoft Visual Studio</Name> <Version>11.0</Version> </HostApplication>
Copy the file in Documents\Visual Studio 2012\Addins folder
Copy (merge) Documents\Visual Studio 2010\Templates\ItemTemplates\Visual Basic\*.* to Documents\Visual Studio 2012\Templates\ItemTemplates\Visual Basic\
AND
Copy (merge) Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual Basic\Windows\*.* to Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual Basic\Windows
Note: Documents may be MyDocuments
I tried it in VS 2010 and it works. It needs Net 2.0 though, while we do our development in Net 4.x. To avoid compatibility and deployment headaches we dropped the InteropForms Toolkit then. I found that you do not really need it when you only want to use mixed VB6 and Net4 forms. For User Controls it might be another matter, but we do not use them interoperatively :-)
Interop forms toolkit works in VS2010, not in VS2012.
I have installed both VS2010 and VS2012
Projects containing interop user controls created in VS2010, you can use and modify in VS2012
For adding new controls in a existing project, I use vs2012, I am copying/paste an old control and change GUIDs for com registration.
But maybe someone has a better solution.
Steps to make Interop Toolkit 2.1 work with Visual Studio 2012
Modify the "InteropFormProxyGenerator.AddIn" file in the following folder:
C:\Program Files (x86)\Microsoft Visual Basic Power Packs\Interop Forms Toolkit 2.1\Setup\User
Add the following:
< HostApplication >
< Name >Microsoft Visual Studio< /Name >
< Version >11.0< /Version >
< /HostApplication >
Copy the file in "Documents\Visual Studio 2012\Addins" folder
Copy
Documents\Visual Studio 2010\Templates\ItemTemplates\Visual Basic\*.*
to
Documents\Visual Studio 2010\Templates\ItemTemplates\Visual Basic\
AND
Copy
Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual Basic\Windows\*.*
to
Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual Basic\Windows
I'd like to alter the "New Stored Procedure" template in VS 2010 so that it checks for the existence of the stored proc, deletes it if it exists, then does the Create.
Where do I find that template in VS 2010? It seems like it was easy in previous versions to just alter the template.
I found a template in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Templates\Database Project Items", but that is not the one the IDE is using. (That one, in fact, matches what I want to do. Probably moved over from VS 2008 during the upgrade.)
I can't find a plausible candidate under "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates"
Any ideas?
Answered here: Visual Studio 2010: How to change stored procedure template.
Have you looked in My Documents\Visual Studio 2010\Templates\ItemTemplates
Try
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates
or
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates if you're NOT on a 64bit machine.