Prevent Visual Studio 2008 From Re- Autogenerating "My Project" Folder?
Jan 25, 2010
I am trying to rid my team's Visual Studio projects of "My Project" folders. None of my team is using custom settings or anything that would need to be stored in the "My Project" folder for any of our projects.
I have edited our .vbproj files with a text editor to remove any reference to "My Project", deleted "My Project" from disk, and ensured that no one has checked "My Project" or any of its files into version control. But when any of these projects is compiled, Visual Studio insists on autogenerating "My Project", re-creating the folder (just the folder, without any files inside) on disk and inserting a reference to that folder into the project.
(To clarify, when I say "a reference to that folder into the project", I mean that the .vbproj file contains the following text:
<ItemGroup>
<Folder Include="My Project" />
</ItemGroup>
and that text will not die no matter how many times I kill it.)I suspect that the chain of events is that VS modifies the project to include the reference to the folder; then after the project is compiled the folder is generated because it is referenced. How then can I prevent Visual Studio from modifying project files to refer to this infernal folder?
View 1 Replies
ADVERTISEMENT
Nov 23, 2010
I am using Visual Studio 2008 Professional to build a VB.NET console application. I have a text file that I want to copy to the output directory after a build. I would like to create a build event to do that, but I do not see a "Build Events" folder on the property page. Is there a setting where I can get this folder? Or, is there another way I can set up a post-build event to copy a file to the output directory? The folders I see on the Properties page:
[Code]...
View 1 Replies
Jun 27, 2011
So if I am working on a project in VB.net (really any visual studio project), I am able to create folders. My project is getting rather unweildy (over 30 classes) and I think it would be beneficial to store for example data structure classes in a folder "ds" and user controls in a folder "uc". Is this OK? Will it affect the way I reference the classes? Are the folders simply for my own use and structure or do they actually have some kind of impact on my project as a whole?
PS in case you are confused, I am referring to the structure shown in the "Solution Explorer". Sorry if this is a dumb question or not clear, but I have never worked on a large project like this before.
View 4 Replies
Jan 11, 2012
I'm trying to add a folder and some files within it to a Visual Studio 2010 Express VB.NET project. I have read the answers to questions on this subject here and here. They both say "select folder, right click, and then select Add To Project". But when I right-click in this way, no "Add to Project" option appears. Does anyone know why this is so, and what I can do about it, or alternatively another way of adding a folder to a project?
View 1 Replies
Nov 22, 2010
I have a VB.NET project in Visual Studio 2010 for an Excel Add-In.I use the "My" namespace,and in general it seems that the "My Project" folder contains configuration information about the project.My problem is that I need to change the name of this folder, because my version manager system won't accept spaces in file or folder names.Edit: There is a hacky way to do it, by renaming the folder and changing all references in the .vbproj file.However, the may work for a command line generation, but it won't work the next time the project will be opened in Visual Studio. The IDE will create a new "My Project" folder, and complain that it can't find the settings in it.
View 3 Replies
Nov 15, 2010
i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :
1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices
2- i try make it with Setup Factory 8.2.1
3- i try with MSI Factory 2.0
4 i try with Setup Factory 6.0
and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :
[Code]...
View 3 Replies
Jan 13, 2012
I am very new to Visual Studio Application Development. I'm mostly a DB guy. I used Visual Studio as a Report Designer, not much of an .Net guy though I can understand it. I am now asked to create a .net application and I'm trying to create a "Hello World" starter app. I opened my Visual Studio, click File-New Project and all I see is Business Intelligence Projects and Other Project Types. My step-by-step guide says choose Visual Basic, Windows Forms Application. But I can't see it as an option.
View 2 Replies
Oct 12, 2011
WebMatrix is a web development and deployment tool by Microsoft so how is this compared to Visual Studio? which Use C# Razor Syntax is that more better coding.
[Code]...
View 2 Replies
May 20, 2010
I have a vb 6 project developed with VB6.0 on XP. I've installed Visual Studio (Professional Edition)2008 on a Windows 7 box. When I tried to convert the vb 6 project (.vbp file) using VB 2008's wizard, I got error messages that the "upgrade failed" because it could not "load the referenced components: msadodc.ocx (6.0.0) and msde.dll It is recommended you install VB6.0 with all referenced components......"I have the VB6.0 CD's and tried to install it on the Win7.0 box and got the message that VB6.0 was incompatible ?
View 2 Replies
Nov 4, 2010
Have anyone worked on a project on 2 different computers with different version of Visual Studio Express?
In my case, I have made (and still working on..) a project in VSE2008, which I have installet at my job-computer.
At my homepc I have VSE2010 installed. I am a bit afraid to try working on that project from another version of the Visual Studio..
View 1 Replies
Sep 15, 2010
In Visual studio 2008, I am not able to see Batch Build option for vb.net projects as c++ projects. I am new to VB.Net. but do it have any other options to do batch buld rather than creating Batch file?
View 1 Replies
Mar 22, 2010
I am really new to Visual Studio and VB and I am having trouble closing a single form:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
When I use Me.close() associated with this button it closes the entire project and not just the single form can anyone.
View 2 Replies
Mar 16, 2009
I have a Web Service Application Project in Visual Studio 2008. This is supposed to be an ASP.Net 2.0 project and at some point this has been rebuilt using 3.5.VS has kindly added in project level imports to System.Linq and System.Xml.Linq, but when I have re-targeted the project at 2.0 these project level imports have remained.Because the Web Service Application Project does not have the detailed window for editing project references I cannot find how to remove these project level imports.There is no .proj file which is where I would assume these were included.I cannot now build the project as it fails, even though I only get warnings (no errors reported) such as this:Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
View 3 Replies
Sep 2, 2011
If I build a Windows Forms project in Visual Studio 2008, and start it with a Sub Main instead of a form, and for the time being, don't show any forms, is it considered a Console application? Will console.writeline work?
View 3 Replies
Jun 4, 2012
I converted my project Visual studio 2003 to 2008. and when i run may project pressing F5 this error comes
View 5 Replies
Mar 19, 2010
I'm suddenly having trouble with GetPrivateProfileSection in a Windows Forms project in Visual Studio 2008. The same code works when it's run as an aspx page in a website. Anyway, I define the WINAPI call thusly:
[Code]...
View 7 Replies
May 19, 2009
I've been assigned a web app written in VB using VStudio.net 2003. I am trying to configure the source on my localhost (VStudio 2008) so I can explore and learn about the current app (before I begin any real changes) and I cannot get debugging working for the web service project(s).
Symptom 1: "Unable to automatically step into the server. The remote procedure could not be debugged. This usually indicates that debugging has not been enabled on the server. See help for more information". This happens when I try to F11 (stepInto) the proxy class which invokes my actual web method.
Symptom 2: Pre-setting a breakpoint in my .asmx file code on the statement that will be invoked does not work (i.e. the debugger simply doesn't stop). Having described the situation, here's how my VStudio Solution is configured: Service1 - project created from the VB - WEB - ASP.NET Web Service Application template; this Service1 project contains my main .asmx source code I want to debug. Web.config for this project contains compilation defaultLanguage="vb" debug="true"
[Code]...
View 4 Replies
Jul 14, 2011
I have pasted below a piece of code where I am displaying a report. I am using Visual Studio 2008 Crystal Report engine. It works all good with the piece of code
Problem: Everytime a report is being run it generates a ('.*tmp', '.*rpt') files typically in a temp folder c:windows emp however we can get rid of the *.tmp files by setting a recycle on the application pool but need a way to get rid of the .rpt files.
Found solution: Call Close() and Dispose() on the report object. The way I am doing is crReportDoc.Close() then crReportDoc.Dispose()Actual Problem: If Dispose() is called the report comes up with the following error 'Object reference not set to an instance of an object'
[Code]...
View 1 Replies
Mar 3, 2008
I would like to access to a SQL Server Database from my Visual Studio project.
I have SQL Server 2005 Express Edition installed on my PC and I have a database with some tables.
In Visual Studio, I open the Database Explorer and I try to create a database connection.
The Add connection dialog box proposes to enter a database *file name* but I cannot select a database *server* and a database *name*.
Perhaps, is it a restriction because it is a free version ?
Within Visual Web Developer 2008 Express Edition, I can select a database *server* and a database *name* !
View 5 Replies
Dec 9, 2009
I am using: (copied from the/about vb studio window:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
[code].....
View 6 Replies
Jan 15, 2012
I want to use "OpenGL" in my project. Is it possible to associate it with "Visual Basic" application developed in Visual Studio 2010? If yes then how can we do it.
View 1 Replies
Jun 29, 2011
I want to be able to would out how many folders there are in a folder. This is because i was to make a back up system and i want to be able to say if there is already 5 folders in the folder then delete the oldest and add the new one in. How would i do this?
View 2 Replies
Feb 17, 2010
Will i be able to successfully install 2010 beta 2 side by side 2008? because i want to test 2010 features and some development toolkits such as silverlight while i don't want to uninstall my visual studio 2008 professional.
View 2 Replies
Mar 20, 2009
I have a Visual Basic project and when working and modifying code, the compiler will crash and then a message will say something like "Microsoft visual studio encountered a problem and was shut down." I've tried editing code from the solution and the project. Both produce the error. Usually occurs when adding an "IF...Then..." condition. May work for hours but then crash. Solution will compile and build.
View 3 Replies
Jan 25, 2011
how to create my first project in visual studio
View 2 Replies
Oct 6, 2011
I want to start using Mercurial on a VB.Net project, but I'm not sure which files should I add. Do I include the Project.sln file, bin/ and obj/ folders?
View 4 Replies
Nov 26, 2010
The 'DefaultLocation' for my application is set to '[ProgramFilesFolder]MyApp'. Now I would like the user to select what drive to install this application to. I know this is accomplished through the 'Installation Folder Selection' dialog, but I want the user to be able to select a drive only, not the entire path.
My question is how do I capture what drive the user selected from the 'Installation Folder Selection' dialog and use that drive letter to tack on to my 'DefaultLocation' variable?
[Code]...
View 2 Replies
Feb 13, 2010
How to Roll Back project in Visual Studio
View 1 Replies
Nov 21, 2009
I am writing a project and am getting stumped on the following error in Visual Studio. It reads "Warning 1 Unused local variable" and "Warning 2 Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated"Here is snap of my code and the problem is highlighted. Any thoughts?Private Sub xmlImport(ByVal source As Object, ByVal e As FileSystemEventArgs)Dim eConnect As New eConnectMethods
[Code]....
View 1 Replies
Aug 24, 2011
Programming Applications Office Outlook 2007.This publication comes with sample VB code which I have dowloaded and am attempting to run.The code was written using VS2005 and I am using VS2010.The Upgrade conversion works ok and the project loads - however I get the following errors when I try to build:Does Microsoft have a fix? I only get thousands of people asking the same question when I search!!
ErrorAn error occurred while validating. HRESULT = '80004005'C:Documents and SettingsMartinMy DocumentsVisual Studio 2005ProjectsSampleCodeVBSampleCodeSetupVBSampleCodeSetupVB.vdprojSampleCodeSetupVB
[code].....
View 4 Replies