Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
83 stars 10 forks source link

Unable to find an app.yaml or service.yam #347

Open det-iot opened 5 years ago

det-iot commented 5 years ago

I am trying to compile the default Service Fabric Mesh console project which is included in visual studio when you install the Mesh SDK.

I have chosen console type (but I also have the same problem with asp.net). Then, when we try to compile the project without making any change, we have this error:

========== Checking for Container Prerequisites ==========
SFA1006 : Unable to find an app.yaml or service.yaml file for the project xxxx.
Finding service projects failed.
========== Finished ==========

I think the error could be the default file: launchsetting.json which contains:

{
  'profiles': {
    'Console1': {
      'commandName': 'Project'
    },
    'Service Fabric Local Cluster': {
      'commandName': 'SFApp',
      'launchUrl': 'http://{ServiceIpAddress}:{ServicePort}'
    }
  }
}

Or de Dockerfile:

FROM microsoft/dotnet:2.1-runtime AS base
WORKDIR /app

FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY Console1/Console1.csproj Console1/
RUN dotnet restore Console1/Console1.csproj
COPY . .
WORKDIR /src/Console1
RUN dotnet build Console1.csproj -c Release -o /app

FROM build AS publish
RUN dotnet publish Console1.csproj -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Console1.dll"]

I also have a service fabric mesh local cluster running.

sgreenmsft commented 5 years ago

Some additional information would help to debug this. Could you set the build verbosity to diagnostic (Tools > Options > Projects and Solutions > Build and Run > MSBuild project build output verbosity), build the service fabric mesh application project (i.e. the .sfaproj file), and provide the build output?