Skip to content

Commit ccf8fa0

Browse files
committed
rename
1 parent 3c1f945 commit ccf8fa0

File tree

21 files changed

+35
-35
lines changed

21 files changed

+35
-35
lines changed

.github/workflows/build-and-package.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
env:
1414
DOTNET_VERSION: '8.0.x'
1515
GO_VERSION: '1.22.2'
16-
NUGET_PACKAGE_NAME: 'd2.Net'
16+
NUGET_PACKAGE_NAME: 'D2Sharp'
1717
CI: true
1818

1919
jobs:
@@ -59,20 +59,20 @@ jobs:
5959

6060
- name: Build native library
6161
run: |
62-
cd src/d2.Net/d2wrapper
62+
cd src/D2Sharp/d2wrapper
6363
go build -buildmode=c-shared -o d2wrapper${{ runner.os == 'Windows' && '.dll' || runner.os == 'macOS' && '.dylib' || '.so' }} .
6464
65-
- name: Upload d2.Net build artifact
65+
- name: Upload D2Sharp build artifact
6666
uses: actions/upload-artifact@v3
6767
with:
6868
name: d2net-${{ matrix.os }}
69-
path: src/d2.Net/bin/Release/net8.0/d2.Net.*
69+
path: src/D2Sharp/bin/Release/net8.0/D2Sharp.*
7070

7171
- name: Upload native library
7272
uses: actions/upload-artifact@v3
7373
with:
7474
name: d2wrapper-${{ matrix.os }}
75-
path: src/d2.Net/d2wrapper/d2wrapper*
75+
path: src/D2Sharp/d2wrapper/d2wrapper*
7676

7777
- name: Upload build logs on failure
7878
if: failure()
@@ -106,46 +106,46 @@ jobs:
106106
mkdir -p package/runtimes/linux-x64/native
107107
mkdir -p package/runtimes/osx-x64/native
108108
109-
cp artifacts/d2net-ubuntu-latest/d2.Net.dll package/lib/net8.0/
109+
cp artifacts/d2net-ubuntu-latest/D2Sharp.dll package/lib/net8.0/
110110
cp artifacts/d2wrapper-windows-latest/d2wrapper.dll package/runtimes/win-x64/native/
111111
cp artifacts/d2wrapper-ubuntu-latest/d2wrapper.so package/runtimes/linux-x64/native/
112112
cp artifacts/d2wrapper-macos-latest/d2wrapper.dylib package/runtimes/osx-x64/native/
113113
114114
- name: Get version
115115
id: get_version
116116
run: |
117-
VERSION=$(grep -oP '(?<=<VersionPrefix>).*(?=</VersionPrefix>)' src/d2.Net/d2.Net.csproj)
118-
SUFFIX=$(grep -oP '(?<=<VersionSuffix>).*(?=</VersionSuffix>)' src/d2.Net/d2.Net.csproj)
117+
VERSION=$(grep -oP '(?<=<VersionPrefix>).*(?=</VersionPrefix>)' src/D2Sharp/D2Sharp.csproj)
118+
SUFFIX=$(grep -oP '(?<=<VersionSuffix>).*(?=</VersionSuffix>)' src/D2Sharp/D2Sharp.csproj)
119119
if [ ! -z "$SUFFIX" ]; then
120120
VERSION="$VERSION-$SUFFIX"
121121
fi
122122
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
123123
124124
- name: Create nuspec file
125125
run: |
126-
cat << EOF > d2.Net.nuspec
126+
cat << EOF > D2Sharp.nuspec
127127
<?xml version="1.0" encoding="utf-8"?>
128128
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
129129
<metadata>
130-
<id>d2.Net</id>
130+
<id>D2Sharp</id>
131131
<version>${{ steps.get_version.outputs.VERSION }}</version>
132132
<authors>Your Name</authors>
133-
<description>d2.Net is a .NET wrapper for the D2 diagramming library</description>
133+
<description>D2Sharp is a .NET wrapper for the D2 diagramming library</description>
134134
<dependencies>
135135
<group targetFramework="net8.0">
136136
<dependency id="Microsoft.Extensions.Logging" version="8.0.0" />
137137
</group>
138138
</dependencies>
139139
</metadata>
140140
<files>
141-
<file src="lib\net8.0\d2.Net.dll" target="lib\net8.0" />
141+
<file src="lib\net8.0\D2Sharp.dll" target="lib\net8.0" />
142142
<file src="runtimes\**\*" target="runtimes" />
143143
</files>
144144
</package>
145145
EOF
146146
147147
- name: Pack NuGet package
148-
run: nuget pack d2.Net.nuspec -BasePath package
148+
run: nuget pack D2Sharp.nuspec -BasePath package
149149

150150
- name: Upload NuGet package
151151
uses: actions/upload-artifact@v3
@@ -168,8 +168,8 @@ jobs:
168168
- name: Get version
169169
id: get_version
170170
run: |
171-
VERSION=$(grep -oP '(?<=<VersionPrefix>).*(?=</VersionPrefix>)' src/d2.Net/d2.Net.csproj)
172-
SUFFIX=$(grep -oP '(?<=<VersionSuffix>).*(?=</VersionSuffix>)' src/d2.Net/d2.Net.csproj)
171+
VERSION=$(grep -oP '(?<=<VersionPrefix>).*(?=</VersionPrefix>)' src/D2Sharp/D2Sharp.csproj)
172+
SUFFIX=$(grep -oP '(?<=<VersionSuffix>).*(?=</VersionSuffix>)' src/D2Sharp/D2Sharp.csproj)
173173
if [ ! -z "$SUFFIX" ]; then
174174
VERSION="$VERSION-$SUFFIX"
175175
fi

