Description
Describe the bug
I have a repository that produces a static website using github pages. It is based upon .net 6 P6; When I build and publish using the p6 sdk everything works; However, if I let the sdk 'float' to the p7 sdk the publish step does not move all of the content to the appropriate locations. Look at the content of wwwroot in each case. The only difference is the sdk specified in the yml action file. The directory listings are from artifacts produced during the build and moved to my local machine.
The build steps are
dotnet build --configuration Release --version-suffix P6 Material.Blazor.Website.WebAssembly/Material.Blazor.WebSite.WebAssembly.csproj
dotnet publish --no-build --output ./siteWeb --configuration Release --version-suffix P6 Material.Blazor.Website.WebAssembly/Material.Blazor.WebSite.WebAssembly.csproj -p:BlazorEnableCompression=false
Content produced with the p6 sdk:
Removed, see additional comments
Content produced by the p7 sdk:
Removed, see additional comments
What is very odd is that when I run the same commands locally on my Windows10 system they work as expected with the P7 SDK. Something in the Github actions environment using a windows job step is different and trips the P7 SDK during publish.
To Reproduce
Exceptions (if any)
Further technical details
VS2022 P3
C:\Downloads\Microsoft\VisualStudio2022>dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.7.21379.14
Commit: 22d70b47bc
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.100-preview.7.21379.14\
Host (useful for support):
Version: 6.0.0-preview.7.21377.19
Commit: 91ba01788d
.NET SDKs installed:
3.1.412 [C:\Program Files\dotnet\sdk]
5.0.303 [C:\Program Files\dotnet\sdk]
6.0.100-preview.7.21379.14 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.7.21378.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.7.21377.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.7.21378.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
C:\Downloads\Microsoft\VisualStudio2022>