Code chnages not taking effect?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 anos atrás
Hi All,

I've been busy customising nop and now I'm starting to make changes to the codebehind of user controls in the modules folder but even after rebuilding my site the code changes do not seem to take effect.

e.g.

File ~/Moldules/ProductBox1.ascx.cs
Comment out line 80
Line 80:  //lShortDescription.Text = product.ShortDescription;

Yet the label lShortDescription is still populated!!

I have tried building the page, building the site and rebuilding the site.

Any suggestions appreciated!
14 anos atrás
sounds like you are using Visual Web Developer - which does not recompile the c# = no changes  

you need to get your hands on Visual Studio  2008  (or VS2010 RC )
14 anos atrás
haydie wrote:
sounds like you are using Visual Web Developer - which does not recompile the c# = no changes  

you need to get your hands on Visual Studio  2008  (or VS2010 RC )


I'm using VS2010 Pro RTM

This is a project I have on a Windows 2008 Server and attaching remotley to the website with Front page extensions and VS2010 Pro - so it's not the whole nop solution, but just everything inside the web root, but as the code I'm trying to change is in that web root I can't see why it is not behaving!
14 anos atrás
when you recompile, is the updated

NopCommerceStore.dll

being uploaded to your bin folder ?
14 anos atrás
haydie wrote:
when you recompile, is the updated

NopCommerceStore.dll

being uploaded to your bin folder ?


No it's not!

I just tried deleting it to fore VS to build it and now I'm getting build errors becuase VS can't find it!
14 anos atrás
Try this (hope it helps)

1) Clean your solution

2) Build your solution

3) Close the whole project

4) Open the project again in Visual Studio and run it, and see if it's working or not
14 anos atrás
abcd_12345 wrote:

1) Clean your solution
t


Can you clarify what you mean by clean? Thanks!
14 anos atrás
Take a look at this image,

http://www.chavoustie.com/images/destruction.jpg

In Visual Studio > On the menu bar (Build) > Select Clean Solution

Once your solution is cleaned successfully

Build your solution (REMEMBER I AM TALKING ABOUT BUILD SOLUTION  - NOT RE-BUILD OK)

Follow the steps above...Let me know if you're having any issues
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.