@@ -49,15 +49,18 @@ protected override async Task<bool> Execute (Context context)
4949 var sdk_manifests = Path . Combine ( dotnetPath , "sdk-manifests" , context . Properties . GetRequiredValue ( KnownProperties . DotNetSdkManifestsFolder ) ) ;
5050
5151 // Copy the WorkloadManifest.* files from the latest Microsoft.NET.Workload.* listed in package-download.proj
52- var dotnets = new [ ] { "net6" , "net7" } ;
52+ // NOTE: the packages that actually *exist* in .NET 8 are mismatched right now...
53+ var dotnets = new [ ] { ".net6" , ".net7" , "" } ;
5354 foreach ( var dotnet in dotnets ) {
54- var destination = Path . Combine ( sdk_manifests , $ "microsoft.net.workload.mono.toolchain. { dotnet } ") ;
55+ var destination = Path . Combine ( sdk_manifests , $ "microsoft.net.workload.mono.toolchain{ dotnet } ") ;
5556 foreach ( var file in Directory . GetFiles ( string . Format ( Configurables . Paths . MicrosoftNETWorkloadMonoToolChainDir , dotnet ) , "WorkloadManifest.*" ) ) {
5657 Utilities . CopyFileToDir ( file , destination ) ;
5758 }
58- destination = Path . Combine ( sdk_manifests , $ "microsoft.net.workload.emscripten.{ dotnet } ") ;
59- foreach ( var file in Directory . GetFiles ( string . Format ( Configurables . Paths . MicrosoftNETWorkloadEmscriptenDir , dotnet ) , "WorkloadManifest.*" ) ) {
60- Utilities . CopyFileToDir ( file , destination ) ;
59+ if ( dotnet != "" ) {
60+ destination = Path . Combine ( sdk_manifests , $ "microsoft.net.workload.emscripten{ dotnet } ") ;
61+ foreach ( var file in Directory . GetFiles ( string . Format ( Configurables . Paths . MicrosoftNETWorkloadEmscriptenDir , dotnet ) , "WorkloadManifest.*" ) ) {
62+ Utilities . CopyFileToDir ( file , destination ) ;
63+ }
6164 }
6265 }
6366
0 commit comments