Skip to content

Commit c53e583

Browse files
author
Nikolay Pyanikov
committed
Change the package IDs, namespaces, and project names to not refer to TeamCity.
1 parent a4c400e commit c53e583

File tree

441 files changed

+660
-878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+660
-878
lines changed

.config/dotnet-tools.json

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
"commands": [
88
"dotnet-dotcover"
99
]
10-
},
11-
"teamcity.csi": {
12-
"version": "1.0.4",
13-
"commands": [
14-
"dotnet-csi"
15-
]
1610
}
1711
}
1812
}

.teamcity/pom.xml

-120
This file was deleted.

.teamcity/settings.kts

-156
This file was deleted.

Build/Build.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<TargetFrameworks>$(Frameworks)</TargetFrameworks>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="TeamCity.CSharpInteractive" Version="1.0.5" />
7+
<PackageReference Include="TeamCity.CSharpInteractive" Version="1.0.5-beta" />
88
</ItemGroup>
99
</Project>

Build/Program.cs

+15-15
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
using JetBrains.TeamCity.ServiceMessages.Write.Special;
55
using NuGet.Versioning;
66

7-
const string solutionFile = "TeamCity.CSharpInteractive.sln";
8-
const string packageId = "TeamCity.CSharpInteractive";
9-
const string toolPackageId = "TeamCity.csi";
10-
const string templatesPackageId = "TeamCity.CSharpInteractive.Templates";
7+
const string solutionFile = "CSharpInteractive.sln";
8+
const string packageId = "CSharpInteractive";
9+
const string toolPackageId = "dotnet-csi";
10+
const string templatesPackageId = "CSharpInteractive.Templates";
1111
var frameworks = new[] {"net6.0", "net7.0"};
1212

1313
var currentDir = Environment.CurrentDirectory;
@@ -21,8 +21,8 @@
2121
var apiKey = Property.Get("apiKey", "");
2222
var integrationTests = bool.Parse(Property.Get("integrationTests", Tools.UnderTeamCity.ToString()));
2323
var defaultVersion = NuGetVersion.Parse(Property.Get("version", "1.0.0-dev", Tools.UnderTeamCity));
24-
var outputDir = Path.Combine(currentDir, "TeamCity.CSharpInteractive", "bin", configuration);
25-
var templateOutputDir = Path.Combine(currentDir, "TeamCity.CSharpInteractive.Templates", "bin", configuration);
24+
var outputDir = Path.Combine(currentDir, "CSharpInteractive", "bin", configuration);
25+
var templateOutputDir = Path.Combine(currentDir, "CSharpInteractive.Templates", "bin", configuration);
2626

2727
var dockerLinuxTests = false;
2828
new DockerCustom("info").WithShortName("Defining a docker container type")
@@ -52,21 +52,21 @@
5252
{
5353
new PackageInfo(
5454
packageId,
55-
Path.Combine("TeamCity.CSharpInteractive", "TeamCity.CSharpInteractive.csproj"),
56-
Path.Combine(outputDir, "TeamCity.CSharpInteractive", $"{packageId}.{packageVersion.ToString()}.nupkg"),
55+
Path.Combine("CSharpInteractive", "CSharpInteractive.csproj"),
56+
Path.Combine(outputDir, "CSharpInteractive", $"{packageId}.{packageVersion.ToString()}.nupkg"),
5757
packageVersion,
5858
true),
5959

6060
new PackageInfo(
6161
toolPackageId,
62-
Path.Combine("TeamCity.CSharpInteractive", "TeamCity.CSharpInteractive.Tool.csproj"),
63-
Path.Combine(outputDir, "TeamCity.CSharpInteractive.Tool", $"{toolPackageId}.{packageVersion.ToString()}.nupkg"),
62+
Path.Combine("CSharpInteractive", "CSharpInteractive.Tool.csproj"),
63+
Path.Combine(outputDir, "CSharpInteractive.Tool", $"{toolPackageId}.{packageVersion.ToString()}.nupkg"),
6464
packageVersion,
6565
true),
6666

6767
new PackageInfo(
6868
templatesPackageId,
69-
Path.Combine("TeamCity.CSharpInteractive.Templates", "TeamCity.CSharpInteractive.Templates.csproj"),
69+
Path.Combine("CSharpInteractive.Templates", "CSharpInteractive.Templates.csproj"),
7070
Path.Combine(templateOutputDir, $"{templatesPackageId}.{templatePackageVersion.ToString()}.nupkg"),
7171
templatePackageVersion,
7272
false)
@@ -131,7 +131,7 @@
131131
.AddArgs(cmd.Args)
132132
.AddArgs(
133133
$"--dcOutput={dotCoverSnapshot}",
134-
"--dcFilters=+:module=TeamCity.CSharpInteractive.HostApi;+:module=dotnet-csi",
134+
"--dcFilters=+:module=CSharpInteractive.HostApi;+:module=dotnet-csi",
135135
"--dcAttributeFilters=System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage"))
136136
.Build());
137137

@@ -189,7 +189,7 @@
189189
Warning($"{uninstallTool} failed.");
190190
}
191191

192-
var installTool = new DotNetCustom("tool", "install", toolPackageId, "-g", "--version", packageVersion.ToString(), "--add-source", Path.Combine(outputDir, "TeamCity.CSharpInteractive.Tool"))
192+
var installTool = new DotNetCustom("tool", "install", toolPackageId, "-g", "--version", packageVersion.ToString(), "--add-source", Path.Combine(outputDir, "CSharpInteractive.Tool"))
193193
.WithShortName("Installing tool");
194194

195195
if (installTool.Run(output => WriteLine(output.Line)) != 0)
@@ -221,7 +221,7 @@
221221
{
222222
var sampleProjectDir = Path.Combine("Samples", "DemoProject", "MySampleLib", "MySampleLib.Tests");
223223
Assertion.Succeed(new DotNetCustom("new", "build", $"--package-version={packageVersion}", "-T", framework, "--no-restore").WithWorkingDirectory(buildProjectDir).Run(), $"Creating a new {sampleProjectName}");
224-
Assertion.Succeed(new DotNetBuild().WithProject(buildProjectDir).AddSources(Path.Combine(outputDir, "TeamCity.CSharpInteractive")).WithShortName($"Building the {sampleProjectName}").Build());
224+
Assertion.Succeed(new DotNetBuild().WithProject(buildProjectDir).AddSources(Path.Combine(outputDir, "CSharpInteractive")).WithShortName($"Building the {sampleProjectName}").Build());
225225
Assertion.Succeed(new DotNetRun().WithProject(buildProjectDir).WithNoBuild(true).WithWorkingDirectory(sampleProjectDir).Run(), $"Running a build for the {sampleProjectName}");
226226
Assertion.Succeed(new DotNetCustom("csi", Path.Combine(buildProjectDir, "Program.csx")).WithWorkingDirectory(sampleProjectDir).Run(), $"Running a build as a C# script for the {sampleProjectName}");
227227
}
@@ -272,4 +272,4 @@
272272
WriteLine($"The coverage percentage: {coveragePercentage}", Color.Highlighted);
273273
return 0;
274274

275-
record PackageInfo(string Id, string Project, string Package, NuGetVersion Version, bool Publish);
275+
internal record PackageInfo(string Id, string Project, string Package, NuGetVersion Version, bool Publish);

Build/Program.csx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// https://github.com/JetBrains/teamcity-csharp-interactive
1+
// https://github.com/DevTeam/csharp-interactive
22

33
// Changes a verbosity level (Quiet, Normal or Diagnostic)
44
// #l Diagnostic

0 commit comments

Comments
 (0)