Updated example needed for Uno WebAssembly App using Azure Web Apps #18911
-
Can somebody please provide an updated example on how to change the Github Action yml file, when hosting a WebAssembly app on Azure Static Web Apps. The reason I have problems are: All the examples I've found are for the old Uno solution file structure, assuming the Uno generated WebAssembly App gets created under the folder [MyApp/MyApp.Wasm] directory (with its own [.proj] file. Nowadays Uno only generates a single [.proj] file and it needs a different build instruction (need to change to "publish") in order to generate the correct output files. I've got it to work, but with a hack: I've generated an Uno application named UnoApp2 using Visual Studio. This is what then remaines in the line :
and changed the app location to:
As I say, this works, but I need to remove the unnecessary frameworks. Is there a way to have Or is there a complete beter way overall e.g. the dotnet build => dotnet publish change is unnecessary? Help shall be much appreciated Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for the report. You can add the following parameter:
to the command line to avoid requiring additional targets to be restored. |
Beta Was this translation helpful? Give feedback.
-
Thanks. It works a charm. |
Beta Was this translation helpful? Give feedback.
Thanks for the report. You can add the following parameter:
to the command line to avoid requiring additional targets to be restored.