-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
WebRootPath in debug mode #58
Comments
Hi @stefanodelpero, the library internally computes the path for the internal usage. But that should not interfere with mvc behaviour I believe. |
Hi @soundaranbu, <img write-content="true" src="~/images/logo-header.png" class="mb-4" /> Normally in the application (when in Debug from Visual Studio) the Instead, in the public WriteContentTagHelperBase(IWebHostEnvironment environment)
{
var path = environment.WebRootPath;
// Path ends with \bin\Debug\net7.0
} I think this is because |
Hi @stefanodelpero, thanks for this. I've pushed a fix. I hope this will fix your issue. I'll let you know when a pre-release package is published. |
@stefanodelpero, you can try this pre-release https://github.com/soundaranbu/Razor.Templating.Core/releases/tag/v.1.9.0-rc.2 Thanks :) |
@soundaranbu It do not works. Because the parameter |
Thanks @stefanodelpero. If i understand the problem correctly, then you should be receiving the default IWebHostEnvironment object provided by ASP.NET Core. The default object should have the correct path set retaining the original behaviour of the framework. This is considering your application is MVC. Please provide a minimal sample if possible. We can take it forward from there. Thanks! |
Hi @soundaranbu, here you can find a sample: https://github.com/stefanodelpero/RazorTemplatingCoreSample |
Actually, the pre-release didn't make any difference. The latest stable v1.8.0 itself is working fine after adding to DI. |
Oh man. Sorry to waste your time! |
Hi! Great library!
I've a problem with the WebRootPath in debug in Visual Studio.
WebRootPath point to the bin folder that do not contains wwwroot, instead of the wwwroot inside the source folder (as IWebHostEnvironment.WebRootPath does).
I'm missing something?
Thank you!
The text was updated successfully, but these errors were encountered: