How to combine one asp.net web site with a c# project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    How to combine one asp.net web site with a c# project

    I have one asp.net web site(2.0) which contains all aspx files and one project which has all .cs files for those aspx files.The way we currently working is we generate the dll for the project which contains the .cs file and copy that to the web site bin folder.
    My problem is in this way i am not able to debug.Now I would like to combine the web site and the .cs file project so that i can debug my application.
    can any one suggest me how to do this.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Originally posted by mzmishra
    I have one asp.net web site(2.0) which contains all aspx files and one project which has all .cs files for those aspx files.The way we currently working is we generate the dll for the project which contains the .cs file and copy that to the web site bin folder.
    My problem is in this way i am not able to debug.Now I would like to combine the web site and the .cs file project so that i can debug my application.
    can any one suggest me how to do this.
    If you are doing what I think you are doing, I believe that you can copy your .CS files to the "App_Code" directory (if you don't already have it, Just create it in the root of the site). Are these files .aspx.cs or just .cs?

    Comment

    • mzmishra
      Recognized Expert Contributor
      • Aug 2007
      • 390

      #3
      .aspx.cs files.

      The reason there are two separate thing is they do not want to give the .cs files to the customer.so they have created one separate project for the .aspx.cs files

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Originally posted by mzmishra
        .aspx.cs files.

        The reason there are two separate thing is they do not want to give the .cs files to the customer.so they have created one separate project for the .aspx.cs files
        Ok, I see. Well, how about creating a third project, containing both the .aspx and the .aspx.cs files? Debug that project, but (obviously) don't give that one to the customer.

        Comment

        • mzmishra
          Recognized Expert Contributor
          • Aug 2007
          • 390

          #5
          hmm.
          I was planning to do the same,but how feasible is that.

          Comment

          • Curtis Rutland
            Recognized Expert Specialist
            • Apr 2008
            • 3264

            #6
            Originally posted by mzmishra
            hmm.
            I was planning to do the same,but how feasible is that.
            Well, how big is your project? I've never done anything like that. I would always develop one project all together, and if I had to deliver a preliminary build I would save another copy and then precompile it. I've never developed the pieces separately.

            I guess what would make it unfeasible would be size/directory structure. I can see how it would be hard to move like 200 files between 20 directories. But I can't think of any other way. Hopefully someone else will have a more convenient solution.

            Maybe you could write a script or small program to effectively join your directory structure? You know, copy all files from each directory in either project to a new directory of the same name in the third? That might not be to hard.

            Comment

            • mzmishra
              Recognized Expert Contributor
              • Aug 2007
              • 390

              #7
              well i am thinking of converting the web site to web application project .
              Is it a good way?any suggestions?

              Comment

              • mzmishra
                Recognized Expert Contributor
                • Aug 2007
                • 390

                #8
                let me repharse this.
                What i did I created one solution .I have added the website and the project conating .cs file.Now can some one tell how I can debug?

                Comment

                Working...