2

So here is my ASP.NET Core MVC project, which is working fine locally but not when I am trying to publish my target project TSEventApp.Web to a target folder:

enter image description here

The project is getting published successfully but it just publishes weird folders with just .dll files instead of folders like views, bin, etc. Can anyone just please guide me through what exactly am I doing wrong? Thank you in advance.

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Tushar saxena
  • 317
  • 4
  • 15

1 Answers1

2

According to your publish settings, I found you used the Framework-dependent, it you use this format, it will not generate the related runtime dll and it will complie all the view or else inside the one dll.

If you choose self-contained, it will genreate the runtime related dll inside the folder .

Brando Zhang
  • 22,586
  • 6
  • 37
  • 65
  • Okay! So you are saying that I should Self-contained? – Tushar saxena Aug 24 '22 at 07:22
  • Could you please tell me why you need these folders? Asp.net core will compile all the files into the dll instead of sperate them. So this dll will also work well when you host it inside IIS or else. – Brando Zhang Aug 24 '22 at 07:49