Skip to content

Commit

Permalink
Merge pull request #39 from mikkelhegn/readme
Browse files Browse the repository at this point in the history
Readme updates
  • Loading branch information
jsturtevant authored Aug 27, 2024
2 parents d37210d + dfc664a commit 26b5b5a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ var left = 123;
var right = 456;
var result = OperationsInterop.Add(left, right);
Console.WriteLine($"{left} + {right} = {result}");

Console.WriteLine(OperationsInterop.ToUpper("Hello, World!"));
```

Since your component is no longer a self-contained application, you can no longer run it without also composing it with another WASI 0.2 component that implements the `add` function. To do that, either:
Expand All @@ -126,7 +124,7 @@ Since your component is no longer a self-contained application, you can no longe

If you're **exporting** functionality, you'll be building a class library, not an executable. So be sure to go to your `.csproj` and change `<OutputType>` from `exe` to `library` and delete any `Program.cs`.

Once you've done that, change your WIT file to use the `calculator` world using one of the two techniques described above (i.e., either edit the `.csproj` or use the VS Properties pane).
Once you've done that, change your WIT file to use the `computer` world using one of the two techniques described above (i.e., either edit the `.csproj` or use the VS Properties pane).

Now when you build, you'll get an error like `The name 'OperationsImpl' does not exist in the current context`. This is because you've said you'll provide an implementation, but haven't yet done so. To fix this, add the following class to your project:

Expand Down Expand Up @@ -268,4 +266,4 @@ This is a wrapper around various other bits of tooling:

## Contributing

See our [contributing docs](./CONTRIBUTING.md) for details on how to build and contribute to this project.
See our [contributing docs](./CONTRIBUTING.md) for details on how to build and contribute to this project.

0 comments on commit 26b5b5a

Please sign in to comment.