Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. VS Projects and folder structures: Some questions...

VS Projects and folder structures: Some questions...

Scheduled Pinned Locked Moved Visual Studio
visual-studiocsharpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    westicle
    wrote on last edited by
    #1

    Hello there I have a few quesions and they are all sort of linked so I'm going to post them all here together. They mostly relate to the fact that I am working with a Web Application Project rather than a Web Application. This is new to me and I have no say in the matter. I'm using Visual Studio 2005 and coding in VB. I am just starting to try and get to grips with OO stuff. 1. When I create a web application in VS and then go "Add New Item..." > "Class" it tells me this needs to go in a folder called "App_Code" (I understand it goes in here cos it's auto compiled) and it creates it for me. Lovely. When I create a web application as a Project and follow the same steps is doesn't tell me it needs to go there and doesn't create the folder. Any idea why? 2. My folders in Web Applications are yellow and they are grey in Web App Projects. What's the difference? 3. I created a Class - Employee.vb in one project (and confirmed it worked), created a new project and added an App_Code folder then dragged in Employee.vb. I then created a new Class - Asset.vb in this new folder. They are both in the same Namespace - "AECOM" but I can only call the new Class, Asset.vb and not the one I dragged in - Employee.vb. So both classes are in the App_Code folder but this works - AECOM.Asset.blahblahblah works and this doesn't - AECOM.Employee.blahblahblah. Any idea as to what I'm doing wrong? 4. When I create Web Application Project the code behind files don't appear in my Solution Explorer. I have to click "Show All Files" and this then shows me loads of stuff I don't care about, the code behind files that I do want and also another file called something like "Default.aspx.designer.vb". Apparently that file was created by a Tool. Whilst that is quite funny to me it's also annoying because I don't want to see it. When I create Web Applications I always get to see the code behind files and none of the other fluff. Any idea why there is a difference and if I can do anything to alter it? To anyone who reads all of this - thank you for getting this far! Chris.

    Westie

    W 1 Reply Last reply
    0
    • W westicle

      Hello there I have a few quesions and they are all sort of linked so I'm going to post them all here together. They mostly relate to the fact that I am working with a Web Application Project rather than a Web Application. This is new to me and I have no say in the matter. I'm using Visual Studio 2005 and coding in VB. I am just starting to try and get to grips with OO stuff. 1. When I create a web application in VS and then go "Add New Item..." > "Class" it tells me this needs to go in a folder called "App_Code" (I understand it goes in here cos it's auto compiled) and it creates it for me. Lovely. When I create a web application as a Project and follow the same steps is doesn't tell me it needs to go there and doesn't create the folder. Any idea why? 2. My folders in Web Applications are yellow and they are grey in Web App Projects. What's the difference? 3. I created a Class - Employee.vb in one project (and confirmed it worked), created a new project and added an App_Code folder then dragged in Employee.vb. I then created a new Class - Asset.vb in this new folder. They are both in the same Namespace - "AECOM" but I can only call the new Class, Asset.vb and not the one I dragged in - Employee.vb. So both classes are in the App_Code folder but this works - AECOM.Asset.blahblahblah works and this doesn't - AECOM.Employee.blahblahblah. Any idea as to what I'm doing wrong? 4. When I create Web Application Project the code behind files don't appear in my Solution Explorer. I have to click "Show All Files" and this then shows me loads of stuff I don't care about, the code behind files that I do want and also another file called something like "Default.aspx.designer.vb". Apparently that file was created by a Tool. Whilst that is quite funny to me it's also annoying because I don't want to see it. When I create Web Applications I always get to see the code behind files and none of the other fluff. Any idea why there is a difference and if I can do anything to alter it? To anyone who reads all of this - thank you for getting this far! Chris.

      Westie

      W Offline
      W Offline
      westicle
      wrote on last edited by
      #2

      Bump Does anyone know anything about the differences between web applications and websites in terms of folders and so on? Thanks

      Westie

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups