How do i add an App_Data folder in visual studio?
Asked Answered
B

3

11

This is a silly question but How do I add an App_Data folder to a project? i have an xsd file that i want to include into the project.

Batty answered 2/9, 2009 at 18:40 Comment(0)
A
27

App_Data only exists for ASP.NET web sites and web applications.

If you have a web app or web site, right-click on the main node for the web site/app and pick "Add ASP.NET Folder" - this opens up a context submenu, which should contain "App_Data" as one of its options.

alt text

Marc

Apocarp answered 2/9, 2009 at 19:33 Comment(0)
J
0

Right click on the project, add new folder and title it "AppData"

Jennifer answered 2/9, 2009 at 18:42 Comment(5)
I followed your instructions but the new folder doesn't have that special folder icon that App_Data's usually have.Batty
Maybe title it App_Data then?Jennifer
Not all folders in visual studio gets special icons fyi.Jennifer
I know App_Data and App_Code should have that special icon.Batty
Ive seen a similar thing happen before where a project folder like App_Data didn't give the icon you normally see. However, it doesn't effect anything besides the way it looks.Jennifer
G
0

I had the similar issue. If you have two options in your "new project" then select the one with the name: "ASP.NET Web Application (.NET Framwork)" instead of the one with the name: "ASP.NET Core Web Application"

This is my troubleshoot and It worked for me :)

Goodbye answered 18/3, 2019 at 21:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.