ivan_belal
asked on
While I publish release version (web site) why then I still see additionally dubug file copies in site bin folder?
Asp.net 2.0
While I publish release version (web site) why then I still see additionally dubug file copies in site bin folder? Using studio before publish I set to release ( default is debug ). Thanks,
While I publish release version (web site) why then I still see additionally dubug file copies in site bin folder? Using studio before publish I set to release ( default is debug ). Thanks,
All of the classes in the App_Code folder are now compiled into one or more assemblies in the bin directory, and no .cs or .vb files will exist in the target directory. Master page files will also compile to the bin directory and not exist. All the code and markup in ASPX, ASCX, and ASHX files, along with any associated code-behind files, will live inside of one or more assemblies in the bin directory
If you are talking about PDB files, you have to remove them from the compiler options.
- Right-click on your project, and choose "Properties"
- Go to COMPILE tab
- Click on Advanced Compile Options
- Under GENERATE DEBUG INFO, remove "PDB-ONLY"... set NONE instead.
- Right-click on your project, and choose "Properties"
- Go to COMPILE tab
- Click on Advanced Compile Options
- Under GENERATE DEBUG INFO, remove "PDB-ONLY"... set NONE instead.
ASKER
In site \bin folder - I see two versions of the same dll files - one looks regular other one with file type :
program debug database; I may not need 2nd one. Any ideas?
program debug database; I may not need 2nd one. Any ideas?
can you give us the name of your files please?
I've a project "WebCalendar", and it produce in the bin folder only 2 files:
- WebCalendar.dll
- WebCalendar.xml
Make sure that when you do a PUBLISH taht you set the copy to "Only files needed to run this application"
I've a project "WebCalendar", and it produce in the bin folder only 2 files:
- WebCalendar.dll
- WebCalendar.xml
Make sure that when you do a PUBLISH taht you set the copy to "Only files needed to run this application"
I think i understand what you said.
Your explorer might be set to "HIDE EXTENSIONS OF KNOWN TYPE" or something like that.
The "PRORGRAM DEBUG DATABASE" is a ".PDB" file.
Your explorer might be set to "HIDE EXTENSIONS OF KNOWN TYPE" or something like that.
The "PRORGRAM DEBUG DATABASE" is a ".PDB" file.
In your explorer, you can go to TOOLS / OPTIONS / VIEW TAB
Then find the item: "HIDE EXTENSIONS FOR KNOWN FILE TYPES". Uncheck this...
And you will see that its a PDB file.
So do as i said in my first comment, delete your stuff in your bin folder, then PUBLISH again. You should only see your DLL and maybe an XML if your Compile Options is set to generate some documentation.
Then find the item: "HIDE EXTENSIONS FOR KNOWN FILE TYPES". Uncheck this...
And you will see that its a PDB file.
So do as i said in my first comment, delete your stuff in your bin folder, then PUBLISH again. You should only see your DLL and maybe an XML if your Compile Options is set to generate some documentation.
ASKER
Thanks. I do not see compile option - in properties there are - ( application, build, build events, resouces, settings, ref, signing and web tabs ).
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here's a quote from Thomas Sun:
"enter project properties page from Solution window -> enter Build tab -> select "Release" from configuration list and then click "Advance" button below -> select "none" from Debug Info list)."
"enter project properties page from Solution window -> enter Build tab -> select "Release" from configuration list and then click "Advance" button below -> select "none" from Debug Info list)."