Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to add a project to an existing solution (in Visual Studio) AND name that project with Dynamic Name

$
0
0

Let me give some more information on what I am trying to accomplish: we have created a 'one project' Blazor template in Visual Studio, so that our staff can get up and running with new development projects faster.

The template includes our own dll's/references and nugets and other important files that all of our apps utilize.

Currently we have the developers create a new project using the template, and then manually add a second project to the solution for our data tier (models, repositories, context, etc). To meet our department standards, we always follow the naming convention of the second project as: ProjectName.Data

So, if a developer uses the template to create a new project called MyNewProject, they will name their second project, within the solution, MyNewProject.Data.

Here is what I want to do, moving forward: I want to update the template so that it already has the second project added. But how can I configure the name of the data project so that it updates dynamically?

For example: the template is called Template and the second project is called Template.Data.

When a developer uses the template (with multiple projects), how can we make it so that the name of the data project is updated accordingly?

Developer uses template to create a new project called: MyNewProject. I want the second project to automatically be named MyNewProject.Data - NOT Template.Data.

I was looking at $SafeProjectName, but can't seem to figure out how to use that for the naming of the second project within the template.

Is this even possible?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>