dotnet-smartcomponents / smartcomponents

Experimental, end-to-end AI features for .NET apps
622 stars 54 forks source link

Error downloading onnxruntime #16

Closed egarim closed 2 months ago

egarim commented 3 months ago

When I add the following package to my project

I got the following error when I build from visual studio

Severity Code Description Project File Line Suppression State Error MSB3027 Could not copy "C:\Users\xarig.nuget\packages\microsoft.ml.onnxruntime\1.17.0\runtimes\ios\native\onnxruntime.xcframework\ios-arm64_x86_64-simulator\onnxruntime.framework\Headers\onnxruntime_session_options_config_keys.h" to "bin\Debug\net6.0\runtimes\ios\native\onnxruntime.xcframework\ios-arm64_x86_64-simulator\onnxruntime.framework\Headers\onnxruntime_session_options_config_keys.h". Exceeded retry count of 10. Failed. XafSmartComponents.Blazor.Server C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4911

the error does not happend if you build the project from the console using "dotnet build" or "dotnet run", I'm using windows 10 as OS

SteveSandersonMS commented 3 months ago

That's very odd. I don't know why the ONNX package would be trying to copy iOS-related assets to your build output.

Are you building an ASP.NET Core application, or is this a MAUI project?

If you can give repro steps (as in, exactly what project to create, using which SDK version, and what steps to take to get this error) I would definitely investigate.

egarim commented 3 months ago

is a Blazor application

SteveSandersonMS commented 3 months ago

Thanks for answering, but unfortunately we would need more detailed repro steps in order to investigate. The components work as expected in many other Blazor apps so we would need to figure out what's different about your app or about your dev machine setup.

Since you're saying the problem is specific to Visual Studio in your case (and does not happen when building from CLI) it might be there is a problem with your Visual Studio installation. You might need to uninstall it, and reinstall the latest version.

Sorry I can't give you more precise guidance without more details that could point at the cause!

SteveSandersonMS commented 2 months ago

I'll close due to lack of info - I guess you probably resolved it yourself already.