Can`t pack maui at local using public resource
I am packing maui 9.0rc2 at local,but due to not found of dotnet-sdk-9.0.100-rc.2.24474.11-osx-arm64.tar.gz, I could not build it.
I had a question on https://github.com/dotnet/maui/discussions/25135, but no one cares about it.
XXX@LDNS-MINI-MT-0003 my_maui % dotnet cake --pack
The assembly 'Cake.Android.SdkManager, Version=3.0.2.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.33.0).
For best compatibility it should target Cake.Core version 4.0.0.
The assembly 'Cake.AppleSimulator, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.33.0).
For best compatibility it should target Cake.Core version 4.0.0.
The assembly 'Cake.FileHelpers, Version=3.2.1.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.33.0).
For best compatibility it should target Cake.Core version 4.0.0.
========================================
dotnet
========================================
Restore complete (0.3s)
DotNet failed with 7 error(s) (8.6s)
dotnet_install : error : https://dotnetbuilds.blob.core.windows.net/public/Sdk/9.0.100-rc.2.24474.11/dotnet-sdk-9.0.100-rc.2.24474.11-osx-arm64.tar.gz
curl : (22) The requested URL returned error : 404
dotnet_install : error : https://dotnetbuilds.blob.core.windows.net/public/Sdk/9.0.100-rc.2.24474.11/dotnet-dev-osx-arm64.9.0.100-rc.2.24474.11.tar.gz
curl : (22) The requested URL returned error : 404
dotnet_install : error : Could not find `.NET Core SDK` with version = 9.0.100-rc.2.24474.11
dotnet_install : error : Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
@maonaoda yea unfortunately this will probably be the case until we get to GA and the GA bits are public
@maonaoda what branch are you on?
main should work but rc2 specifically probably won't
@PureWeen I am using the tag branch of 9.0.0-rc.2.24503.2. I have downloaded the resources required for the pack through other methods. I look forward to the GA. Thank you.
Task Duration
--------------------------------------------------
dotnet 01:30:53.8552021
android-aar 00:00:03.8267293
dotnet-pack-maui 00:02:17.3590667
dotnet-pack-additional 00:00:12.2908612
dotnet-pack-library-packs 00:00:00.0017941
dotnet-pack-docs 00:02:10.5073510
--------------------------------------------------
Total: 01:35:37.8411459
According to the logic of this branch, when I want to compile files related to net8.0-android and net8.0-ios, is the following setting wrong? https://github.com/dotnet/maui/blob/8c61eed9a6008cb84ef5b5d8c42d56c9843f5a3a/Directory.Build.props#L148C1-L152C88
<IosPreviousTargetFrameworkVersion>17.5</IosPreviousTargetFrameworkVersion>
<AndroidPreviousTargetFrameworkVersion>35.0</AndroidPreviousTargetFrameworkVersion>
I had to modify it to the original to build
Sorry for the inconvenience, if this still doesn't work after GA in 2 weeks, please let us know!
@jfversluis
Oh no, This is terrible :(
wangyk@LDNS-MINI-MT-0003 my_maui % dotnet cake --pack --configuration="Release"
The assembly 'Cake.Android.SdkManager, Version=3.0.2.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.33.0).
For best compatibility it should target Cake.Core version 4.0.0.
The assembly 'Cake.AppleSimulator, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.33.0).
For best compatibility it should target Cake.Core version 4.0.0.
The assembly 'Cake.FileHelpers, Version=3.2.1.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.33.0).
For best compatibility it should target Cake.Core version 4.0.0.
localDotnet:True
========================================
dotnet
========================================
Restore complete (0.2s)
DotNet failed with 5 error(s) (19.3s)
curl : (22) The requested URL returned error : 404
curl : (22) The requested URL returned error : 404
dotnet_install : error : Could not find `.NET Core SDK` with version = 9.0.100-rtm.24529.9
dotnet_install : error : Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
/Users/wangyk/Projects/Practice/my_maui/src/DotNet/DotNet.csproj(139,5): error MSB3073: The command "bash '/Users/wangyk/Projects/Practice/my_maui/temp/dotnet-install.sh' --version 9.0.100-rtm.24529.9 --install-dir '/Users/wangyk/Projects/Practice/my_maui/.dotnet/' --verbose --azure-feed https://dotnetbuilds.blob.core.windows.net/public" exited with code 1.
dotnet cake --pack --configuration="Release" --workloads=loca
Set the workloads as local or not set will use the dotnet sdk download to .dotnet folder.
so set workloads with other keyword will use the local sdk installed by yourself. And don`t need to download the sdk from unreachable public resource.
Hopefully this information can be added to the instructions.