dotnet snapcraft.yaml problem/solution => error: cannot find app

while building a dotnet app I noticed all the .yaml files in the examples use:

 

apps:

         app:

          ....ect 

parts:

         app:

          ....ect

 

Note that <app> showld be replaced with your command name for best practice (to the best of my knowledge although documentation is limited)

 

apps:

         my-app:

          ....ect 

parts:

         my-app:

          ....ect

 

not doing so will give an error when you try and run that snap:
error: cannot find app "<your app command>" in "<your app name>"

*note this does not prevent you from running but make it much harder to troubleshoot. 

 

Best reply by nickH

Thanks for the hint for improvement. If you want to, you can also suggest it on github. 

Best regards,

Nick 

View original
1 reply