You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Description>A small source generator that outputs a class, `BuildTimestamp`, that contains several variables that describe when the source generator was run (and thus when your project was built.)</Description>
@@ -8,18 +8,20 @@ Have you wanted a way to reliably get the time your application was compiled at,
8
8
9
9
This is a small Roslyn source generator that outputs a class, `BuildTimestamp`, that contains several variables that describe when the source generator was run (and thus when your project was built.)
10
10
11
+
Here is a forked repo, since `the word` is not allowed in the source code.
12
+
11
13
## ❓Usage
12
14
13
-
- Reference the source generator (sometimes called 'analyzer') in your `.csproj`, to [install it from NuGet](https://www.nuget.org/packages/cmdwtf.BuildTimestampGenerator):
15
+
- Reference the source generator (sometimes called 'analyzer') in your `.csproj`, to [install it from NuGet](https://www.nuget.org/packages/Lemutec.BuildTimestampGenerator):
- If you want to refrence the project on disk rather than the NuGet package,
20
22
see an example reference [here](https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview#code-try-4).
21
23
- Build once so packages are restored and source can be generated.
22
-
- Use the properties of the class `cmdwtf.BuildTimestamp` to determine your compile time!
24
+
- Use the properties of the class `Lemutec.BuildTimestamp` to determine your compile time!
23
25
24
26
### ❗Example
25
27
@@ -34,7 +36,7 @@ namespace HelloTimestamp
34
36
{
35
37
privatestaticvoidMain(string[] args)
36
38
{
37
-
Console.WriteLine($"I was built at {cmdwtf.BuildTimestamp.BuildTime}");
39
+
Console.WriteLine($"I was built at {Lemutec.BuildTimestamp.BuildTime}");
38
40
}
39
41
}
40
42
}
@@ -49,9 +51,9 @@ I was built at 1/27/2022 12:54:21 PM
49
51
(Obviously, your output will vary.)
50
52
51
53
## 📝 License
52
-
cmdwtf.BuildTimestampGenerator is [licensed](./LICENSE) under the Zero-Clause BSD License (SPDX-License-Identifier: 0BSD). If you're interested in cmdwtf.BuildTimestampGenerator under other terms, please contact the authors. cmdwtf.BuildTimestampGenerator may make use of several open source packages. Those packages are each covered by their own copyrights and licenses, which are available via the tooling you use to restore the packages when building. As well, some portions of code are distributed under terms of other licenses, which are designated in comments. See `copyright` for more details.
54
+
Lemutec.BuildTimestampGenerator is [licensed](./LICENSE) under the Zero-Clause BSD License (SPDX-License-Identifier: 0BSD). If you're interested in cmdwtf.BuildTimestampGenerator under other terms, please contact the authors. cmdwtf.BuildTimestampGenerator may make use of several open source packages. Those packages are each covered by their own copyrights and licenses, which are available via the tooling you use to restore the packages when building. As well, some portions of code are distributed under terms of other licenses, which are designated in comments. See `copyright` for more details.
0 commit comments