-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: re-register dotnet for core22 (#4841)
Signed-off-by: Callahan Kovacs <[email protected]>
- Loading branch information
Showing
9 changed files
with
173 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: dotnet-hello | ||
base: core24 | ||
version: '1.0' | ||
summary: a simple dotnet snap | ||
description: a simple dotnet snap | ||
|
||
confinement: strict | ||
|
||
apps: | ||
dotnet-hello: | ||
command: dotnet | ||
|
||
parts: | ||
hello: | ||
plugin: dotnet | ||
source: . | ||
dotnet-self-contained-runtime-identifier: linux-x64 | ||
build-snaps: [dotnet-sdk] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
summary: Build a snap with the dotnet plugin | ||
|
||
restore: | | ||
rm -rf ./*.snap | ||
execute: | | ||
# Unset SNAPCRAFT_BUILD_ENVIRONMENT=host. | ||
unset SNAPCRAFT_BUILD_ENVIRONMENT | ||
# dotnet is disabled for core24 until the dotnet sdk snap is rewritten | ||
snapcraft pack 2>&1 | MATCH "plugin not registered: 'dotnet'" |
10 changes: 10 additions & 0 deletions
10
tests/spread/plugins/craft-parts/build-and-run-hello/dotnet-hello/dotnet.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<RuntimeIdentifier>linux-x64</RuntimeIdentifier> | ||
<InvariantGlobalization>true</InvariantGlobalization> | ||
</PropertyGroup> | ||
</Project> |
1 change: 1 addition & 0 deletions
1
tests/spread/plugins/craft-parts/build-and-run-hello/dotnet-hello/hello.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Console.WriteLine("hello world"); |
18 changes: 18 additions & 0 deletions
18
tests/spread/plugins/craft-parts/build-and-run-hello/dotnet-hello/snap/snapcraft.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: dotnet-hello | ||
base: core22 | ||
version: '1.0' | ||
summary: a simple dotnet snap | ||
description: a simple dotnet snap | ||
|
||
confinement: strict | ||
|
||
apps: | ||
dotnet-hello: | ||
command: dotnet | ||
|
||
parts: | ||
hello: | ||
plugin: dotnet | ||
source: . | ||
dotnet-self-contained-runtime-identifier: linux-x64 | ||
build-snaps: [dotnet-sdk] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters