2020 with :
2121 dotnet-version : 8.0.x
2222
23+ # Stride.CommunityToolkit
2324 - name : Restore Stride.CommunityToolkit dependencies
2425 run : dotnet restore ${{ env.PROJECT_PATH_CORE }}
25-
26+
27+ # Temporary solution, because of System.Security.Cryptography.Pkcs not found issue
28+ - name : Modify Stride.Core.Assets.CompilerApp.targets
29+ shell : pwsh
30+ run : |
31+ $targetsPath = Join-Path -Path (Get-ChildItem -Path "${env:USERPROFILE}\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2122\buildTransitive" -Filter "Stride.Core.Assets.CompilerApp.targets" -Recurse).DirectoryName -ChildPath "Stride.Core.Assets.CompilerApp.targets"
32+
33+ [xml]$targetsXml = Get-Content -Path $targetsPath
34+ $namespaceManager = New-Object System.Xml.XmlNamespaceManager($targetsXml.NameTable)
35+ $namespaceManager.AddNamespace("msbuild", "http://schemas.microsoft.com/developer/msbuild/2003")
36+
37+ $targetNode = $targetsXml.SelectSingleNode("//msbuild:Target[@Name='_StridePrepareAssetsForPack']", $namespaceManager)
38+ if ($targetNode -ne $null)
39+ {
40+ $targetNode.SetAttribute("Condition", "false")
41+ $targetsXml.Save($targetsPath)
42+ Write-Host "Modified _StridePrepareAssetsForPack target in Stride.Core.Assets.CompilerApp.targets"
43+ }
44+ else
45+ {
46+ Write-Host "_StridePrepareAssetsForPack target not found in Stride.Core.Assets.CompilerApp.targets"
47+ }
48+
2649 # - name: Get NuGet global-packages location
2750 # id: nuget-cache
2851 # run: |
@@ -41,35 +64,12 @@ jobs:
4164
4265 # - name: Copy System.Security.Cryptography.Pkcs DLL to output directory
4366 # run: |
44- # Copy-Item "c :\Users\Vacla \.nuget\packages\system.security.cryptography.pkcs\6.0.4\lib\net6.0\System.Security.Cryptography.Pkcs.dll" -Destination "src/Stride.CommunityToolkit/bin/Debug/net8.0/"
67+ # Copy-Item "C :\Users\runneradmin \.nuget\packages\system.security.cryptography.pkcs\6.0.4\lib\net6.0\System.Security.Cryptography.Pkcs.dll" -Destination "src/Stride.CommunityToolkit/bin/Debug/net8.0/"
4568 # shell: pwsh
4669
47- - name : Test Stride.CommunityToolkit
48- run : dotnet test ${{ env.PROJECT_PATH_CORE }} --no-build --verbosity normal
49-
70+ # Stride.CommunityToolkit.Skyboxes
5071 - name : Restore Stride.CommunityToolkit.Skyboxes dependencies
5172 run : dotnet restore ${{ env.PROJECT_PATH_SKYBOX }}
5273
53- - name : Modify Stride.Core.Assets.CompilerApp.targets
54- shell : pwsh
55- run : |
56- $targetsPath = Join-Path -Path (Get-ChildItem -Path "${env:USERPROFILE}\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2122\buildTransitive" -Filter "Stride.Core.Assets.CompilerApp.targets" -Recurse).DirectoryName -ChildPath "Stride.Core.Assets.CompilerApp.targets"
57-
58- [xml]$targetsXml = Get-Content -Path $targetsPath
59- $namespaceManager = New-Object System.Xml.XmlNamespaceManager($targetsXml.NameTable)
60- $namespaceManager.AddNamespace("msbuild", "http://schemas.microsoft.com/developer/msbuild/2003")
61-
62- $targetNode = $targetsXml.SelectSingleNode("//msbuild:Target[@Name='_StridePrepareAssetsForPack']", $namespaceManager)
63- if ($targetNode -ne $null)
64- {
65- $targetNode.SetAttribute("Condition", "false")
66- $targetsXml.Save($targetsPath)
67- Write-Host "Modified _StridePrepareAssetsForPack target in Stride.Core.Assets.CompilerApp.targets"
68- }
69- else
70- {
71- Write-Host "_StridePrepareAssetsForPack target not found in Stride.Core.Assets.CompilerApp.targets"
72- }
73-
7474 - name : Build Stride.CommunityToolkit.Skyboxes
7575 run : dotnet build ${{ env.PROJECT_PATH_SKYBOX }} --no-restore
0 commit comments