Skip to content

Commit 8b791c7

Browse files
authored
fix mono HelloWorld sample (#87778)
* fix mono HelloWorld sample Set SelfContained=true. Otherwise we get this when trying to run the app: ``` ./artifacts/bin/H elloWorld/arm64/Release/osx-arm64/publish/HelloWorld You must install or update .NET to run this application. App: /Users/alklig/work/dotnet-runtime/runtime-review/artifacts/bin/HelloWorld/arm64/Release/osx-arm64/publish/HelloWorld ``` * fix samples
1 parent 824f39a commit 8b791c7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/mono/sample/HelloWorld/HelloWorld.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
5+
<!-- always set SelfContained when running to use Mono on desktop -->
6+
<SelfContained>true</SelfContained>
57
</PropertyGroup>
68

79
<UsingTask TaskName="MonoAOTCompiler"

src/mono/sample/mbr/console/ConsoleDelta.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<OutputType>Exe</OutputType>
44
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
55
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
6+
<!-- always set SelfContained when running to use Mono on desktop -->
7+
<SelfContained>true</SelfContained>
68
</PropertyGroup>
79

810
<PropertyGroup>

0 commit comments

Comments
 (0)