and now how to snap the dotnet app using only the published binaries ?.
I would need to do this way, because the developers team from my project gives me only the published binaries in my project and i need to snap it.
i have tried using the below snapcraft.yaml file :
name: secondwebapi
version: '0.1'
summary: A simple example snap for dotnet in snaps
description: A simple example snap for dotnet in snaps
grade: devel
confinement: strict
base: core
apps:
test1:
command: secondwebapi
parts:
test1:
source: .
plugin: dotnet
and its not working. Can someone help me with this ?
You should use the dump plugin instead… plugins are meant to drive the build process for the content under source, considering that you have already built the assets, you just need to dump them.
name: secondwebapi
version: '0.1'
summary: A simple example snap for dotnet in snaps
description: A simple example snap for dotnet in snaps
grade: devel
confinement: strict
base: core
apps:
test1:
command: dotnet secondwebapi
parts:
test1:
source: .
plugin: dump