Can't Get The Build To Build A Release Version In Vb
Jun 17, 2009I was able to build both debug and release versions of my VB code before now I no longer have the option to build a release version. How do I turn it back on
View 3 RepliesI was able to build both debug and release versions of my VB code before now I no longer have the option to build a release version. How do I turn it back on
View 3 RepliesEvery time I compile a new release build in vb.net 2009, the file version number of my main exe is correct, but the assembly version number is the same as the last build instead of the current version even though I manually change the file and assembly version in the design studio to be the same prior to compiling.The only way I can get the assembly version to be correct is to close Visual Studio and delete the obj folder. Then if I open the solution and recompile, all is well.
Here is the information copied from the About box in VS:
Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
[code]....
I have a Form with a Media Player in it. Which plays a Song.
[Code]...
It's playing in the background since the Form is hidden. When I play itin Debug, everything works fine. When I run the app outside Debug, I get this error: [URL] The Music File is there, but strangely, there comes this weird error.
I am using 2008 Express Edition. I am trying to make a Release build instead of a Debug build.Under Tools->Options, Projects and Solutions->General - I checked Show advanced build configurations. The option to switch configurations does not show up in the IDE.
After this, I went to the Project Properties->Compile and switched the Configuration from Active(Debug) to Release.After building, I looked in my project directory, however only in the Debug sub-directory was the .exe and nothing in the Release sub-directory.I have used Visual C++ Express Edition, where I noticed that if you do not change to Release in the IDE than after changing to Release in properties, resets the project to the last configuration setting which is usually Debug.how to make the Debug/Release box available in the IDE, since Tools/Options does not make it show up?
I have some very simple questions about making a release build exe in vb.net using MS VB 2010 Express.
I realize that my project's executable is built in the bin/debug folder. However, when I copy this to any other location on my computer or someone else's, this executable does not function. I have read that I need to create a release build but in MS VB 2010 Express, when I use the Project-Properties menu and change the Compile tab configuration to Release and the path to binRelease, I still get the exe in the binDebug folder and not the binRelease folder.
1) Is it normal that exe's from the debug folder do not function outside of the debug folder?
2) Most importantly, if the release build produces a faster exe, could someone please explain step by step how to do this with MS VB 2010 Express ? I do not see any button on the compile tab in the project properties that actually builds the release.
I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I've released the code as a Google Code project. It's easy for a developer to get the source but I'd like to make it easy to install too.
What I did was make a release build then zip up what it created, this included a setup.exe. There was also an option to "publish" my project which looks like it can enable update checks and other stuff.
I have a dll library that I built to help reduce the amount of boilerplate code copied over from project to project. There is a timer running in the dll to maintain the connection to our machinery via RPC. When I debug my project and break the RPC connection my code gracefully tosses a disconnect event from the dll library and my main form catches the event and handles it appropriately.Now, build for release. When I break the RPC connection a unhandled exception is tossed from the library that apparently is not caught elsewhere.
The weird part is that the code that is throwing the exception is in the timer and the calls are all wrapped in try/catch blocks and the catch block swallows the exception and does other cleanup work.I don't get how in debug mode everything is fine but in release it is not. That part doesn't make sense to me. I tried looking at the exception object and setting a handled property on it but it's not available. Is this normal behavior what I am seeing?
I just recently started utilizing numerous libraries in my projects to keep my solutions more trimmed and easy to follow. Hopefully this isn't a problem with libraries I had not considered.
I have a form and I drag and drop a control in VB.NET. I have a line say,
private WithEvents radioButton RadioButton
Also, I have a handler like,
private void click(.....) Handles radioButton.Click {
...
}
Now, When I build this is .NET 3.5 in release mode, and see the generated code in reflector tool, the code is something like:
Private Overridable Property radioButton As RadioButton
.
.
.
<AccessedThroughProperty("radioButton")> _
Private _radioButton As RadioButton
And how do I avoid the generation of new properties and fields?
How do I make a release build in visual studio express 2010 (VB) ?
View 1 RepliesI've searched the VS settings and haven't discovered why the bin.Release folder is empty after a build. The bin.Debug folder output is normal. The same occurs with the obj.* folder.
View 4 Replies[code]....
View 2 RepliesI'm trying to build an application to monitor a site to build statistics from the data being read. This HTML looks like this.
<div id="history">
<h4>HISTORY</h4>
<table border="0" cellspacing="0" cellpadding="0">
[code]...
Now I can read the html and put the text anywhere, I just don't how to read specific parts so I can separate the data out.
I am trying to create an autoupdater for my application, and I came up with an idea to use the "After build" event to export the application version to txt file.Just a simple txt file with lets say "1.0.1" in it.
View 2 RepliesDue to the July 13 end of life support for IE6 minus SP3, I am planning on checking the build version of the browser once logging in. I am able to return the browser major and minor versions but cannot find a way to get to the build/patch version which tells what SP the user has. I need to confirm the user is using an IE version higher than 6.00.2900.5512.
View 9 RepliesI would like to build a text string that is the build version of my program. In VB6 I would use the values retrieved from App.Version.Major/Minor. I have looked for something similar in VS2010 VB but unable to find it. I did find information on the .NET framework, but I am looking for a build version of my program.
View 3 RepliesI've got vb Express and want to increase the version of the build file automatically. I know it can auto change the publish-version, but i never publish files. I use the build option and get the application at: ...Visual Studio 2008ProjectsWindowsApplication1WindowsApplication1inRelease. So how can vb increase the revision or build number automatically?
View 2 RepliesWe're using team build with AssemblyInfoTask to increment the build number in a nightly build. The build number is displayed in the application using My.Application.Info.Version.Build.This has been working fine for years. But since we branched the sources and started using file references instead of project references (have no idea if that's what causes the problem), the last build number is displayed instead of the current one.
The compiled files (dll's and exe's) have the correct build number, if checked by right clicking the file in Explorer and viewing detailed properties. However when the same exe-file is executed, the UI displays the previous build number.If I edit the AssemblyInfo.vb file manually (just set another number, save the file, and set it back again), both file properties in Explorer and the UI at runtime displays the correct build number. How can this happen? What can be done to avoid this strange behavior?
A particular VB.NET project is actually throwing 'Build Failed' But when I try rebuilding again it says 'Rebuild Succeeded'. It keeps alternating this behavior. Kind of random. Any vbc.exe issue of long locking the PDB or xml files?
View 9 RepliesI have a vb.net 2008 windows form application that I was just assigned to work on. how to maintain and test changes to both the pre build and the post build events? Can you tell me how to test these events? My postbuild event, I believe calls a project file in the solution file that wraps files together in a bundle in debug mode. Can you tell me how the posbuild event works and when it is called?
View 2 RepliesI just created a simple application. I Builded that using build->build myapp. I got .exe of that application. i runned. all went fine. but when i closed that app, even after closing it is in memory. it is still running. how to deploy it properly?
View 12 RepliesIs there a way to make the express version do a "clean build"?
Some of my project compilations have developed a problem which prevents debugging.
"The breakpoint that isn't working will display a message if highilighted with the mouse. The breakpoint will not currently be hit. No symbols have been loaded for this document."
The difference I've seen between the project folders for an app that will debug vs one that will not debug is that there is no ".pdb" file in the folder where the application to be debugged is running.Debug (F5) or "Build" no longer create this file.
Many of the discussion participants suggest deleting the "obj" and "bin" folders before compiling - on the assumption that this will "force" a "clean build" - is that supposed to be true? My express version has no "clean build" option, and deleting the obj and bin folders doesn't cuase them to be completely rebuilt.
Is "msbuild" the only way to force a complete build when you have the express version?
Also - how do I determine/control which net framework vision vs2010 express is using?[code]...
So when i build or click debug on my program. No errors come up and its smooth. So i decide to publish my programme. However. I come up with a bunch of errors during the publishing.
Here they are:Error 1 Cannot publish because a project failed to build. 1 1 Simple CALC
Error 2 Unable to copy file "binReleaseSimple CALC.exe.manifest" to "binReleaseapp.publishApplication FilesSimple CALC_1_0_0_0Simple CALC.exe.manifest". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
I just updated to VS2010 SP1, but I cannot be certain this problem didn't exist prior to the update.When I build my project the version in /bin/debug builds, but nothing builds in /bin/release. I do not remember making any changes that would affect this, but nothing I do now will get the release version to build.
In the Application settings under "Compile" I have Configuration set to Release and the Build output path is "binRelease For Debug I also have Configuration set to Release.
There doesn't seem to be anything else left to change/adjust - but no matter what I seem to do nothing builds in the bin/release folder.
I created a vb dll using class library in visual studio 2010 [URL]... I have accessed this Dll in Excel VBA by referencing it through (Tools>>Reference)...I obtain different results when i run my program from Excel and when I run it from Visual Studio during debugging (here the debugging starts Excel as an external program). The results are exported by the dll function as a structure array ( The required values
are in double format in a constituent 1D array). The difference is as high as 5%.
What might have caused this difference? Could someone please help me with this?
I managed to create an application that is listed in the 'open with' list only in debug version. Means, when I right click on a file extension and select "open with..." I get the 'choose program' dialog and can browse for my app, nothing impressive. The weird part is, that when I enter the path to the debug version of my program is works, and when doing the same to the release version my app is not even listed, it is simply not shown...
Does anybody know what it needs to make a simple VB.net app be listed here, any fancy debug/release setting?
I changed my VB2008 Express development system from Windows XP to Windows 7.After installing Windows 7 I installed VS2010 with VB2010 Express.Tried that and had issues so I installed VS2008 with VB2008 Express.The application I was developing with VB2008 on my XP system will compile and run in the debug environment with VB2008 on Windows 7 but the Release build (double clicking the .exe in the Release directory) will not. An information box pops up stating the application stopped working. No application Form ever showed up on the screen. I can run a simple application I start from scratch on this new setup.The release .exe compiled on my old XP system fails in the same way.What could be the problem? The application of interest uses an SQL Server CE database. A reference forSystem.Data.SqlServerCe is included in the References. What could be different about running in the debug environment vs running the
View 5 Repliesif you are debugging or releasing a projet , vs writes exe or bin files to the bin and obj folder in a release and debug version, are ther differences bewteen these files with the same name in 4 folders ?, eg myproject.exe
View 3 RepliesI have asked this elsewhere, but have never found anyone knows how to build an add-in for VBA IDE using VB.NET. Is it even possible? Could someone point me to an example?
View 4 RepliesLet me explain a bit.... let's say I already have MARIO.EXE and I want to create another (let's call it) SETUP.EXE that must have 2 buttons 'Yes' & 'No' How can I build the setup.exe and bundle these two apps together and when the newly exe (mario.exe + setup.exe) is created and launched : -if the 'yes' button is pressed it should continue with the mario.exe installation process -if the 'no' button is pressed then quit. What i don't know is the code and and how can I compile these 2 exe in a single one.
View 10 RepliesI've coded a working progress bar for my web browser and I was wondering if anyone can improve on it.These names refer to the objects on my form[code]...
View 2 Replies