Solved

C# Project will not build

Posted on 2007-12-01
12
243 Views
Last Modified: 2013-12-16
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
Comment
Question by:Saxitalis
  • 6
  • 4
  • 2
12 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20389574
try to Rebuild All
0
 

Author Comment

by:Saxitalis
ID: 20389607
Boy I just cannot find the Rebuild All funtion. Do I need to do this from a command prompt??
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20389644
Build menu -> Rebuild Solution
0
 
LVL 19

Expert Comment

by:LordOfPorts
ID: 20389648
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
 

Author Comment

by:Saxitalis
ID: 20389762
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
 
LVL 19

Expert Comment

by:LordOfPorts
ID: 20389796
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20389829
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
 

Author Comment

by:Saxitalis
ID: 20389862
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
 

Author Comment

by:Saxitalis
ID: 20389869
Oh sorry just saw LordofPorts post.

No this is a C# Windows App that I hav been working on for quite some time.
0
 

Author Comment

by:Saxitalis
ID: 20389892
I just created a new windows Project and get the same results. No option to Rebuild. This sure seems to be disabled somewhere ...
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20389970
0
 

Author Comment

by:Saxitalis
ID: 20390018
Very Good!!

Thanks James - that was it ...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# Error - Add Failed 12 78
VB .NET application would like equitable cpu usage 3 25
Angular JS Route 3 45
Automated testing suggestions? 2 22
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now