Unable to Build Release Version of Program
-
Hi, I'm using a third party class library called SmtPop.NET, to allow me to read (Pop3) and send (SMTP) email from a server. I have this whole program working correctly when building the Debug version of the application. Only when I try and build the Release version I recieve a number of errors relating to the SmtPop reference, for example: Error: The type or namespace name 'SmtPop' could not be found (are you missing a using directive or an assembly reference?)
I also recieve the following warning message: Warning: Could not resolve this reference. Could not locate the assembly "smtpop". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Does anyone know why I would recieve these messages? Or has anyone every recieved messages of this sort when trying to build a Release version of a program that inclueds a third party class library added as a referance? Any help would be really appreciated. Thanks, Mel -
Hi, I'm using a third party class library called SmtPop.NET, to allow me to read (Pop3) and send (SMTP) email from a server. I have this whole program working correctly when building the Debug version of the application. Only when I try and build the Release version I recieve a number of errors relating to the SmtPop reference, for example: Error: The type or namespace name 'SmtPop' could not be found (are you missing a using directive or an assembly reference?)
I also recieve the following warning message: Warning: Could not resolve this reference. Could not locate the assembly "smtpop". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Does anyone know why I would recieve these messages? Or has anyone every recieved messages of this sort when trying to build a Release version of a program that inclueds a third party class library added as a referance? Any help would be really appreciated. Thanks, Mel -
Is there something you have to do with references when creating the release version of a .Net program?
Ok, I've been playing around with it and just happened to copy the SmpPop.dll and other related files (contained in a folder) into the folder of my project and then reattached the SmpPop.dll as a reference in my project. Rebuilt the solution, which was successful with no error. I'm assuming that was the problem and I had to include reference dll's in the folder of your project. Correct me please if I'm wrong of if you know of an article that I can read that describes the process of a build. Thanks, Mel
-
Ok, I've been playing around with it and just happened to copy the SmpPop.dll and other related files (contained in a folder) into the folder of my project and then reattached the SmpPop.dll as a reference in my project. Rebuilt the solution, which was successful with no error. I'm assuming that was the problem and I had to include reference dll's in the folder of your project. Correct me please if I'm wrong of if you know of an article that I can read that describes the process of a build. Thanks, Mel
-
http://www.codeproject.com/Messages/1996551/Re-How-to-deploye-csharp-Application.aspx[^] or Google "deploying C# project" or similar.