Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Custom Project Template - dotnew new, change the Project Name

$
0
0

I have created a custom template in Core and installed it. Let's say the template is based off a project named "MySweetProject.csproj".

Now I create a new project based on this template and issue the follwing command:

dotnet new mysweetproject -o 'MySweetProject2' -n 'MySweetProject2'

The new project is created in a folder titled "MySweetProject2", however the csproj file inside is titled "MySweetProject.csproj". I was expecting "MySweetProject2.csproj" based on the -n argument.

Is there anyway to get the csproj file name to match the arguments? Or can I update the template in some way to make that happen?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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