S
S
Sergey Nizhny Novgorod2018-04-05 09:42:51
ASP.NET
Sergey Nizhny Novgorod, 2018-04-05 09:42:51

How to give static to asp.net core?

Hello everyone
I used to program in Python / Django, to return statics, I had to do 3 actions:
1) Write the path to the statics in the config file
2) Use a special tag in Templates -

<img src="{% static "my_app/example.jpg" %}" alt="My image"/>

3) Configure nginx to serve statics
In asp.net mvc core, I now see:
1) Line: app.UseStaticFiles(); in the startup class
And actually everything, I did not see any special tag for, any settings for nginx in the tutorial. Or am I missing something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2018-04-05
@EreminD

Well, does it work or not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question