question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Guid sample in wiki no longer works

See original GitHub issue

The guid sample no longer works https://github.com/dotnet/templating/wiki/Available-Symbols-Generators#guid.

I created a template for this https://github.com/sayedihashimi/template-sample/tree/main/src/Samples/14-guid. All guids are generated as D.


Update (13.12.2021)

Action items:

  • fix example in wiki
  • deprecate format in generator definition in favor of using guids in template.json
  • add documentation on how to use guids in template.json
  • remove/deprecate guid generator from schemastore json schema

Related bug:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
vlada-shubinacommented, Dec 13, 2021

With that property is it possible to generate different formats as well?

Yes, you may. For example, if guid in template.json has D format and content has same guid in N, when replacing the format of final guid will be changed too.

0reactions
JanKrivanekcommented, Apr 4, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

GUID generator 'format' doesn't work · Issue #1737 · dotnet/ ...
It was working for me in the past when I created the guid sample. Can you double check your template.json to ensure it...
Read more >
Universally unique identifier
A Universally Unique Identifier (UUID) is a 128-bit label used for information in computer systems. The term Globally Unique Identifier (GUID) is also...
Read more >
Edit the Wiki (OSF Projects)
Edit the Wiki (OSF Projects) · Open the editor · Format text, bullets, headings, and more · Add files · Insert links ·...
Read more >
Markdown syntax for wikis - Azure DevOps
Learn how to share information and add tables & mathematical notation using Markdown within wikis.
Read more >
c# - How can I generate a GUID for a string?
The constructor of Guid expects a valid, string representation of a Guid. What you're looking for is called a Hash function. (for example: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found