MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.28k stars 2.45k forks source link

Build the lasted MahApps.Metro solution failed(2018.12.12) #3403

Closed li-zheng-hao closed 5 years ago

li-zheng-hao commented 5 years ago

I followed the Quick Start for developers list,here is my steps: 1 Download the latest .net core 3.0.x and only have the lasted version in my computer. 2 my VS2017 version is 15.9.x and I have enabled Use previews of the .Net Core SDK 3 Clone the repository 4 clean the solution and rebuild 5 build failed

here are more information: .net core sdk image image image image

Warning:Package 'xamlcolor .....3.0.0.31' was restored using '.Net Framework Version=4.6.1' instead the project target framework '.Net Core version =3.0'. This package may not be fully compatible with your project.

Can someone help me?

li-zheng-hao commented 5 years ago

tim 20181213113101 image

and I try the command in project folder: .paket\paket restore But it doesn't work.

li-zheng-hao commented 5 years ago

Here are some information in output window :

Error occurred while restoring NuGet packages: The operation failed as details for project MahApps.Metro.Caliburn.Demo could not be loaded.
1>Paket version 5.194.0
1>The last restore is still up to date. Nothing left to do.
1>Performance:
1> - Runtime: 320 milliseconds
1>Paket version 5.194.0
1>The last restore is still up to date. Nothing left to do.
1>Performance:
1> - Runtime: 316 milliseconds
1>Paket version 5.194.0
1>The last restore is still up to date. Nothing left to do.
1>Performance:
1> - Runtime: 258 milliseconds
1>Paket version 5.194.0
1>The last restore is still up to date. Nothing left to do.
1>Performance:
1> - Runtime: 166 milliseconds
1>C:\Users\lizhenghao\.nuget\packages\microsoft.build.tasks.git\1.0.0-beta-63127-02\build\Microsoft.Build.Tasks.Git.targets(20,5): 
error : Unable to locate repository containing directory C:\Users\lizhenghao\Downloads\MahApps.Metro-develop\src\MahApps.Metro'.
1>Done building project "MahApps.Metro.csproj" -- FAILED.
1>C:\Users\lizhenghao\.nuget\packages\microsoft.build.tasks.git\1.0.0-beta-63127-02\build\Microsoft.Build.Tasks.Git.targets(20,5):
error : Unable to locate repository containing directory
C:\Users\lizhenghao\Downloads\MahApps.Metro-develop\src\MahApps.Metro'.
1>Done building project "MahApps.Metro.csproj" -- FAILED.
1>C:\Users\lizhenghao\.nuget\packages\microsoft.build.tasks.git\1.0.0-beta-63127-02\build\Microsoft.Build.Tasks.Git.targets(20,5): 
error : Unable to locate repository containing directory C:\Users\lizhenghao\Downloads\MahApps.Metro-develop\src\MahApps.Metro'.
1>Done building project "MahApps.Metro.csproj" -- FAILED.

And when I write the command .paket\paket restore ,it occurs some errors: image

titaniumn commented 5 years ago

Did you solved the problem? I have encounted the same problem.

li-zheng-hao commented 5 years ago

Did you solved the problem? I have encounted the same problem.

not yet. I download 1.6.0 version and it works well. So maybe you can git an older version and try again

li-zheng-hao commented 5 years ago

Did you solved the problem? I have encounted the same problem.

you can get it from here : https://github.com/MahApps/MahApps.Metro/releases

titaniumn commented 5 years ago

Did you solved the problem? I have encounted the same problem.

you can get it from here : https://github.com/MahApps/MahApps.Metro/releases

thank you, I tried the older version 1.6.0 before, it works well.

punker76 commented 5 years ago

Since dotnet core 3.0 sdk 009831 it no longer works with Visual Studio 2017 https://github.com/MahApps/MahApps.Metro/wiki/Building-the-MahApps.Metro-solution