d2.Net.sln renamed to D2Sharp.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "d2.Net", "src\d2.Net\d2.Net.csproj", "{49592517-A5C2-40A6-96C7-2A6E58E5329D}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "D2Sharp", "src\D2Sharp\D2Sharp.csproj", "{49592517-A5C2-40A6-96C7-2A6E58E5329D}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{E1137A34-2773-40CE-BC87-19D4E3D99DD0}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "d2.Net.Web", "examples\d2.Net.Web\d2.Net.Web.csproj", "{4193F921-CDE4-4754-93BB-2CB06A6FA083}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "D2Sharp.Web", "examples\D2Sharp.Web\D2Sharp.Web.csproj", "{4193F921-CDE4-4754-93BB-2CB06A6FA083}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# d2.Net
1+
# D2Sharp
22

3-
d2.Net wraps the D2 diagramming library for .NET, allowing you to create diagrams with C# in your .NET applications.
3+
D2Sharp wraps the D2 diagramming library for .NET, allowing you to create diagrams with C# in your .NET applications.
44

55
## Features
66

@@ -28,9 +28,9 @@ Unix-based systems:
2828

2929
## Project Structure
3030

31-
- `src/d2.Net`: Main library project
32-
- `examples/d2.Net.Web`: Web demo application
33-
- `src/d2.Net/d2wrapper`: Go wrapper code
31+
- `src/D2Sharp`: Main library project
32+
- `examples/D2Sharp.Web`: Web demo application
33+
- `src/D2Sharp/d2wrapper`: Go wrapper code
3434

3535
## Setup
3636

@@ -60,6 +60,6 @@ var svg = wrapper.RenderDiagram(script);
6060
Running the web demo:
6161

6262
```
63-
cd examples/d2.Net.Web
63+
cd examples/D2Sharp.Web
6464
dotnet run
6565
```

depcheck.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function Check-GCC64 {
5757
}
5858

5959
# Main script
60-
Write-Host "Checking prerequisites for d2.Net project..." -ForegroundColor Cyan
60+
Write-Host "Checking prerequisites for D2Sharp project..." -ForegroundColor Cyan
6161

6262
Check-DotNetSDK
6363
Check-Go

depcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ check_gcc() {
4848
}
4949

5050
# Main script
51-
echo "Checking prerequisites for d2.Net project..."
51+
echo "Checking prerequisites for D2Sharp project..."
5252
echo
5353

5454
check_dotnet_sdk

examples/d2.Net.Web/d2.Net.Web.csproj renamed to examples/D2Sharp.Web/D2Sharp.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<ProjectReference Include="..\..\src\d2.Net\d2.Net.csproj" />
10+
<ProjectReference Include="..\..\src\D2Sharp\D2Sharp.csproj" />
1111
</ItemGroup>
1212

1313
</Project>

examples/d2.Net.Web/Program.cs renamed to examples/D2Sharp.Web/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using d2.Net;
1+
using D2Sharp;
22
using Microsoft.AspNetCore.Mvc;
33

44
var builder = WebApplication.CreateBuilder(args);

examples/d2.Net.Web/wwwroot/index.html renamed to examples/D2Sharp.Web/wwwroot/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>d2.Net Web Demo</title>
6+
<title>D2Sharp Web Demo</title>
77
<style>
88
body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
99
textarea { width: 100%; height: 200px; }
1010
#result { margin-top: 20px; }
1111
</style>
1212
</head>
1313
<body>
14-
<h1>d2.Net Web Demo</h1>
14+
<h1>D2Sharp Web Demo</h1>
1515
<textarea id="script" placeholder="Enter your D2 script here...">direction: right
1616
A -> B -> C</textarea>
1717
<button onclick="renderDiagram()">Render Diagram</button>

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
go 1.22.2
22

3-
use ./src/d2.Net/d2wrapper
3+
use ./src/D2Sharp/d2wrapper

src/d2.Net/d2.Net.csproj renamed to src/D2Sharp/D2Sharp.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
<InformationalVersion>$(VersionPrefix)-$(VersionSuffix)</InformationalVersion>
1717

1818
<!-- Package metadata -->
19-
<Product>d2.Net</Product>
19+
<Product>D2Sharp</Product>
2020
<Description>A .NET wrapper for the D2 library</Description>
2121
<PackageLicenseExpression>MIT</PackageLicenseExpression>
22-
<PackageProjectUrl>https://github.com/AlrikOlson/d2.Net</PackageProjectUrl>
23-
<RepositoryUrl>https://github.com/AlrikOlson/d2.Net.git</RepositoryUrl>
22+
<PackageProjectUrl>https://github.com/AlrikOlson/D2Sharp</PackageProjectUrl>
23+
<RepositoryUrl>https://github.com/AlrikOlson/D2Sharp.git</RepositoryUrl>
2424
<RepositoryType>git</RepositoryType>
2525
<PackageTags>d2;diagram;visualization</PackageTags>
2626
<PackageReadmeFile>README.md</PackageReadmeFile>

src/d2.Net/D2Wrapper.cs renamed to src/D2Sharp/D2Wrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Microsoft.Extensions.Logging;
33
using Microsoft.Extensions.Logging.Abstractions;
44

5-
namespace d2.Net;
5+
namespace D2Sharp;
66

77
public partial class D2Wrapper
88
{

src/d2.Net/d2wrapper/build.bat renamed to src/D2Sharp/d2wrapper/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if "%CONFIGURATION%"=="" (
99
set CONFIGURATION=Debug
1010
)
1111

12-
REM Copy the built dll to the D2.Net project based on the configuration
12+
REM Copy the built dll to the D2Sharp project based on the configuration
1313
xcopy /y /d "d2wrapper.dll" "..\bin\%CONFIGURATION%\net8.0\"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)