SquishIt MVC - debug mode not refreshing

We are running the MVC project, and we seem to have a problem updating inactive files without actually disposing of the pool.

If it were just me, I would not have to worry about it, because every time I compile, the pool is recycled. But our web integrator does not like to rebuild, since it does not even work in Visual Studio when changing files without.

That's what I'm doing:

  • Got SquishIt from Nuget to the latest version;
  • Call Bundle.Css (). Add (...). Render () in Layout.cshtml;
  • csproj is configured to compile in debug mode (Configuration Manager);
  • Received in the Web.config file.

I look at almost all the entries on the codethinked.com website and cannot find what I was looking for. Some people have problems, but not with file recovery.

Thanks!

+4
source share
3 answers

There was a response from Justin Etheredge on google groups. It will be fixed in version 0.8.3.

http://groups.google.com/group/squishit/browse_thread/thread/6643663dda433a68

+3
source

Try using ForceRelease after your .Add call

Like this:

.Add("~/Content/lessfiles/site.less") .ForceRelease() .Render("~/Content/combined_site_#.css") 

After you enable the change in ForceRelease, run your pool again to make sure that you are looking at the new file.

Finally, replace your .less file with a notebook backstage.
The next page update should choose a change.

+1
source

Although this is not a good production solution, I found that running IISReset locally (if you are using IIS) is a good way to make squishit recognize the changes.

0
source

Source: https://habr.com/ru/post/1380793/


All Articles