© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
Indeed

Creating template with parameters on line basis

How can I create a template with parameters in my case Asp.Net Core, where some lines in certain files exist only purely based on passed parameters? Like
-I true/false
-I true/false
for Identity Server 4 and if false i shouldn't be registering the service for it in the MVC part and there shouldn't be
Identity Server
Identity Server
project? Could you point me where i can read about it?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Creating a template
C#CC# / help
3y ago
❔ Split on new line preserving empty line
C#CC# / help
3y ago
Background services with parameters
C#CC# / help
4y ago