Windows-XAML / Template10

Making Windows 10 apps great again
Apache License 2.0
1.41k stars 389 forks source link

Unable load T10 project form GitHub #1718

Open Dedecekhribecek opened 4 years ago

Dedecekhribecek commented 4 years ago

Hello

I am not able build project from Template10 GitHub. I am not sure where is the problem (source code, Visual studio or Windows). My windows is version 10. 0. 19028. insider preview fast ring, Visual Studio is Microsoft Visual Studio Community 2019 Version 16.3.10 VisualStudio.16.Release/16.3.10+29519.87

There are 3 Solutions in Template10 GitHub

1. Template10.Nuget.Sample is OK 1>------ Rebuild All started: Project: Template10.Nuget.Sample, Configuration: Debug ARM ------ 1> Template10.Nuget.Sample -> C:\Users\PetrM\Source\Repos\Template10\Samples\Template10.Nuget.Sample\Template10.Nuget.Sample\bin\ARM\Debug\Template10.Nuget.Sample.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

2. I could not load Template10.Core.Default Error occurred while restoring NuGet packages: The operation failed as details for project Template10.Core.Default could not be loaded. Error occurred while restoring NuGet packages: The operation failed as details for project Template10.Core could not be loaded. ========== Rebuild All: 1 succeeded, 6 failed, 1 skipped ==========

3. And similar situation in Template10.Core solution Error occurred while restoring NuGet packages: The operation failed as details for project Template10.Core could not be loaded. ========== Rebuild All: 0 succeeded, 7 failed, 1 skipped ==========

Visual studio 2019 interface

image

Here is link to ZIP file with Visual studio activity log. https://1drv.ms/u/s!AhtRMLXsfitXmIF6fRHPQHQZ7g_Efg?e=QNvQXy

Do not hesitate and ask me for details. Petr

JerryNixon commented 4 years ago

What's your Visual Studio version?

JerryNixon commented 4 years ago

I will also ask @darenm who might recognize the error.

Dedecekhribecek commented 4 years ago

What's your Visual Studio version?

The version of root topic is Microsoft Visual Studio Community 2019 Version 16.3.10. I have a new version of software. Problem remain on Microsoft Visual Studio Community 2019 Version 16.4.1 and Windows build 19041.1 too.

darenm commented 4 years ago

I'll take a look... I know we had issues going back and forth between the project types.

JerryNixon commented 4 years ago

I should also ask, which SLN are you attempting to open?

Dedecekhribecek commented 4 years ago

I should also ask, which SLN are you attempting to open?

Opening repository "https://github.com/Windows-XAML/Template10.git" In solution Template 10 sub-solutions : Template10.Core - problem Template10.Core.Default - problem Template10.Nuget.Sample - OK Template10.Nuget.Sample - OK Sample.Template10.Behaviors - OK

image

JerryNixon commented 4 years ago

So, one thing to consider is that we are using the new SDK format which requires an updated MSBuild. This is not your problem, per se, as you already have the latest MSBuild via Visual Studio 2019. That said, @darenm and I have had some trouble with this new project type. It could be that you are having the same problem as I am having (I have something similar to what you are experiencing) and I have considered if we should just return back to the Universal Windows Class Library project type that didn't give us trouble - that I can remember. I don't know, I am going to lean on @darenm here to tell me what he thinks because I just don't know what to do to make it so the projects load reliably as long as a developer has a certain SDK installed. We're not going to get any pull requests otherwise, that is for sure. And, I am using the current unlisted version of Template 10 in my projects right now only because I am having loading problems, too. So I want to figure this out. For sure.

JerryNixon commented 4 years ago

I wonder if @onovotny would be willing to peek at this project and consult?

clairernovotny commented 4 years ago

I don't know if there's enough data here to know what's going on. The project file looks ok AFAICT. I'd suggest using the "Report a Problem" button and maybe @davkean can take a look into what VS is doing here.

davkean commented 4 years ago

We don't have support for UWP in SDK-based projects, I would switch back to supported project types until we have support.

Dedecekhribecek commented 4 years ago

Thanks all for help

JerryNixon commented 4 years ago

image

I can tell this will be a delicate process. Nonetheless, I have the solution opening, building and publishing nuget packages. I will push this up to Master in just a few minutes.

image

JerryNixon commented 4 years ago

Okay, pull request in, Master is updated. Please confirm and close this issue.

https://github.com/Windows-XAML/Template10/pull/1724