Skip to content

Commit 19ba691

Browse files
committed
refactor: replace SDK-style project references with direct imports
Projects no longer use `<Project Sdk="Stride.Build.Sdk">`. Every .csproj now imports SDK props/targets directly from source: <Project> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove(...))\sdk\...\Sdk.props" /> ... <Import Project="$(StrideRoot)sources\sdk\...\Sdk.targets" /> </Project> The props import uses GetDirectoryNameOfFileAbove (no pre-set property needed) and the targets import uses $(StrideRoot) (safe after the SDK chain is loaded). SDK internal cross-references (Editor and Tests SDKs) now use $(MSBuildThisFileDirectory) relative paths instead of the Sdk= resolver. Other changes: - global.json: msbuild-sdks entries commented out - nuget.config: stride-sdks source and packageSourceMapping commented out - .github/actions/build-sdk: removed (no longer a prerequisite) - build/compile.bat: removed SDK build step - sources/Directory.Build.props: replaced TODO with explanatory comment - build/docs/SDK-GUIDE.md: added direct-import section and revert guide - sources/sdk/README.md: new file explaining import modes and revert steps To revert to full-SDK mode: build SDK packages, uncomment global.json and nuget.config entries, restore <Project Sdk="..."> opening tags, and revert the four SDK internal files. See sources/sdk/README.md.
1 parent ea48001 commit 19ba691

149 files changed

Lines changed: 577 additions & 203 deletions

File tree

Some content is hidden

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

.github/actions/build-sdk/action.yml

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

.github/workflows/build-android.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ jobs:
7676
echo "ANDROID_NDK_ROOT=$ndkPath" >> $env:GITHUB_ENV
7777
echo "ANDROID_NDK_HOME=$ndkPath" >> $env:GITHUB_ENV
7878
echo "Using NDK at: $ndkPath"
79-
- uses: ./.github/actions/build-sdk
8079
- name: Debug NDK Configuration
8180
shell: pwsh
8281
run: |

.github/workflows/build-assembly-processor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
- uses: actions/setup-dotnet@v4
4949
with:
5050
dotnet-version: '10.0.x'
51-
- uses: ./.github/actions/build-sdk
5251
- name: Build
5352
run: |
5453
dotnet build build\Stride.AssemblyProcessor.sln `

.github/workflows/build-ios.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
dotnet-version: '10.0.x'
5555
- name: Install .NET iOS Workload
5656
run: dotnet workload install ios
57-
- uses: ./.github/actions/build-sdk
5857
- name: Build
5958
run: |
6059
dotnet build build\Stride.iOS.slnf `

.github/workflows/build-launcher.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
- uses: actions/setup-dotnet@v4
5151
with:
5252
dotnet-version: '10.0.x'
53-
- uses: ./.github/actions/build-sdk
5453
- name: Build
5554
run: |
5655
dotnet build build\Stride.Launcher.sln `

.github/workflows/build-linux-runtime.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
- uses: actions/setup-dotnet@v4
6363
with:
6464
dotnet-version: '10.0.x'
65-
- uses: ./.github/actions/build-sdk
6665
- name: Build
6766
run: |
6867
dotnet build build\Stride.Runtime.slnf `

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
- uses: microsoft/setup-msbuild@v3
5151
with:
5252
vs-version: '[18.0,19.0)'
53-
- uses: ./.github/actions/build-sdk
5453
- name: Build
5554
run: |
5655
msbuild build\Stride.VisualStudio.slnx `

.github/workflows/build-windows-full.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
- uses: actions/setup-dotnet@v4
4848
with:
4949
dotnet-version: '10.0.x'
50-
- uses: ./.github/actions/build-sdk
5150
- name: Build
5251
run: |
5352
dotnet build build\Stride.slnx `

.github/workflows/build-windows-runtime.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
- uses: actions/setup-dotnet@v4
6666
with:
6767
dotnet-version: '10.0.x'
68-
- uses: ./.github/actions/build-sdk
6968
- name: Build
7069
run: |
7170
dotnet build build\Stride.Runtime.slnf `

.github/workflows/test-linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
run: |
5050
sudo apt-get update
5151
sudo apt-get install -y libbsd-dev clang llvm lld
52-
- uses: ./.github/actions/build-sdk
5352
- name: Patch NativePath for Linux
5453
run: |
5554
# Make strlcat_chk and strlcpy_chk non-fatal on Linux

0 commit comments

Comments
 (0)