Open sayedihashimi opened 6 years ago
Thanks, I'll make the appropriate updates!
I've taken care of the guid's and license file. Does the MSBuild file issue apply as this template is only good with .NET Core 2? From the referenced issue, it seemed like a bug with the 1.0.4 SDK; is the 2.0 SDK affected? From the referenced issue, it's not clear that the comment goes at the top of the project file or on specific property groups, so I'm not sure where that'd have to be applied?
Does the MSBuild file issue apply as this template is only good with .NET Core 2
It's not about target framework version, but instead TemplateEngine version that VS2017 carries. It's a bug in older versions of TemplateEngine. If this template is used with vs2017 15.3 it will not work.correctly.
FYI if you add <!--/-:cnd:noEmit -->
it will not be included in the generated output, so there is no change from a user perspective to adding that.
Okay, np. Does it go just once at the top of the project file or on each property group?
I reviewed your template and have the following comments.
template.json
should defineguids
which need to be replaced. You should include every<ProjectGuid>
from.*proj
files. You can use this PowerShell statement to find all guidsGet-ChildItem .\ * -Recurse -File|Select-String '[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}'
.<!--/-:cnd:noEmit -->
at the top of all MSBuild files (.*proj
files), see (this comment)[https://github.com/dotnet/templating/issues/1195#issuecomment-321344890] for more infoSome other things I noticed
One other thing to consider. I noticed that you included the
launchSettings.json
file. I'm guessing this is because you wire up the projects to talk to each other via their specific ports. One drawback from this approach is that the same port numbers will be used. This should work fine in most cases so it's not a big deal. If a user has two different instances of VS with a different solution in each only one of them will run at a time. I think we have all the features you would need to generate a new port number and then include that as a replacement into thelaunchSettings.json
, see https://github.com/dotnet/templating/wiki/Reference-for-available-macros.