• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

.NET 2 app_code and app_data

Can app_code and app_data be applied and used for all of ASP.NET, WinForm, WinService, and ConsoleApp development in .NET 2? Thanks.
0
ksfok
Asked:
ksfok
  • 4
  • 3
1 Solution
 
Wayne Taylor (webtubbs)AstronautCommented:
No. App_Code and App_Data are used in ASP.NET applications. All Windows apps can use whatever folder they wish, but to make it more uniform, I use Application.LocalUserAppDataPath.

Wayne
0
 
ksfokAuthor Commented:
Please explain usage how-to of Application.LocalUserAppDataPath. Thanks.
0
 
Wayne Taylor (webtubbs)AstronautCommented:
It returns the path of the AppData folder.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
ksfokAuthor Commented:
I wonder how the app knows what folder is the one that contains the data without a specific name like "app_data"?
0
 
Wayne Taylor (webtubbs)AstronautCommented:
Like I said, you can put the data where ever you like in a windows app.
0
 
ksfokAuthor Commented:
And I don't need to specify which folder contains the data and Application.LocalUserAppDataPath magically knows where it is?
0
 
Wayne Taylor (webtubbs)AstronautCommented:
Yes.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now