visual-studio-templates

Missing templates after re-installing VS 2008

I installed VS 2008 and I installed .NET 3.5 SP1 and I got all templates. Then, I had to uninstall VS 2008 (please don't ask why) without uninstalling .NET Framework 3.5 SP1 or anything else. After that, I re-installed VS 2008 back, then I open up VS 2008 and found that when I add a new item the Entity Framework template is not among t...

Where are the Unit Test templates in the VS Unit Testing Framework?

I am increasingly annoyed by the unnecessarily verbose template that is used when I create a new unit test in Visual Studio (using the default, included unit testing framework). Instead of public ImportModelStateTest() { // // TODO: Add constructor logic here // } private TestContext testContextInstance; /// <summary> ///Gets or se...

How to debug incompatibility between .NET RIA Servces (July Preview) and Silverlight MVVM toolkit?

I have discovered that when I install .NET RIA Services (July preview) it breaks all of my projects that were created with Michael Sync's Silverlight MVVM toolkit. This MVVM toolkit includes a Visual Studio project template which is now failing to build. Here is the message I get: The project file "..\SilverlightModelViewApplication.W...

Empty/static project in Visual Studio that can import a folder structure of data files

This seemed like an easy enough task and back in the Visual Studio 6 times, I could just drag a folder to a project and the folder would be imported. I didn't need this in the past years, but now I'm really looking for a way to import a static directory structure, much the same way it works when you just drag a folder on an ASP.NET Web S...

i want to put a variable in a aspx so when publishing it transform to actual date...

I want to put a variable in a aspx so when publishing it transform to actual date... I mean I want to change Actual date: 23/12/10 for Actual date: $date and when it compiles it gets rendered ...

Export Visual Studio Template error: "Unable to read an exported file"

When exporting a Visual Studio project to a Template (File/Export Template...) I get the following error upon clicking the Finish button: Unable to read an exported file for the following reason: The file cannot be opened with the selected editor. Please choose another editor. A Google search for this error has only le...

Is the Visual Studio template file just a regular .zip file or is it something else?

I'm trying to tweak a project template file exported by Visual Studio's "Export Template" wizard. At first glance this looks like just a garden-variety zip file, but it's not: I can't edit files. If I try to change or delete or replace a file in the zip archive, I get The Compressed (zipped) Folder is invalid or corrupted. If I uncompr...

Any idea how to use CodeCampServer template?

http://teamcity.codebetter.com/viewLog.html?buildId=11047&amp;tab=artifacts&amp;buildTypeId=bt21 CodeCampServer has two download packages: VisualStudioTemplate and CodeCampServerPackage. I looked for any idea how to use them, but unfortunately I didn't. So, I ask my questions here: How to use VisualStudioTemplate? the archive file di...

Dealing with child window from the view and sending results to viewModel

Silverlight version : 4 Silverlight patter :MVVM Visual Studio template :Silverlight navigation application 1)How do I deal with dialogs on the views e.g childwindow gets opened when a button is clicked? 2) How should the color's picker(inside the childwindow) control's hex value be communicated to the viewmodel? ...

Visual Studio - How to use an existing vsproj's project settings as a template for new project?

There is some software I want to write a plugin for. The software includes some sample plugins. I want to create a new fresh project but I want to use one of the sample plugin vsproj's project settings as a template. It doesn't seem very clear on how to do this. If I do "New Project From Existing Code" that only imports the cpp, h, etc ...

DotNetNuke Visual Studio Projects

I downloaded the DotNetNuke Visual Studio Installer, and the only project template I got was a Compiled Module. I've seen screen shots and examples where people had 'DNN Project' projects, and 'DNN Skin' projects. Did something go wrong with my installation? Where can I get a template for a DotNetNuke 5 Skin project? ...

Visual Studio project template mystery: Why is Context.Designer.vb file excluded?

My source project includes a LINQ to SQL DBML file called Context.dbml. This auto-generates a file called Context.designer.vb, which is included in the source project. I've created a Visual Studio template from this project. But when I go to create a new project using this template, Context.designer.vb is not included, so the new pro...

Templates for Visual Studio 2008 missing after full install of Standard Edition

I have a server with something called Visual Studio 2008 Shell (integrated mode) - ENU which only provides templates for SSIS work. I did not remove that before installing the VS 2008 Standard Edition (at the end of this there was no demand for a reboot). I then installed the Service Pack 1 for this VStudio product (again, no order for a...

What is the best way to include references to my own assemblies in a project template?

Guess the question says it all. We have developed a library in C#, and now I wish to create a project template to aid in using the library correctly. I want new projects to include a reference to the library assembly, but would prefer not to have to deploy the assembly to the GAC, or to depend on the assembly residing in some specific ...

Visual Studio Template Parameters: Machine Name Capitalized?

MSDN Template Parameters Is $machinename$ always capitalized? I wanted to write some code based on this return value, but Python's socket.gethostname() returns "Mark-PC" whereas $machinename$ returns "MARK-PC". If so, I'll just .upper() the hostname, but it seems kinda dumb that I should have to do this. Why the inconsistency? ...

Create a visual studio initial solution, with a tool or extension.

I found myself repeat on the same structure over and over again in all new projects. Is there a tool that I can use to create my own initial template? ...

How to include the solution name, when I add a project template?

I'm looking for something like $solutionname$ to prefix a project name template file: <RootNamespace>$solutionname$.$safeprojectname$</RootNamespace> <AssemblyName>$solutionname$.$safeprojectname$</AssemblyName> Is there any way to implement this? ...

Shared Templates in Visual Studio

I've got a bunch of useful Project Item templates for Visual Studio 2010 and I'd like to share them with the developers in my team. At the moment the zip files are sitting on a network share with an instructions text file telling users to copy the zips deep into their Documents folders. I'd much rather have Visual Studio look in the s...

What are each of the template types intended usage, pros and cons?

I have not hardly touched EF4, but I've used Linq to sql quite a lot. I would like to start into one of the EF templates but I have no idea what situations make sense for each or what their intent was. I have the following possibilities: Data templates ADO.NET Entity Data Model Service-based Database (is this even related to EF? Cod...