![]() Once there, type: csc -out:myfilename.exe -target:winexe -win32icon:myiconname.ico myVisualStudiofilename.cs. In Visual Studio, go to Tools>ComandLine>DOS prompt. I would like to thank everyone who helped me with their expertise. What is important: The exe, cs and ico files must all reside in the same directory, not necessarily in drive c. ![]() We have then deleted that ICON from the folder where app workspace resides and icon is still appearing as it is, while launching through both IDE & EXE so, the image is actually embedded into the compiled exe and no more required after exe gets rebuild. We rebuild the exe and everything went into success. That’s why we don’t specify the full path for images within our application– we just put the image file name and count on windows to find it in c:\xx\xxx (or any alternative folder if the workstation was setup to not use c:\xx\xxx but instead go to a any drive instead).īut, what we did is we have added the application icon into the folder where app workspace resides and then rebuild the exe without making any change into app icon segment. The workstation’s library PATH system variable at the windows level is updated when we install our application on a workstation to include the c:\xx\xxx so windows can find the image/icon file. all come from c:\xx\xxx ( the different folder than the folder where workspace resides) at run time. We had assumption that compiled exe will load the image file during runtime if, we will be adding app icon into the same folder where application's workspace resides and it was an obvious assumption as we don’t use any PBR files in our application. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |