Some Visual Studio Items

Item Templates not found

After installing SSDT for VS and SSDT from Advanced Services, Visual Studio failed to add a New Item (in fact, any New Item regardless of the item type), instead displaying the error message that it “could not find file” in the directory appdata\local\microsoft\visualstudio\10.0\itemtemplatescache…etc…

As this answer on SO explains, you need to run devenv.ex (from command line in administrator mode) using the /installvstemplates switch, to fix this error.

Run .cmd from VS

You add a .cmd file to your project or solution, and want to invoke it from inside the VS IDE?

I found this instruction to add cmd.exe as External Tool and assign its invocation to any file inside a project.

To open the command prompt in a separate console window (rather than pipe its output to VS’s Output Window), you need to uncheck the Use Output Window checkbox. You must uncheck it if the batch file contains input statements such as PAUSE.

1 thought on “Some Visual Studio Items

  1. Pingback: Handling Web.Config Variants in Source Control-based Solutions | devioblog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.