Skip to content

Commit c8bbb55

Browse files
committed
New namespace
1 parent 78e4cdf commit c8bbb55

File tree

7 files changed

+25
-1907
lines changed

7 files changed

+25
-1907
lines changed

.github/workflows/dotnet.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
echo "$env:LocalAppData\Microsoft\dotnet;$env:UserProfile\.dotnet\tools;$env:PATH"
5757
$env:GITHUB_PATH="$env:LocalAppData\Microsoft\dotnet;$env:UserProfile\.dotnet\tools;$env:PATH"
5858
59-
- name: Setup .NET 6.0
59+
- name: Setup .NET 9.0
6060
if: steps.cache-dotnet-toolchain.outputs.cache-hit != 'true'
6161
uses: actions/setup-dotnet@v1
6262
with:
63-
dotnet-version: 6.0.x
63+
dotnet-version: 9.0.x
6464

6565
# packages don't like to restore if you don't clean first?
6666
# see: https://github.com/actions/setup-dotnet/issues/155
@@ -108,7 +108,7 @@ jobs:
108108
uses: nitz/publish-nuget@13cf3a0ec3840b62a0fd20d559ab1e2a63b0d75a
109109
with:
110110
PROJECT_FILE_PATH: BuildTimestampGenerator.csproj
111-
PACKAGE_NAME: cmdwtf.BuildTimestampGenerator
111+
PACKAGE_NAME: Lemutec.BuildTimestampGenerator
112112
TAG_COMMIT: true
113113
VERSION_FILE_PATH: BuildTimestampGenerator.csproj
114114
VERSION_REGEX: ^\s*<VersionPrefix>(.*)<\/VersionPrefix>\s*$

.meta/timestamp-icon-color.png

4.95 KB
Loading

BuildTimestamp.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
using Microsoft.CodeAnalysis;
44

5-
namespace cmdwtf.BuildTimestampGenerator
5+
namespace Lemutec.BuildTimestampGenerator
66
{
77
[Generator]
88
internal class BuildTimestamp : ISourceGenerator
@@ -16,7 +16,7 @@ public void Execute(GeneratorExecutionContext context)
1616
using System;
1717
using System.Diagnostics.CodeAnalysis;
1818
19-
namespace {nameof(cmdwtf)}
19+
namespace {nameof(Lemutec)}
2020
{{
2121
/// <summary>
2222
/// A static class representing when it was generated.
@@ -77,6 +77,8 @@ internal static class {nameof(BuildTimestamp)}
7777
context.AddSource($"{nameof(BuildTimestamp)}.g.cs", source);
7878
}
7979

80-
public void Initialize(GeneratorInitializationContext context) { }
80+
public void Initialize(GeneratorInitializationContext context)
81+
{
82+
}
8183
}
8284
}

BuildTimestampGenerator.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<IncludeBuildOutput>true</IncludeBuildOutput>
66
<IsRoslynComponent>true</IsRoslynComponent>
77

8-
<RootNamespace>cmdwtf.BuildTimestampGenerator</RootNamespace>
8+
<RootNamespace>Lemutec.BuildTimestampGenerator</RootNamespace>
99
<AssemblyName>$(RootNamespace)</AssemblyName>
1010
<Deterministic>true</Deterministic>
1111
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
@@ -20,23 +20,23 @@
2020
<PackageReleaseNotes>Initial release.</PackageReleaseNotes>
2121
<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>
2222
<PackageTags>source generator;build time;timestamp;datetime;datetimeoffset;analyzer;roslyn</PackageTags>
23-
<Product>cmd.wtf BuildTimestampGenerator</Product>
23+
<Product>BuildTimestampGenerator</Product>
2424

