Dotnet plugin and solution files

I am trying to use a solution file with the dotnet plugin.

It seems that solution files are not supported – only .csproj files.

As a simple test case I did the following.

dotnet new sln --name FooBar
dotnet new console --name Foo --output Foo
dotnet new console --name Bar --output Bar
dotnet sln add .\Foo\Foo.csproj
dotnet sln add .\Bar\Bar.csproj

At this point I had a working solution.

I then put together a small yaml file like this:

name: snaptest
version: ‘0.1’
summary: Snap dotnet solution software
description: Compile a solution

grade: devel # must be ‘stable’ to release into candidate/stable channels
confinement: devmode # use ‘strict’ once you have the right plugs and slots

apps:
Foo:
command: Foo

parts:
snaptest:
plugin: dotnet
source: src


The snapcraft is able to build and publish the solution, and then it fails.

Is there a way to get the dotnet plugin to support a solution file.

Did you get any solution for this ? :frowning: … if so please do share. I am having similar issues