Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:15:21+00:00 2026-06-15T06:15:21+00:00

Environment: Visual studio 2012, MvcScaffolding I’m new to MvcScaffolding and Powershell but what I’m

  • 0

Environment: Visual studio 2012, MvcScaffolding

I’m new to MvcScaffolding and Powershell but what I’m trying to accomplish is to add a new Project to the solution of the current project. So basically the user has 1 solution, and 1 project in that solution, runs a scaffolding command and it generates a few other projects in that solution. I don’t want to add an item to the current Project so Add-ProjectItemViaTemplate doesn’t help me there. Is this the right technology to use here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:15:23+00:00Added an answer on June 15, 2026 at 6:15 am

    I did figure this out, but i don’t believe this was the route I wanted to take. I’m opting for a custom multi-project Template to handle my project creations, and then using mvcscaffolding for the class generation later.

    This code does work though to generate a created class library project into the current solution and was really hard for me to dig up so i’m posting it here

    [T4Scaffolding.Scaffolder(Description = "Enter a description here")]                      [CmdletBinding()]
     param(        
    [string]$Project,
    [string]$CodeLanguage,
    [string[]]$TemplateFolders,
    [switch]$Force = $false
    )
    $slnName = [System.IO.Path]::GetFilename($dte.DTE.Solution.FullName)
    $path = $dte.DTE.Solution.FullName.Replace($slnName,'').Replace('\\','\')
    $sln = Get-Interface $dte.Solution ([EnvDTE80.Solution2]) 
    $templatePath = $sln.GetProjectTemplate("ClassLibrary.zip","CSharp")
    $sln.AddFromTemplate($templatePath, $path+'TestingLibGen','TestingLibGen')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Environment is Visual Studio 2012, ServiceStack, ASP.NET Web Application Project (followed https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice ) Looking
Environment: Visual Studio 2008 SP1 How can I write the following regex? I'm trying
After installing Visual Studio 2012 and opening/upgrading a Visual Studio 2010 solution from Team
Environment Visual Studio 2008 SP1 Visual C# WPF Application Project .NET Framework 3.5 Problem
environment: microsoft visual studio 2008 c# How do I get the index of a
My environment: Microsoft Visual Studio 2010 C# I've read many articles and comments about,
We have a Visual Studio Wizard written using the DTE environment to automatically generate
Something, maybe the windows sdk or visual studio installer, has defined the Platform environment
Environment : Visual Studio 2010 v10.0.31118.1 SP1, Addins : jetBrain,DXCore,VisualSVN Windows 7 (up to
Environment: Visual Studio 2008 SP1 I have the following line in my text file:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.