![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Question from .net beginner regarding rebuilding custom class library I have two vb.net projects, one that creates a class library and another that uses ("consumes") the class library. Whenever I rebuild the class library project then use it in the consumer project the consumer project won't compile unless I delete the reference to the class library in the consumer project then re-add the reference. This is time consuming and error-prone. ? Is there a better way to handle this situation ? Thanks |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Question from .net beginner regarding rebuilding custom class library consumer projects: <jz3@xxxxxx> wrote: Quote: > I have two vb.net projects, one that creates a class library and > another that uses ("consumes") the class library. Whenever I rebuild > the class library project then use it in the consumer project the > consumer project won't compile unless I delete the reference to the > class library in the consumer project then re-add the reference. This > is time consuming and error-prone. > ? Is there a better way to handle this situation ? What's the error message? Is it something to do with a version mismatch? If so, you could potentially change the reference properties so that "Use specific version" is set to False. -- Jon Skeet - <skeet@xxxxxx> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet World class .NET training in the UK: http://iterativetraining.co.uk |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Question from .net beginner regarding rebuilding custom class On Mar 13, 12:53*pm, Jon Skeet [C# MVP] <sk...@xxxxxx> wrote: Quote: > *<j...@xxxxxx> wrote: Quote: > > I have two vb.net projects, one that creates a class library and > > another that uses ("consumes") the class library. Whenever I rebuild > > the class library project then use it in the consumer project the > > consumer project won't compile unless I delete the reference to the > > class library in the consumer project then re-add the reference. This > > is time consuming and error-prone. > > ? Is there a better way to handle this situation ? > When you say it "won't compile" that suggests there's an error message. > What's the error message? Is it something to do with a version > mismatch? If so, you could potentially change the reference properties > so that "Use specific version" is set to False. > > -- > Jon Skeet - <sk...@xxxxxx>http://www.pobox.com/~skeet* Blog:http://www.msmvps.com/jon.skeet > World class .NET training in the UK:http://iterativetraining.co.uk Thanks for your reply. The compile error I got said that it (Visual Studio 2005) couldn't locate the class library class that was being referenced in the consumer project. However, after doing some routine work in the class library project the compile error in the consumer project disappeared. The only thing I did was to set the output path of the class library project to the bin directory of the consumer project where the consumer project was looking for the dll. I don't know if that's what fixed the error or not, but the error has gone away nevertheless. I may run into the problem again in the future and if I do I'll take a look at the "Use specific version" setting. Thanks Again. |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Question from .net beginner regarding rebuilding custom class library consumer projects: <jz3@xxxxxx> wrote: Quote: Quote: > > When you say it "won't compile" that suggests there's an error message. > > What's the error message? Is it something to do with a version > > mismatch? If so, you could potentially change the reference properties > > so that "Use specific version" is set to False. Quote: > Thanks for your reply. The compile error I got said that it (Visual > Studio 2005) couldn't locate the class library class that was being > referenced in the consumer project. However, after doing some routine > work in the class library project the compile error in the consumer > project disappeared. The only thing I did was to set the output path > of the class library project to the bin directory of the consumer > project where the consumer project was looking for the dll. Quote: > I don't > know if that's what fixed the error or not, but the error has gone > away nevertheless. I may run into the problem again in the future and > if I do I'll take a look at the "Use specific version" setting. > Thanks Again. output directory of the class library. I've sometimes found that VS2005 doesn't set the hint path for assemblies properly - edit the project file by hand to set this appropriately if necessary. -- Jon Skeet - <skeet@xxxxxx> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet World class .NET training in the UK: http://iterativetraining.co.uk |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Icons in dll / assembly / class library | .NET General | |||
| Re: invisible classes outside the Class Library | .NET General | |||
| RE: invisible classes outside the Class Library | .NET General | |||
| Using a C# Class Library with VB6 | .NET General | |||