Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

C# Project will not build

Hello,

I am using Visual Studio 2005.

Every once in a while (like right now!!) My C# project will not reflect new changes to a form or report or ANY object that I make a change to in the project. When I build the project, the message says it was a sucessful build but it is way too fast.

When I run the project with or without debugging (Ctrl-F5 or F5) the exe file runs and the program is displayed from an earlier instance. The changes I made are not reflected. This has happened before but I was never able to put my finger on why. I think I restored from a backup last time it happened.

I have tried going into the bin folder and deleting the exe file but no go...

Does anyone have any idea what is going on here??

Thnaks!

I have tried deleting
0
Saxitalis
Asked:
Saxitalis
  • 6
  • 4
  • 2
1 Solution
 
Jaime OlivaresCommented:
try to Rebuild All
0
 
SaxitalisAuthor Commented:
Boy I just cannot find the Rebuild All funtion. Do I need to do this from a command prompt??
0
 
Jaime OlivaresCommented:
Build menu -> Rebuild Solution
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LordOfPortsCommented:
In Visual Studio, after you have opened your project, on the menu at the top click Build -> Rebuild Solution. Then click Debug -> Start from the same menu. That is probably what the first comment referred to.
0
 
SaxitalisAuthor Commented:
Yeah - I don't have that option. My only two options on the build menu are build and publish.

Could this be turned off somewhere? I have searched through Options to no avail ...
0
 
LordOfPortsCommented:
That sounds like an ASP .NET web application project written in C#. In that case after you have clicked on Build you would then click on Publish. Now, the publish to directory setting must be set correctly to the path of your web server that runs the web application, I assume you have a local IIS server, so the path would be something like this http://localhost/WebApplication1. Unfortunately I currently have no access to a web server and cannot provide the exact steps but the following web page might have the information you are looking for http://msdn2.microsoft.com/en-us/library/aa983453(VS.80).aspx 
0
 
Jaime OlivaresCommented:
You don't see that option because you have the express edition, there is a workaround for this. Close the Visual studio, lauch the Windows explorer, look for you solution's folder. Inside it, remove the 'bin' and 'obj' folders.
Lauch Visual Studio again and build your solution as usual.
0
 
SaxitalisAuthor Commented:
I am using VS Professional

I found the command line switch example

devenv /rebuild Debug "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug

My system does not recognize devenv when I run it from the command line hmm.

I'll try your suggestion but I am not running Express
0
 
SaxitalisAuthor Commented:
Oh sorry just saw LordofPorts post.

No this is a C# Windows App that I hav been working on for quite some time.
0
 
SaxitalisAuthor Commented:
I just created a new windows Project and get the same results. No option to Rebuild. This sure seems to be disabled somewhere ...
0
 
SaxitalisAuthor Commented:
Very Good!!

Thanks James - that was it ...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now