0

I have a project in C# and made some changes to it. When I try to rebuild using F6/Shift+F6 it keeps showing the latest version before changes. How should I compile, so that it rebuilds using the changes I made? Its so strange =(

nlimits
  • 103
  • 1
  • 12
  • 1
    Have you tried turning it off an on again? #it_crowd :D – Hamid Pourjam Oct 19 '16 at 12:18
  • Make sure you are building the correct project or solution. Make sure you are checking the correct output. Try restarting visual studio. Try saving file before build. Ensure you are changing the correct file. Ensure the file is included in build. – Hamid Pourjam Oct 19 '16 at 12:19
  • Have you tried to click on the *Rebuild solution* in the *Build* menu? – Salah Akbari Oct 19 '16 at 12:19
  • Try Ctrl + Shift + b – Vivek Nuna Oct 19 '16 at 12:22
  • @dotctor yes, I tried everything you proposed. The thing is that I made changes in rdlc file and when I copy it inside compiled version of project that is not actual anymore, it works properly. But when I build - it doest show correct data. – nlimits Oct 19 '16 at 12:23
  • @S.Akbari that was the first what I have done – nlimits Oct 19 '16 at 12:23
  • When you say "...it keeps showing the latest version before changes." do you mean the file in VS is reverting to its original state, or that your changes simply aren't taking effect when you were expecting them to? – sr28 Oct 19 '16 at 12:29
  • @sr28 when I received the source package it had an exe file inside bin folder already. And when I included some corrections in source it keeps compiling the exe that was from beginning. So that my changes aren't effecting final exe file. – nlimits Oct 19 '16 at 12:34
  • If you click on the properties for the file, what is the build action? Is it 'Compile'? – sr28 Oct 19 '16 at 12:35
  • @sr28 its an "Embedded Resource" – nlimits Oct 19 '16 at 12:39
  • Can you show the code that accesses the embedded resource? – sr28 Oct 19 '16 at 12:45
  • Is this a WPF app? If so, setting the Build Action to 'Resource' instead. – sr28 Oct 19 '16 at 12:46
  • See this question and the answer from kiamlaluno. The 2nd paragraph might be applicable to you: http://stackoverflow.com/questions/1934826/whats-the-difference-between-a-resource-and-an-embedded-resource-in-a-c-sharp-a – sr28 Oct 19 '16 at 12:50
  • try clearing the bin folder manually then build the solution again. – gkb Oct 19 '16 at 13:00

0 Answers0