Daddoon / BlazorMobile

Create full C# driven hybrid-apps for iOS, Android, UWP & Desktop with Blazor!
MIT License
413 stars 55 forks source link

Update BlazorMobile.Build behavior for Blazor WebAssembly 3.2.0 Preview 2 #174

Closed Daddoon closed 4 years ago

Daddoon commented 4 years ago

Update BlazorMobile.Build behavior for Blazor WebAssembly 3.2.0 Preview 2.

As the dist folder does not exist anymore with this new version, as seen here:

As a result of this change, the structure of the published output of a Blazor WebAssembly app is now more consistent with other ASP.NET Core apps. A Blazor WebAssembly app is now published to the /bin/Release/netstandard2.1/publish/wwwroot folder (a dist folder is no longer generated). To publish a standalone Blazor WebAssembly app as a static site, copy the contents of the published wwwroot folder to your static site host. If the Blazor WebAssembly app is hosted in an ASP.NET Core app, the client Blazor WebAssembly app is published into the wwwroot folder of the published server app just like any other static web asset.

This is also referenced in https://github.com/Daddoon/BlazorMobile/issues/173

Daddoon commented 4 years ago

Some draft search for myself:

Scénario idéal :

https://docs.microsoft.com/fr-fr/visualstudio/msbuild/msbuild-targets?view=vs-2019

https://stackoverflow.com/questions/54703037/trouble-overriding-builddependson-in-c-sharp-project

https://stackoverflow.com/questions/6387702/automatically-publish-clickonce-when-build-finishes-in-visual-studio

https://docs.microsoft.com/fr-fr/visualstudio/msbuild/how-to-extend-the-visual-studio-build-process?view=vs-2019

http://sedodream.com/2013/02/12/MSBuildDependsOnTargetsVersusBeforeTargetsAfterTargets.aspx

https://stackoverflow.com/questions/50775659/how-to-run-msbuild-with-specific-target-when-publishing

https://gist.github.com/guitarrapc/ca740578776db7fca21c844daf89bb4a

https://stackoverflow.com/questions/47179705/net-core-override-default-build-targets

https://stackoverflow.com/questions/52775774/what-is-the-correct-way-to-do-a-dotnet-publish-on-project1-before-building-pro

https://stackoverflow.com/questions/12165715/call-publish-after-build-in-msbuild-build-in-msbuild

Daddoon commented 4 years ago

Done (differently than expected) but done !