fermyon / spin-dotnet-sdk

Apache License 2.0
43 stars 11 forks source link

Ensure source in spin.toml and AssemblyName in Project.csproj match #42

Closed pauldotyu closed 1 year ago

pauldotyu commented 1 year ago

This will fix an issue when users create a project name using a "pascal-dotted-case" format.

Example:

spin new http-csharp my-spin-demo

When this happens, the actual dotnet AssemblyName will be set to MySpinDemo but in the spin.toml file, the source will be set to bin/Release/net7.0/my-spin-demo.wasm.

As a result, the spin up command will return the following error:

Error: failed to resolve content at "/Users/paul/repos/fermyon/my-spin-demo/bin/Release/net7.0/my-spin-demo.wasm"

Caused by:
    No such file or directory (os error 2)