Snapcraft fails when snapping .net core console application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Invalid
|
Undecided
|
Sergio Schvezov |
Bug Description
I have a solution with one project called 'console' that simply writes 'Hello World' to the console. After building the application I get an error like this (I included the output from the successful build as well)
Welcome to .NET Core!
-------
Learn more about .NET Core @ https:/
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_
You can read more about .NET Core tools telemetry @ https:/
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 6489 ms
Expanding 100% 7774 ms
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restoring packages for /root/build_
Generating MSBuild file /root/build_
Generating MSBuild file /root/build_
Restore completed in 148.64 ms for /root/build_
console -> /root/build_
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.07
/root/build_
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restoring packages for /root/build_
Installing runtime.
Installing runtime.
Installing runtime.
Installing runtime.
Restore completed in 6.99 sec for /root/build_
console -> /root/build_
console -> /root/build_
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
return self.main(*args, **kwargs)
File "/usr/lib/
rv = self.invoke(ctx)
File "/usr/lib/
return _process_
File "/usr/lib/
return ctx.invoke(
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
project = _execute(
File "/usr/lib/
lifecycle.
File "/usr/lib/
executor.
File "/usr/lib/
self.
File "/usr/lib/
getattr(self, "_run_{
File "/usr/lib/
self.
File "/usr/lib/
getattr(part, step.name)()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
"override-
File "/usr/lib/
scriptlet_name, function_
File "/usr/lib/
function(
File "/usr/lib/
appname = os.path.
File "/usr/lib/
genericpath
File "/usr/lib/
(funcname, s.__class_
TypeError: join() argument must be str or bytes, not 'NoneType'
We would appreciate it if you created a bug report at
https:/
Stopping local:snapcraft
----
Contents of my snapcraft.yaml:
name: ridersnap
version: '0.1'
summary: Woo
description: Hoo
grade: devel
confinement: devmode
parts:
ridersnap:
plugin:
dotnet
apps:
ridersnap:
command: ridersnap
----
Project structure:
ridersnap (solution folder)
ridersnap.sln
snapcraft.yaml
console (project folder)
console.csproj
Program.cs
description: | updated |
description: | updated |
Changed in snapcraft: | |
milestone: | none → 3.5 |
https:/ /github. com/snapcore/ snapcraft/ pull/2534