Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-project template is generating two .sln files #38

Closed
hallidev opened this issue Oct 2, 2018 · 4 comments
Closed

Multi-project template is generating two .sln files #38

hallidev opened this issue Oct 2, 2018 · 4 comments

Comments

@hallidev
Copy link

hallidev commented Oct 2, 2018

I've been following this YouTube video closely to build a multi-project template:
https://www.youtube.com/watch?v=g6az_N95dVM

My template solution (.NET Core) has the following structure:

/Company.WebApi.sln
/.template.config
/Company.WebApi.Model/Company.WebApi.Model.csproj
/Company.WebApi.Web/Company.WebApi.Web.csproj
/Company.WebApi.Service/Company.WebApi.Service.csproj
/Company.WebApi.Repository/Company.WebApi.Repository.csproj
/WebApiTemplatePack

When I actually use the template, I'd like to get the same structure minus the ".template.config" and "WebApiTemplatePack" folders.

Instead, I get the following:

/Company.WebApi.sln <--- this .sln file seems to have the correct projects in it
/Company.WebApi/Company.WebApi.sln <--- this .sln file has everything from my template project
/Company.WebApi/Company.WebApi.Model/Company.WebApi.Model.csproj
/Company.WebApi/Company.WebApi.Web/Company.WebApi.Web.csproj
/Company.WebApi/Company.WebApi.Service/Company.WebApi.Service.csproj
/Company.WebApi/Company.WebApi.Repository/Company.WebApi.Repository.csproj
/Company.WebApi/WebApiTemplatePack <--- not sure why this is being included

This is my package.json, located in .template.config from above:

{ "author": "CompanyName", "classifications": [], "description": "template description", "name": "CompanyName Web API", "defaultName": "MyApi", "identity": "WebApi.CSharp", "groupIdentity": "WebApi", "tags": { "language": "C#", "type": "project" }, "shortName": "companywebapi", "sourceName": "Company.WebApi", "guids": [ "{550200D0-EAAA-4811-8B92-456049A64119}", "{4AF4B8D5-3587-40C4-9639-9568582448EE}", "{CB49A0FE-8EE2-4F95-A06F-E1472710F286}", "{BCFC9351-7D50-4516-B959-36B1770360DC}", "{A40A911A-8BA3-4C44-8917-513E0E45FCC8}", "{E43D9CC6-96EC-421E-8F0D-1D15587EBEC9}" ], "primaryOutputs": [ { "path": "Company.WebApi.Web\\Company.WebApi.Web.csproj" }, { "path": "Company.WebApi.Model\\Company.WebApi.Model.csproj" }, { "path": "Company.WebApi.Repository\\Company.WebApi.Repository.csproj" }, { "path": "Company.WebApi.Repository.Interface\\Company.WebApi.Repository.Interface.csproj" }, { "path": "Company.WebApi.Service\\Company.WebApi.Service.csproj" }, { "path": "Company.WebApi.Service.Interface\\Company.WebApi.Service.Interface.csproj" } ] }

Is there anything obvious I'm doing wrong?

@avrahamcool
Copy link

I think this problem was discussed here - #25

@hallidev
Copy link
Author

hallidev commented Oct 2, 2018

Boy I thought I had read the issues closely, but I must have missed this. I'll give those solutions a shot.

Thanks!

@sayedihashimi
Copy link
Member

@hallidev did that work for you?

@hallidev
Copy link
Author

hallidev commented Jan 8, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants