You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
The Image Tag (helper) is not displaying the images
Steps to reproduce:
1, Open the MVC.sln solution from branch rel/1.1.1
2. Go to HtmlGenerationWebSite project, set as startup
3. Run the project - it will go to http://locahost:<port> . Modify to http://locahost:<port>/HtmlGeneration_Home/image
4. Assert all images are not seeing ( red block, red versioning)
e.g. this image will not display
We don't worry too much about the end-to-end behaviour of the functional test sites. The most important thing here is that src="~/images/red.png" in the .cshtml results in src="/images/red.png" in the generated HTML.
That said, adding StaticFiles to the project has no downside.
* Add "
`Microsoft.AspNetCore.StaticFiles": "1.2.0-*"`
to project,json
Add
`app.UseStaticFiles();`
in the
`public void Configure(IApplicationBuilder app)`
from `Startup` class.
Addresses #5694
The Image Tag (helper) is not displaying the images
Steps to reproduce:
1, Open the MVC.sln solution from branch rel/1.1.1
2. Go to HtmlGenerationWebSite project, set as startup
3. Run the project - it will go to
http://locahost:<port>
. Modify tohttp://locahost:<port>/HtmlGeneration_Home/image
4. Assert all images are not seeing ( red block, red versioning)
e.g. this image will not display
Solution( and I will make a fork and pull request ASAP)
Microsoft.AspNetCore.StaticFiles": "1.1.0"
to project,json
app.UseStaticFiles();
in the
public void Configure(IApplicationBuilder app)
from Startup class.
The text was updated successfully, but these errors were encountered: