Mahapps.metro: Can't Load Solution With VS2019

Created on 23 Aug 2019  Â·  17Comments  Â·  Source: MahApps/MahApps.Metro

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:

  • vs2019 installed
  • net core sdlk 3.0.100 preview6(x64)
  • frameworks installed (4.5.2, 4.7.2, 4.8)

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

Most helpful comment

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

All 17 comments

@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

point one says:

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

  • Update-Package –reinstall
  • ~~~~~

    • CategoryInfo : ObjectNotFound: (Default:String) [Update-Package], ItemNotFoundException

    • FullyQualifiedErrorId : NuGetProjectNotFound,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand

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

....

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

  • Delete these folders: ...\bin\ and ...\obj\

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

Happy coding,
Tim

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

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

16.2.3

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
.

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.

@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

still the same problem:

  • repair VS2019, does not help
  • did the gac uninstall MSBuild stuff
  • check the global.json, which has 3.0.100-review; same as installed Core on my computer
  • installed all in x86 (sdk 3.0.100 preview6, sdk 2.2.401, runtime 3.0.0 Preview 6)

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
.

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

image

image

.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]

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

image

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

Was this page helpful?
0 / 5 - 0 ratings