Warning about attempting to create a Service Fabric AspNetCore2 project

Using the latest version of the Service Fabric SDK (5.7.198) and Visual Studio Professional 15.3.1

I'm having trouble trying to debug or deploy an aspnetcore2.0 service without status. I did not make changes to the project after the project creation wizard, except for adding a new controller.

I tried reinstalling both x64 and x86 versions of the .Net Core SDK. The project is x64. Below is the whole .csproj

  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
    <IsServiceFabricServiceProject>True</IsServiceFabricServiceProject>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.0.0" PrivateAssets="All" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.0" />
    <PackageReference Include="Microsoft.ServiceFabric" Version="5.7.198" />
    <PackageReference Include="Microsoft.ServiceFabric.AspNetCore.Kestrel" Version="2.7.198" />
    <PackageReference Include="Microsoft.ServiceFabric.Data" Version="2.7.198" />
    <PackageReference Include="Microsoft.ServiceFabric.Services" Version="2.7.198" />
    <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.0" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.0" />
  </ItemGroup>

  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
  </ItemGroup>

"AMD64" "C:\Program \DotNet\SDK\NuGetFallbackFolder\microsoft.visualstudio.web.codegeneration.design\2.0.0\Lib\net461\DotNet--CodeGenerator-design.exe", "X86". . , , , . MyApi C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1987

. Github

GitHub Repo

+4
1

. Microsoft.VisualStudio.Web.CodeGeneration.Design . .csproj, NuGet. , .

+4

Source: https://habr.com/ru/post/1684066/


All Articles