unoplatform / Uno.Samples

A collection of code samples for the Uno Platform
http://platform.uno/
Other
218 stars 108 forks source link

[Control library] Windows error and android error when debugging #697

Open Darsh0307 opened 5 months ago

Darsh0307 commented 5 months ago

There is an error message coming when i am trying to run for control library when trying to run with windows as porject head.

THe same one is working comletely fine for wasm and skia gtk

Windows

3>  Task "WriteLinesToFile"
3>    Skipping write to file "obj\x64\Debug\net8.0-windows10.0.19041.0\Uno.Sample.ControlLibrary.Windows.csproj.FileListAbsolute.txt" because content would not change.
3>  Done executing task "WriteLinesToFile".
3>
3>Done building project "Uno.Sample.ControlLibrary.Windows.csproj" -- FAILED.
3>
3>Build FAILED.
3>
3>C:\Users\DarshPatel\Desktop\QA\samples\Uno.Samples\UI\ControlLibrary\Apps\Uno.Sample.ControlLibrary.Windows\Uno.Sample.ControlLibrary.Windows.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'C:\Users\DarshPatel\Desktop\QA\samples\Uno.Samples\UI\ControlLibrary\Apps\Uno.Sample.ControlLibrary\bin\Debug\net8.0-windows10.0.19041\Uno.Sample.ControlLibrary.dll'
3>C:\Users\DarshPatel\Desktop\QA\samples\Uno.Samples\UI\ControlLibrary\Apps\Uno.Sample.ControlLibrary.Windows\Uno.Sample.ControlLibrary.Windows.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'C:\Users\DarshPatel\Desktop\QA\samples\Uno.Samples\UI\ControlLibrary\XamlControlLibrary\bin\Debug\net8.0-windows10.0.19041\XamlControlLibrary.dll'
3>CSC : error CS0006: Metadata file 'C:\Users\DarshPatel\Desktop\QA\samples\Uno.Samples\UI\ControlLibrary\Apps\Uno.Sample.ControlLibrary\bin\Debug\net8.0-windows10.0.19041\Uno.Sample.ControlLibrary.dll' could not be found
3>CSC : error CS0006: Metadata file 'C:\Users\DarshPatel\Desktop\QA\samples\Uno.Samples\UI\ControlLibrary\XamlControlLibrary\bin\Debug\net8.0-windows10.0.19041\XamlControlLibrary.dll' could not be found
3>    0 Warning(s)
3>    4 Error(s)
3>
3>Time Elapsed 00:00:01.52
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 3:

Android

2>  Done executing task "MSBuild" -- FAILED.
2>
2>Done building project "Uno.Sample.ControlLibrary.csproj" -- FAILED.
2>
2>Build FAILED.
2>
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm-aot' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm64-aot' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x86' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x86-aot' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64-aot' is not recognized. See https://aka.ms/netsdk1083 for more information.
2>    0 Warning(s)
2>    7 Error(s)
2>
2>Time Elapsed 00:00:00.49

ControlLibrary.zip

jeromelaban commented 5 months ago

Upgrading to single project will fix this.