Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Custom css file is missing in published app

$
0
0

Hi,

I've published my asp.net core 2.2 app and can see my Style.css file is missing in "css" folder in wwwroot. Any ideas why it's that? Am I supposed to use custom css file or all css must be in site.css? I found a bit similar topic but there the poster used site.css and found that publishing wasn't updatinng site.css.min file. The solution was to use BundlerMinifier. Since I'm not using site.css I don't think this might work for me too. Did anyone else encountered that?

I also used resources files to customizing my app to different cultures (like english, german, etc.) and I see there are appropriate folders created (like "en-US") with Texas.resources.dll file in each, but I can't change the culture the way I did in debug environment on my pc. Here's the method I'm using to change the culture, apparently it's not triggering in published app:

public async Task<IActionResult> OnGetSetCultureAsync(string culture)
{
HttpContext.Response.Cookies.Append("Culture", "c=" + culture + "|uic=" + culture);
var returnUrl = Request.Headers["Referer"].ToString();
if (returnUrl.Contains("?culture="))
{
var url = returnUrl.Substring(0, returnUrl.IndexOf("?culture="));
return Redirect(url + "?culture=" + culture);
}
else
{
return Redirect(returnUrl + "?culture=" + culture);
}
}

Btw, you can github my project here


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>