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.3k stars 2.45k forks source link

Can't Load Solution With VS2019 #3581

Closed benjamin275 closed 5 years ago

benjamin275 commented 5 years ago

tried to following steps from here, but solution still does not rebuild. https://github.com/MahApps/MahApps.Metro/wiki/Building-the-MahApps.Metro-solution

Must be a dependency or installation, but i dont know which one

errors from vs2019 D:\DEV\MahApps.Metro-develop\src\MahApps.Metro\MahApps.Metro.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\MahApps.Metro.Samples\MahApps.Metro.Demo\MahApps.Metro.Demo.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\MahApps.Metro.Samples\MahApps.Metro.Caliburn.Demo\MahApps.Metro.Caliburn.Demo.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\Mahapps.Metro.Tests\MahApps.Metro.Tests.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\MahApps.Metro\MahApps.Metro.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

what i have done yet:

so what can i do to check what im still missing ?

timunie commented 5 years ago

@benjamin275 I am not a programmer by profession, so I cannot definitiv say what your solution would be. But what I did when I had a similar issue was:

If this doesn't help, someone else needs to help you.

Happy coding, Tim

benjamin275 commented 5 years ago

point one says:

PM> Update-Package –reinstall Update-Package : Project 'Default' is not found. At line:1 char:1

Point 2: project is not yet loaded, so i dont have an clean solution option available

....

timunie commented 5 years ago

Have you tried this in the Solution Folder with VS closed?

This is my last idea, sorry. I hope someone else could help you.

Happy coding, Tim

benjamin275 commented 5 years ago

not possible, there is not even such folders, because i was not able to even load the project, either rebuild them

punker76 commented 5 years ago

@benjamin275 Which VS 2019 have you installed? (16.x.x)

benjamin275 commented 5 years ago

16.2.3

makingbloke commented 5 years ago

Sorry, I’m a bit late to this thread. I’m using VS2019 with Mahapps metro and not having any problems. I’ve lost the earlier e-mails what errors are you seeing in the output window when you attempt to load the project?

On Mon, 26 Aug 2019 at 15:55, benjamin275 notifications@github.com wrote:

not possible, there is not even such folders, because i was not able to even load the project, either rebuild them

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MahApps/MahApps.Metro/issues/3581?email_source=notifications&email_token=ABPMCPMMCADHL6MON6L3XQ3QGPVGNA5CNFSM4IPDCLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ET3MA#issuecomment-524893616, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPMCPKTRH6TGRMWR2NQKHLQGPVGNANCNFSM4IPDCLQA .

benjamin275 commented 5 years ago

Sorry, I’m a bit late to this thread. I’m using VS2019 with Mahapps metro and not having any problems. I’ve lost the earlier e-mails what errors are you seeing in the output window when you attempt to load the project? On Mon, 26 Aug 2019 at 15:55, benjamin275 @.***> wrote: not possible, there is not even such folders, because i was not able to even load the project, either rebuild them — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3581?email_source=notifications&email_token=ABPMCPMMCADHL6MON6L3XQ3QGPVGNA5CNFSM4IPDCLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ET3MA#issuecomment-524893616>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPMCPKTRH6TGRMWR2NQKHLQGPVGNANCNFSM4IPDCLQA .

errors from vs2019 D:\DEV\MahApps.Metro-develop\src\MahApps.Metro\MahApps.Metro.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\MahApps.Metro.Samples\MahApps.Metro.Demo\MahApps.Metro.Demo.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\MahApps.Metro.Samples\MahApps.Metro.Caliburn.Demo\MahApps.Metro.Caliburn.Demo.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\Mahapps.Metro.Tests\MahApps.Metro.Tests.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

D:\DEV\MahApps.Metro-develop\src\MahApps.Metro\MahApps.Metro.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.

timunie commented 5 years ago

@benjamin275 I have searched a bit on the web regarding your problem. It could be an issue with your Installation of .NET-Core or VisualStudio itself. Have a look at the first search results: https://www.google.com/search?q=he%20project%20file%20cannot%20be%20opened%20by%20the%20project%20system%2C%20because%20it%20is%20missing%20some%20critical%20imports%20or%20the%20referenced%20SDK%20cannot%20be%20found.

Happy coding Tim

benjamin275 commented 5 years ago

still the same problem:

makingbloke commented 5 years ago

I tend to remove the projects I’m not using from the solution. Try opening the projects one at a time and seeing which one fails. My guess is you haven’t installed a required SDK so doing a repair won’t make any difference. You need to find out which sdk is missing and add it with the VS installer.

On Tue, 27 Aug 2019 at 09:21, benjamin275 notifications@github.com wrote:

still the same problem:

  • repair VS2019, does not hellp
  • did the gac uninstall Build stuff
  • check the global.json, which has 3.0.100-repview; same as installed Core on my computer

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MahApps/MahApps.Metro/issues/3581?email_source=notifications&email_token=ABPMCPNHAXTVKKHSQS2XV6LQGTPYXA5CNFSM4IPDCLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5G5PVA#issuecomment-525195220, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPMCPMNYJJ5EOAWUTQGYNDQGTPYXANCNFSM4IPDCLQA .

benjamin275 commented 5 years ago

yeah i also was on that, i even tried to create a new wpf application. At first im only interested in the Metro-Examples. So i tried to add existing project to the new one, which also failed.

yeah i tried to experimented also installing sdk`s. But did also not work.

error still remain as initially posted: D:\DEV\MahApps.Metro-develop\src\MahApps.Metro\MahApps.Metro.csproj : error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found

benjamin275 commented 5 years ago

image

benjamin275 commented 5 years ago

image

benjamin275 commented 5 years ago

.NET Core SDKs installed: dotnet --info 2.2.108 [C:\Program Files (x86)\dotnet\sdk] 2.2.205 [C:\Program Files (x86)\dotnet\sdk] 2.2.301 [C:\Program Files (x86)\dotnet\sdk] 2.2.401 [C:\Program Files (x86)\dotnet\sdk] 3.0.100-preview6-012264 [C:\Program Files (x86)\dotnet\sdk]

benjamin275 commented 5 years ago

also tried x64 versions, no success either.... :(

image

benjamin275 commented 5 years ago

problem solved. On my maschine i had win10. i opened solution there, where it more exactly says which things failed. On win7 i only had the mentioned error messages. after get it worked on win10 i returned to win7. There now i get more errors messages. Adapted to them, had to remove compiler errors on build for WpfAnalyzers/Fody because of downgrade and so on...installed framework 4.7(MUST be developted pack, runtime was not enough).... now it worked