2525
<Authors>Chris Marc Dailey (nitz)</Authors>
2626
<PackageId>$(AssemblyName)</PackageId>
27-
<Company>cmd.wtf</Company>
27+
<Company>Lemutec</Company>
2828
<Copyright>© 2022 Chris Marc Dailey</Copyright>
2929
<EmbedUntrackedSources>true</EmbedUntrackedSources>
3030
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
3131
<IncludeSymbols>true</IncludeSymbols>
3232
<NoPackageAnalysis>true</NoPackageAnalysis>
33-
<PackageIcon>timestamp-icon-alt.png</PackageIcon>
33+
<PackageIcon>timestamp-icon-color.png</PackageIcon>
3434
<PackageLicenseExpression>0BSD</PackageLicenseExpression>
3535
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
36-
<PackageProjectUrl>https://cmd.wtf/projects/buildtimestamp</PackageProjectUrl>
36+
<PackageProjectUrl>https://github.com/Lemutec/BuildTimestampGenerator</PackageProjectUrl>
3737
<PublishRepositoryUrl>true</PublishRepositoryUrl>
3838
<RepositoryType>git</RepositoryType>
39-
<RepositoryUrl>https://github.com/cmdwtf/BuildTimestampGenerator</RepositoryUrl>
39+
<RepositoryUrl>https://github.com/Lemutec/BuildTimestampGenerator</RepositoryUrl>
4040
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
4141
<Title>$(Product)</Title>
4242
</PropertyGroup>
@@ -58,7 +58,7 @@
5858
<Content Include="$(cd).meta\$(PackageIcon)" Visible="false">
5959
<PackagePath>.\</PackagePath>
6060
</Content>
61-
<Content Include="$(cd)\LICENSE; $(cd)\copyright; $(cd)\*.md" Visible="false">
61+
<Content Include="$(cd)\LICENSE; $(cd)\*.md" Visible="false">
6262
<PackagePath>.\</PackagePath>
6363
</Content>
6464
</ItemGroup>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2022 nitz — chris marc dailey https://cmd.wtf
1+
Copyright © 2022 nitz — chris marc dailey
22

33
Permission to use, copy, modify, and/or distribute this software for any
44
purpose with or without fee is hereby granted.

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![build status](https://img.shields.io/github/workflow/status/cmdwtf/BuildTimestampGenerator/.NET%20Build%20&%20NuGet%20Publish)](https://github.com/cmdwtf/BuildTimestampGenerator/actions/workflows/dotnet.yaml) [![nuget](https://img.shields.io/nuget/v/cmdwtf.BuildTimestampGenerator)](https://www.nuget.org/packages/cmdwtf.BuildTimestampGenerator) [![license: 0BSD](https://img.shields.io/badge/license-0BSD-green)](./LICENSE)
1+
[![build status](https://github.com/lemutec/BuildTimestampGenerator/actions/workflows/dotnet.yml/badge.svg)](https://github.com/Lemutec/BuildTimestampGenerator/actions/workflows/dotnet.yaml) [![nuget](https://img.shields.io/nuget/v/Lemutec.BuildTimestampGenerator)](https://www.nuget.org/packages/Lemutec.BuildTimestampGenerator) [![license: 0BSD](https://img.shields.io/badge/license-0BSD-green)](./LICENSE)
22

33
![icon](.meta/timestamp-icon.png#gh-dark-mode-only)
44
![icon](.meta/timestamp-icon-alt.png#gh-light-mode-only)
@@ -8,18 +8,20 @@ Have you wanted a way to reliably get the time your application was compiled at,
88

99
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.)
1010

11+
Here is a forked repo, since `the word` is not allowed in the source code.
12+
1113
## ❓Usage
1214

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):
1416
```xml
1517
<ItemGroup>
16-
<PackageReference Include="cmdwtf.BuildTimestampGenerator" Version="*" PrivateAssets="all" />
18+
<PackageReference Include="Lemutec.BuildTimestampGenerator" Version="*" PrivateAssets="all" />
1719
</ItemGroup>
1820
```
1921
- If you want to refrence the project on disk rather than the NuGet package,
2022
see an example reference [here](https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview#code-try-4).
2123
- 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!
2325

2426
### ❗Example
2527

@@ -34,7 +36,7 @@ namespace HelloTimestamp
3436
{
3537
private static void Main(string[] args)
3638
{
37-
Console.WriteLine($"I was built at {cmdwtf.BuildTimestamp.BuildTime}");
39+
Console.WriteLine($"I was built at {Lemutec.BuildTimestamp.BuildTime}");
3840
}
3941
}
4042
}
@@ -49,9 +51,9 @@ I was built at 1/27/2022 12:54:21 PM
4951
(Obviously, your output will vary.)
5052

5153
## 📝 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.
5355

54-
Copyright © 2022 [Chris March Dailey](https://cmd.wtf)
56+
Copyright © 2022 Chris March Dailey
5557

5658
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
5759

0 commit comments

Comments
 (0)