Prevent Studio From "publishing" XML Documentation Files In Web Projects?
Feb 16, 2012
Note: This question is similar to How to prevent the copy of XML documentation files in a release mode build?, but it's not the same and the answers there don't apply. Read on to find out why. (Please ask in the comments or in chat if you disagree, I'll be glad to elabroate).
I have a library project (myLibrary) and an ASP.NET web application project referencing this library (both are in the same solution). "Generate XML documentation file" is checked for the library project, because I want to have those nice IntelliSense features while developing.
When I publish the web application (Context Menu on the project/Publish...), it copies only the files required for running the application (no source code, etc.) to some publish directory. That's good. Unfortunately, it also copies the XML documentation file of the library. Since I consider our library's documentation to be a trade secret, I wouldn't want it to end up on a customer's server. Thus, we have to remember to manually remove this file from the publish directory before deploying it.
Is there a way to prevent Visual Studio from copying this file when publishing the ASP.NET project, but still retain the benefit of XML documentation IntelliSense when developing?
View 4 Replies
ADVERTISEMENT
Mar 16, 2012
Basically, the question is: Where (and in which format) should I store textual developer documentation associated with my Visual Studio projects?
To elaborate: XML comments are great, but they don't cover all use cases. Sometimes, you'd like to describe the class architecture of the project at a high level, add usage notes to your library or just leave any other kind of message to future generations of developers working on this project.
I'd like to add these documents directly as files into the Visual Studio project, to ensure (a) that they are available to the developer without further searching and (b) they are version controlled (using the same svn/git/whatever repository as the source code).
Currently, I add a folder _Documentation to the project and use text files, but I'm not sure if this is the best solution. Visual Studio does not have an option for automatically word-wrapping text1, and manually fixing line breaks after each change is annoying. On the other hand, Word documents don't work well with version control, and TeX is too much of a hassle to set up and teach on each developer PC.
Is there a well-established best practice for this?
1 I know that there's Edit/Advanced/Word-Wrap, but this only affects the display, not the file itself.
View 3 Replies
Feb 19, 2009
When a project is built in VB, the executable file is created in the \bin\Release folder. Apart from the executable there are other files that get created:
MyProject.application
MyProject.exe.manifest
MyProject.pdb
MyProject.xml
Are these files required to run the executable? Is having just the MyProject.exe file in the setup enough? And what are these files for?
View 2 Replies
Feb 24, 2010
I have a database that works fine when not yet published, I connect this way: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Network_Info.mdb" But when I publish my project my application can't find my database and I always get an error. Any solution to this matter?
View 4 Replies
Jul 28, 2010
I have a solution with two projects. The main project connects to the second project via a reference, and the reference path is local to my machine. It looks like it references the .exe file.So when I publish the main project (ClickOnce), i get the following error:
Application validation did not succeed. Unable to continue.In the log file, under Error Details, it says
System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
- Reference in the manifest does not match the identity of the download assembly Project2.exe
- Source: System.Deployment
How can I include this second project? Should I publish it, then reference the published files? What do i reference? The .application file?Is there a way to just include this second project, so when I do publish the main project, the second one just goes along with it?
View 3 Replies
Feb 16, 2011
I have a sulution consisting of aout 30 projects, where 8 of tehm are deployment projects. Currently, when I want to debug the winforms app, I press "start debugging", and wait for about 15 minutes for the solution to be built, and also the deployment projects to be built and packed. The solution itself is built in about 2 minutes, the rest of the time is for the deployment projects.So, my question, is there a way to make the setup in visual studio so that only the code projects are built and the deployment projects to be built manually when needed?
View 2 Replies
Nov 5, 2009
Using Vb.net 2003 Asp.net 1.1 Sql Server2005 Express Vs.Net 7.1. I have Vb.Net Standard and there is no Web Set Up with this version. I have FTP things along time ago but not asp just basic stuff. I have read about xcopy,copy project, I have XP and IE that I can FTP from. I also have to put a database up from SQL Managment Studio. I need to know HOW WHAT WHEN WHERE on how to do this right. This is an interactive site that I made, very similar to a Forum like this site. Do I just upload the dll.
I don't want my source code available for everyone to see, do I have to obfucate it if I am using [url] as a host. The site can't really be down all the time, I have read that I could work on thesite while it is up but I believe I will have to have all the source files up and open.
View 2 Replies
May 25, 2012
I have a website hh-alrawi.com, the problem is every time I publish the site the main page (Index.aspx) does not appear, the correct site URL is : http://www.hh-alrawi.com/index.aspx , so I wonder how can i put the main page name after the domain name (Index.aspx) always after the URL, I tried to edit my web config but it's not working, my Web Config :[code]
View 2 Replies
Apr 6, 2010
[url]...
Documentation error, now corrected in Visual Studio 2010. Re: Convert.ToUInt64?
View 1 Replies
Dec 17, 2009
It is really too bad that Microsoft (who once had the best documentation in the business) has slipped so badly. Good documentation does not really require analysis, though, admittedly, it is a lot of work. To wit: for each and every single method, function, event and operator provide the following: a brief topical functional description including any parameters, a detailed description of how the object works, a workable example of the code needed to make this object do something useful and links to all possible associated objects (See Also).
I see pages upon pages of useless text and links to other pages full of links. This rapidly descends into a crevace of unbelievable complexity for the developer trying to find out something truly simple like filtering a DataGridView without changing the data connection. (As it turns out this is very simple to do but I could not find a single example of how to do it in the Visual Studio documentation.)
View 19 Replies
Apr 22, 2011
I am using an Access Database with my project. When I publish, all the Forms seem to Publish. Also the database gets published. However, once I install it, there seems to be no connection with the Database.The Forms give me the Oledb error as Im using Access. However, the login form seems to connect with the database. In other words, my applications gets authenticated, but when I try to open other forms, there seem to be an error with DB connection
[Code]...
View 1 Replies
Jun 9, 2011
I got problem in my vb.net program in publishing it. I am using Microsoft Visual Studio 2008, when I publish my program and I got the setup file and when i tried to run into another computer I got some error saying that it cant connect into the database. Actually I used msSQL 2005 server in my VS 2008.
View 7 Replies
May 6, 2011
I've made a fairly good Windows form application to solve quadratic equations, but I am having a hard time understanding the publication process microsoft uses in Visual Studio. I'd like to distribute my programm as freeware on my blog.
View 5 Replies
Nov 4, 2008
The issue at hand is that when I try to run my projects from within Visual Studio (2008 with freshly installed SP 1 ), one fifth of the times it hangs, showing me this lovely dialog telling me that visual studio is currently busy, and that I can either switch to the busy part, or continue waiting - and nothing happens when clicking either buttons.Thing is, it never continues from that point, and the only solution I found so far was to close down the process called blabla.vshost.exe. At this point my Visual Studio will either give me message saying 'Error: Unable to run project' and I can run the project again, and hope it'll work this time, or Visual Studio will say that an error occurred and then it restarts VS leaving me to reload the project.
I think it has something to do with building the .exe. I believe VS studio hangs when the .exe is already in use by vbhost.exe, and it therefor cannot overwrite the old exe-file.
View 2 Replies
Mar 10, 2012
an application that stores data in xml files,after publishing where can i access those files?
View 2 Replies
Apr 7, 2011
I have two projects made in vc++ & vb.net of visual studio 2005.now i a third project in vb that integrates above two.I HAVE SEARCHED GOOGLE and result is negative
View 4 Replies
Mar 12, 2010
i made an application vb.net 2008 express edition when i am debugging flash files r working fine when i am publishing the app flash files are not running?
View 2 Replies
Apr 14, 2012
we are new to Visual Basic Programing, We are working on a project, which has modules. My team worked on these modules and prepared 3 separate Visual Studio Projects. Now, I want to combine then into one Visual Studio Project for Integration purposes
View 2 Replies
Mar 4, 2012
In my code I've allowed used to create their own mazes and save them, under whatever name they like. I've also included a few pre-created mazes. The mazes themselves are saves in .txt files in the bin/debug folder of the project, along with a .txt file containing the maze names.
I really need to publish this program to send it to my teacher, but when I publish it it doesn't include any of the .txt files in my bin/debug folder.
View 3 Replies
May 4, 2012
I'm creating a new website in Visual Studio 2010 Ultimate / vb and I want to add things to it, to jazz it up. So I'm adding new projects from the VS online templates. It seems there are many more projects in c# than vb. I'm trying to figure out if it's okay to add a c# and razor project to a vb website, because if not, I'll start the website in c#.
Will mixing languages between projects within your website present issues in the future when it comes time to build and publish? Or is it recommended I begin the website in c# (since there are more projects within VS) and keep the languages the same throughout the website?
View 3 Replies
Apr 30, 2012
Single file for all interfaces or one file per interface definition? Balena & Dimauro's of book of 'Pratical Guidelines' advocates a single file called Interfaces.vb/cs to hold all interface definitions. Their aim is to minimise the proliferation of small files, where each holds a single interface definition.I can see benefits to both approaches. Does anyone have any strong views or experience that strongly supports one approach?
View 2 Replies
Jan 3, 2008
When I try to add a new project to our existing Visual Studio solution, it now adds a ProjectSection(WebsiteProperties) for ALL projects in the solution, although only three of 24 projects are web sites.
Only an Undo Checkout can undo this.
What is causing this new behavior (Visual Studio 2005 SP1 v8.0.50727.762 (SP.050727.7600)) ?
How can I disable it?
View 6 Replies
Oct 26, 2010
In Visual Studio 2005, I can't seem to get the Intellisense menu to pop up at all when I click CTRL+Space. This seems to be limited to VB.NET files. I have tried creating new Visual C# and C# web projects, and it works fine there. There also doesn't seem to be a problem in things like CSS files in VB.NET projects. But when I create a new VB.NET web site, CTRL+Space does nothing. I have tried resetting all the Import and Export setting. That didn't work either.
View 1 Replies
Jun 2, 2011
I need to migrate projects that was made in visual studio 2003 but this projects includes several applications that acts as the base for different clients and every client has its own personalization of the product.visual studio 2008 use an architecture in order to turn everything into a single system with differents configurations?
View 1 Replies
Apr 29, 2010
I couldn't find a quick answer on the official pages,is it possible to write VB projects in the express edition of Visual Studio that connect to a SQL Server that is not the included 'Express' server ?
View 1 Replies
Jun 12, 2009
In the "old days" I was working with Linux to create C/C++ programs (really really BASIC...HA!...programs, just learning to program in the courses as an intro) by creating a text file with the source code that was then fed to the compiler/linker that then spit out the executable binary.
[Code]....
View 2 Replies
Apr 8, 2011
I have added some files that I need to be downloaded to the Application start up path. So I set Build Action as content now the files have been copied some where
C:Documents and SettingsTestUser.ANNAMLocal SettingsApps2.0DataHVDRBMY5.8AA858AT9VM.TNP est..tion_2d7cfc137d9c2c74_0001.0013_432bd4561850d290Data
How can access file from the application. My problem since it is a dynamic path will it be same folder count so that we can use like ....Data Some think like this
View 1 Replies
Jun 26, 2011
Using: VB 2008 Express?I created an application that connects to my MySQL, and everything works fine, but...
1. On my development computer, Windows 7, 64bit, I add the MySQL.data.dll file as a reference. I publish the program, run the setup.exe, and sucess.
2. I then copy my published folder to my test computer, Windows Vista 32 bit, and upon running the setup, the program fails to work because it cannot find the Mysql reference.
3. I then transfer my entire project over to my Vista computer, publish the program, run the setup.exe, and sucess.
4. I finally found out what was happening. My Windows 7 comptuer was not including MySql.Data.dll.deploy file in the Application Files published directory; but when I compiled it on the Vista machine this MySql.Data.dll.deploy was included.
So, in the end, I cannot compile the program on Windows 7, because it fails to create the .deploy file, and use it on Vista or XP (for some reason Win7 doesn't need this .deploy file?); but I can publish it on the Vista machine and install it fine on Windows 7, Vista, or XP. My targe CPU setting is Any computer.
View 3 Replies
Oct 18, 2010
I could not figure out the key to installing folders/subfolders/.rtf files during deployment/installation. The key here is to 'add' folders and subfolders to the project in solution explorer, then adding existing item (.text (.rtf files in my case) files) then selecting the .rtf file in solution explorer.go to its properties and under 'Build Action' select 'Content' (very Important!). Then under 'Copy to Output' select 'Copy if newer'!Then in code to access these files you use the following code:
Me.RichTextBoxDisplay.LoadFile(Path.Combine(Application.StartupPath, "KJV BibleOTExodusExodus KJV.rtf"))
Finally after 3 days of research and 2 days at the msdn forum picking peoples minds (smarter than mine) and lots of prayer, I got it!
View 5 Replies
May 22, 2009
About publishing my program. there's a lot of files made after publishing unlike in vb6 when i converted it to exe file theres only one file. hmm how can i make just one exe file in vb9 is it possible? another question do i have to install the program after publishing?
View 5 Replies