Skip to content

Commit

Permalink
Merge pull request #43 from ericgregory/readme-nuget
Browse files Browse the repository at this point in the history
Add dotnet-experimental package source config to readme
  • Loading branch information
jsturtevant authored Sep 5, 2024
2 parents 26b5b5a + 076fac2 commit 8be07d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ obj/
.vs/
artifacts/
test/WasmComponentSdkTest/testapps/OciWit/wit
.DS_Store
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ If you don't already have it, install [.NET 8+ SDK](https://dotnet.microsoft.com

* `dotnet new console -o MyApp`
* `cd MyApp`

Create a `nuget.config` file and add the `dotnet-experimental` package source for the `NativeAOT-LLVM` dependency:

* `dotnet new nugetconfig`
* Add these keys to `nuget.config` after `<clear />`:

```xml
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
```

Add the `componentize-dotnet` package:

* `dotnet add package BytecodeAlliance.Componentize.DotNet.Wasm.SDK --prerelease`

### 3. Configure the compilation output
Expand Down

0 comments on commit 8be07d5

Please sign in to comment.