WebAPI does not use BundleConfig.cs
"directly", just to appear because of the tag you added "> asp.net-web-api , WebAPI is for creating services with REST, being able to have the Json or Xml format in the response body and of the payload.
I'm not going to go into details about WebAPI, but coming back to BundleConfig.cs
, it makes sense to be used in web pages, so you will not use with WebAPI, at least "not directly" since it's possible in one project work WebAPI and other type such as MVC.
Now speaking about creating the project and BundleConfig.cs
is missing, it must have been because you created a Web site (shortcut Shift + Alt + N ) with Razor v3, it does not come with the folder App_Code
or App_Start
By tag asp.net-mvc + N and then select N and select Ctrl ASP.NET Web Application (I use version 4.6.1):
ThenselectMVC(notethatifyouwanttocreateaprojectMVC
+WebpAPI
selectwhereitiswrittenAddfoldersandcorereferencesfor:andselecttheoptionWebAPI
):
Aftercreating,notethatthefolderApp_Start