Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it to work in ASP.NET Core CRA w/ ServiceBroker #59

Open
ryanpeters74 opened this issue Jul 1, 2021 · 1 comment
Open

Can't get it to work in ASP.NET Core CRA w/ ServiceBroker #59

ryanpeters74 opened this issue Jul 1, 2021 · 1 comment

Comments

@ryanpeters74
Copy link

Using the ASP.NET Core CRA application that leverages a ServiceBroker, the package does not work.
https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/react?view=aspnetcore-5.0&tabs=visual-studio

@madestroIT
Copy link

Using the ASP.NET Core CRA application that leverages a ServiceBroker, the package does not work. https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/react?view=aspnetcore-5.0&tabs=visual-studio

I was able to get this running after a few hours of trial and error. In short, you are better off modifying your project file and adding a command that executes the versioning script:

<Target Name="UpdateClientAppVersion" BeforeTargets="Build">
<Exec WorkingDirectory="$(SpaRoot)" Command="node ./node_modules/react-clear-cache/bin/cli.js" ContinueOnError="false"/>
</Target>

This will ensure the meta.json file is generated any time you build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants