Skip to content

Commit 5223035

Browse files
committed
Start a template
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent f09f703 commit 5223035

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Bytecode Alliance Developers",
4+
"classifications": [ "wasi","wasm", "Console" ],
5+
"identity": "BytecodeAlliance.Componentize.DotNet.Wasi.Template",
6+
"name": "Componentize dotnet: wasi template",
7+
"shortName": "wasi",
8+
"sourceName":"wasi-cli",
9+
"tags": {
10+
"language": "C#",
11+
"type": "project"
12+
}
13+
}

templates/wasi-cli/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// See https://aka.ms/new-console-template for more information
2+
Console.WriteLine("Hello, World!");

templates/wasi-cli/nuget.config

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
5+
<clear />
6+
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
7+
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
8+
</packageSources>
9+
</configuration>

templates/wasi-cli/wasi-cli.csproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<RootNamespace>wasi_cli</RootNamespace>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<Nullable>enable</Nullable>
9+
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
10+
<UseAppHost>false</UseAppHost>
11+
<PublishTrimmed>true</PublishTrimmed>
12+
<InvariantGlobalization>true</InvariantGlobalization>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<PackageReference Include="BytecodeAlliance.Componentize.DotNet.Wasm.SDK" />
18+
<PackageReference Include="runtime.win-x64.microsoft.dotnet.ilcompiler.llvm" />
19+
</ItemGroup>
20+
21+
</Project>

0 commit comments

Comments
 (0)