Visual studio build dll and exe




















Archived Forums. Visual C. Sign in to vote. I have a C console application but it only compiles to a. Monday, January 1, PM. Was a Windows Application. Changed it to Console Application It's still not working though. Yes I rebuilt the application. Is that what you did? Hi yperz, After rebuilding your solution please go to your projects "bin" folder there you will a. Thanks, Sabah Shariq [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click "Vote as helpful" button of that post.

Also, see instructions on how to install offline. If you have a validly licensed copy of such software, you may copy and distribute with your program the unmodified form of the files listed below, subject to the License Terms for the software. The following software components are licensed and supported separately under the Microsoft.

If you do not agree to the license terms for these software components, you may not use them. Redistributable files for Blend Project and Item Templates for Visual Studio are installed in the following locations:. Subject to the License Terms for the software, you may copy and distribute the following files, unmodified, with your program:. Note: Both files are identical but may use different names for different distribution channels. Subject to the License Terms for the software, you may copy and distribute the following files, unmodified, as a part of the installation package of your program:.

Subject to the License Terms for the software, you may copy and distribute with your program any of the files within the following folder and its subfolders except as noted below. The problem is when I pass my exe file to others, I need to send this io. Is there any way I can compile this. What you're trying to accomplish is not an easy feat. If you got it to work below it would be largely considered hackish. Is there any reason why you can't ship the DLL as well? As DMan has pointed out you could compile this assembly as an embedded resource.

However on startup you would have to read the assembly out and write it to disk next to you EXE before you accessed any types from that assembly. I would strongly recomend against this. The VS GUI only lets me choose one or the other, and building the proj twice all the time is inconvenient. How can I set it up to build both output types in a single build job? Do I write some custom MSBuild.

If I'm not mistaken, you can use the EXE as a class library. Just add a reference to it, in the other projects. You could build the dll by default, and make another dependant target that is simply a wrapper console app that uses the dll.

Create two separate projects, one for your Console app and one for the Class library. Set the appropriate Output type for each. There is no real difference between the two in. You cannot compile to both an exe and a dll. This flag cannot have both values. What you can do to satisfy your need is to add a reference to your exe.



0コメント

  • 1000 / 1000