Tuesday, March 13, 2012

strange prob!

Hi,

Currently i have a project running in .NET 1.1. This project actually has many folder in it, namely the Admin folder, Status folder.

In this the admin folder is included in the project while the dll of the contents of the status folder is included in the reference section.

The status folder includes a .sln and .csproj file. Please note that the status folder contents are not included in the project.

My problem is that the flow of the program is that it actually uses the .cs files of the status folder. So the thing is like even if i make changes to the contents of the .cs files in the status folder it is not reflected in the output even when i run it.

What could this be due to. Also there are files having extension .suo. What are these used for? Is it bcoz i i didnt include the status folder in the proj that the anamoly is coming.

Please help.

Thankx

1. You can ignore the .suo file. It's generated by Visual Studio. Better, you can erase it. All it matters is the .sln file

2. If you're using the dll as reference then you got a real problem. That's because that dll simply doesn't change

Solution:

a) Click right on solution (in the Solution Explorer). Choose "Add new" -> "Project" -> "Class Library". pick a folder outside your Web folder. So it won't be included in the web solution.

b) Add all the .cs files you want to use in this project.

c) Remove the reference to old .dll file

d) Click right on web solution and Choose -> Add Reference. Select Projects -> Choose the new project you've created.


Hit rebuild. Each time you build the project the dll will be copied in the bin directory of the web project. So it's as it should have been in the first place. If you need more help, give me some details about your folder structure and the name of the file. I'll do a custom example exactly for you :)

Happy programmingGeeked

0 comments:

Post a Comment