Azure-Samples / service-fabric-dotnet-quickstart

Service Fabric quickstart .net application sample
MIT License
131 stars 199 forks source link

Latest SDK: Voting.sfproj: The application which this project type is based on was not found. #4

Closed greigs closed 6 years ago

greigs commented 6 years ago

I am unable to load the Voting.sfproj using the latest version of VS2017 (15.5.2) with the latest version of the Microsoft Azure Service Fabric SDK (2.8.232).

Unsupported This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them. For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.

klettier commented 6 years ago

Hello,

Your error seems not related to the version of the SDK you are using, are you sure to have selected Service Fabric tools during the VS 2017 installation.

image

If it's not the case you can add it from Microsoft visual studio Installer

Here is the detail of what should be installed

image

Hope it's help you

hamstelfo commented 6 years ago

Hi,

I'm getting some errors just after open the solution. I have to say that I already could run other Service Fabric examples like the Stateful Service example, and manage the local cluster, etc.. so I think I have all the necessary tools installed.

In this case, after just open the solution: 1) Got 15 erros like "The Microsoft.AspNetCore 2.0.1 package is not compatible with net461".. The same with Microsoft.AspNetCore.StaticFiles, Microsoft.Extensions.Logging.Debug, etc.. 2) Also I got the notification of "NuGet packages should be restored".. Does not matter what I click,.. I got finally 46 erros like "The type or the namespace MVC does not exist in the namespace Microsoft.AspNetCore".

Could you help, please? Thanks.

klettier commented 6 years ago

Hello,

Be sure to have dotnet sdk in at least version 2 installed and VS 2017 with last updates.

kevin

mikkelhegn commented 6 years ago

I'm closing this issue for now as it looks like the questions were resolved.

SamHard commented 6 years ago

I experienced a similar problem, and the VS installer had the "Service Fabric Tools" box checked already. I was able to resolve the issue by unchecking that box, clicking "Update" so that the feature would be uninstalled, and then re-installing the feature.