Open sky92archangel opened 4 months ago
Ah!! I found the problem , the AOT about NET8.0 ,my project TaxiFarePrediction.Console used AOT , which would cause problem at previous content ;
Editing the .csproj file will solve the previous problem ;
<PublishAot>false</PublishAot>
SO , NOW ,question update , when ML_NET could support the AOT ?
System information
STEP1
I created project [ TaxiFarePrediction.Console ] with net8.0 ; it has codefile GlobalUsings.cs
created code file Program.cs
STEP2
Then I created a shared project [ TaxiFarePrediction.Shared ]
created code file CreateAndRunPrediction.cs which is almostly same as the codefile : https://github.com/dotnet/samples/tree/main/machine-learning/tutorials/TaxiFarePrediction/Program.cs
CreateAndRunPrediction.cs :
TaxiTrip.cs
STEP3
project TaxiFarePrediction.Console reference the project TaxiFarePrediction.Shared
STEP4 error happen
When I built and executed the project TaxiFarePrediction.Console , a problem happend at the code :
AND the error infomation shows:
otherwise, if I put all code files into the project TaxiFarePrediction.Console , the code would be smooth ; SO, what's the problem about PlatformNotSupportedException , maybe my project structrue would cause some problem ?