Skip to content

Commit 48f57cd

Browse files
WeihanLiaskpt
andauthored
build: migrate to slnx (#415)
<!-- Please use this template for your pull request. --> <!-- Please use the sections that you need and delete other sections --> ## This PR - migrate to slnx ### Related Issues <!-- add here the GitHub issue that this PR resolves if applicable --> Fixes #411 ### Notes Used the migrated slnx file --------- Signed-off-by: Weihan Li <weihanli@outlook.com> Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
1 parent cf65a32 commit 48f57cd

File tree

8 files changed

+68
-157
lines changed

8 files changed

+68
-157
lines changed

.github/workflows/dotnet-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
global-json-file: global.json
2424

2525
- name: dotnet format
26-
run: dotnet format --verify-no-changes OpenFeature.sln
26+
run: dotnet format --verify-no-changes OpenFeature.slnx

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"dotnet.defaultSolution": "OpenFeature.slnx",
23
"explorer.fileNesting.enabled": true,
34
"explorer.fileNesting.patterns": {
45
// shows *.feature.cs files as nested items

OpenFeature.sln

Lines changed: 0 additions & 151 deletions
This file was deleted.

OpenFeature.slnx

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<Solution>
2+
<Folder Name="/.root/">
3+
<File Path=".editorconfig" />
4+
<File Path=".gitignore" />
5+
<File Path=".gitmodules" />
6+
<File Path=".release-please-manifest.json" />
7+
<File Path="CHANGELOG.md" />
8+
<File Path="CODEOWNERS" />
9+
<File Path="CONTRIBUTING.md" />
10+
<File Path="global.json" />
11+
<File Path="LICENSE" />
12+
<File Path="README.md" />
13+
<File Path="release-please-config.json" />
14+
<File Path="renovate.json" />
15+
<File Path="version.txt" />
16+
</Folder>
17+
<Folder Name="/.root/.config/">
18+
<File Path=".config/dotnet-tools.json" />
19+
</Folder>
20+
<Folder Name="/.root/.github/" />
21+
<Folder Name="/.root/.github/ISSUE_TEMPLATE/">
22+
<File Path=".github/ISSUE_TEMPLATE/bug.yaml" />
23+
<File Path=".github/ISSUE_TEMPLATE/documentation.yaml" />
24+
<File Path=".github/ISSUE_TEMPLATE/feature.yaml" />
25+
</Folder>
26+
<Folder Name="/.root/.github/workflows/">
27+
<File Path=".github/workflows/ci.yml" />
28+
<File Path=".github/workflows/code-coverage.yml" />
29+
<File Path=".github/workflows/codeql-analysis.yml" />
30+
<File Path=".github/workflows/dotnet-format.yml" />
31+
<File Path=".github/workflows/e2e.yml" />
32+
<File Path=".github/workflows/lint-pr.yml" />
33+
<File Path=".github/workflows/release.yml" />
34+
</Folder>
35+
<Folder Name="/.root/.vscode/">
36+
<File Path=".vscode/launch.json" />
37+
<File Path=".vscode/tasks.json" />
38+
</Folder>
39+
<Folder Name="/.root/build/">
40+
<File Path="build/Common.prod.props" />
41+
<File Path="build/Common.props" />
42+
<File Path="build/Common.tests.props" />
43+
<File Path="build/openfeature-icon.png" />
44+
<File Path="build/xunit.runner.json" />
45+
</Folder>
46+
<Folder Name="/src/">
47+
<File Path="src/Directory.Build.props" />
48+
<File Path="src/Directory.Build.targets" />
49+
<Project Path="src/OpenFeature.DependencyInjection/OpenFeature.DependencyInjection.csproj" />
50+
<Project Path="src/OpenFeature.Hosting/OpenFeature.Hosting.csproj" />
51+
<Project Path="src/OpenFeature/OpenFeature.csproj" />
52+
</Folder>
53+
<Folder Name="/test/">
54+
<File Path="test/Directory.Build.props" />
55+
<Project Path="test/OpenFeature.Benchmarks/OpenFeature.Benchmarks.csproj" />
56+
<Project Path="test/OpenFeature.DependencyInjection.Tests/OpenFeature.DependencyInjection.Tests.csproj" />
57+
<Project Path="test/OpenFeature.E2ETests/OpenFeature.E2ETests.csproj" />
58+
<Project Path="test/OpenFeature.IntegrationTests/OpenFeature.IntegrationTests.csproj" />
59+
<Project Path="test/OpenFeature.Tests/OpenFeature.Tests.csproj" />
60+
</Folder>
61+
</Solution>

build/Common.tests.props

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

1212
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
13-
<Content Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.sln'))\build\xunit.runner.json">
13+
<Content Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.slnx'))\build\xunit.runner.json">
1414
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1515
</Content>
1616
</ItemGroup>

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"rollForward": "latestFeature",
4-
"version": "9.0.202",
4+
"version": "9.0.300",
55
"allowPrerelease": false
66
}
7-
}
7+
}

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<Project>
2-
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.sln'))\build\Common.prod.props" />
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.slnx'))\build\Common.prod.props" />
33
</Project>

test/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<Project>
2-
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.sln'))\build\Common.tests.props" />
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.slnx'))\build\Common.tests.props" />
33
</Project>

0 commit comments

Comments
 (0)