I am trying to deploy stateless micro service application into service fabric but I get this error as soon as I start the deployment.
Project is targeting runtime 'win7-x64' but did not resolve any runtime-specific packages for the 'Microsoft.NETCore.App' package. This runtime may not be supported by .NET Core.
How to fix this ?
If you create your stateless micro service application on VS2019, you should note that
Net Core <=3.0
is not supported by Stateless project.So you should target your project framework to at least
Net Core 3.1
.Right-click on your project Properties-->Application-->change target framework version to
net core 3.1
.If I target project into net core 2.2, the error will happen.
Note that, you should make sure that your target framework version of the
pubxml
file is the same of your project target framework version.