7 Replies Latest reply on Jan 31, 2018 12:02 PM by Radwan Shaykho

    c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs

    Radwan Shaykho

      Hi How do I change the above internal link to point to the correct path? Thank you

        • Re: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs
          Robin West

          Hi Radwan,

          Which IDE are you using and can you post the full error you are getting?  You should not need to change the path for this file. 

          Thanks, Robin

            • Re: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs
              Radwan Shaykho

              Hi Robin, Am using Enterprise Visual Studio 2017 The error is below: Locating source for 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Comm\TcpConnection.cs'. Checksum: SHA1 {67 ef c0 37 8 c8 7e 52 2a 3b 94 f6 54 c4 56 f4 fe f1 8f 29} The file 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Comm\TcpConnection.cs' does not exist. Looking in script documents for 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Comm\TcpConnection.cs'... Looking in the Edit-and-Continue directory 'C:\Users\ok644c\Documents\Visual Studio 2017\Projects\Z-SGD\enc_temp_folder\'... The file with the matching checksum was not found in the Edit-and-Continue directory. Looking in the projects for 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Comm\TcpConnection.cs'. The file was not found in a project. Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\cvt\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\msclr\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\sys\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\thr\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\x64\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\arm\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\concrt\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\i386\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\linkopts\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\stl\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\vccorlib\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\vcruntime\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\atlmfc\src\mfc\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\atlmfc\src\atl\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\atlmfc\include\'... The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Comm\TcpConnection.cs. The debugger could not locate the source file 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Comm\TcpConnection.cs'.

                • Re: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs
                  Robin West

                  Hi Radwan,

                  This is a strange error.  How are you referencing the SDK?  Do you have any idea why your debugger is having issues, but the compiler isn't? 

                   

                  I highly recommend coping all of the files from the SDK install location "\link_os_sdk\PC-.NET\v2.13.898\lib" folder into a folder in your project then add references to the three SdkApi libraries in the copied folder. I go through this in more depth in the webinar below.https://youtu.be/UEKxdy224JA?t=253

                  SdkApi_Core.dll

                  SdkApi_Desktop.dll

                  SdkApi_Desktop_Usb.dll

                    • Re: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs
                      Radwan Shaykho

                      Hi Ronin I did what you told me to do. I copied all the dlls over to the project location files. Then I just referenced the 3 dlls you listed in your post. Below is the result get: Locating source for 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs'. Checksum: SHA1 {fa c b8 1b 1d 30 79 1f 1c 84 fe 9b 64 81 cc c7 76 67 24 30} The file 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs' does not exist. Looking in script documents for 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs'... Looking in the Edit-and-Continue directory 'c:\users\ok644c\documents\visual studio 2017\Projects\Zebra_test1\enc_temp_folder\'... The file with the matching checksum was not found in the Edit-and-Continue directory. Looking in the projects for 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs'. The file was not found in a project. Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\cvt\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\msclr\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\sys\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\thr\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\x64\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\arm\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\concrt\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\i386\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\linkopts\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\stl\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\vccorlib\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\crt\src\vcruntime\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\atlmfc\src\mfc\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\atlmfc\src\atl\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\atlmfc\include\'... The debugger will ask the user to find the file: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs. The user pressed Cancel in the Find Source dialog. The debug source files settings for the active solution have been modified so that the debugger will not ask the user to find the file: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs. The debugger could not locate the source file 'c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs'.

                  • Re: c:\Jenkins\workspace\Sdk_C_Desktop\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs
                    Radwan Shaykho

                    Hi Robin, I have ran another application from the SDK and ran okay without any errors. For some reason the code I used from is not working whenI created Console .Net Application. Thank you for your help and support!!! Rad   public static void Main(string[] args)         { Connection connection = new TcpConnection("xxx.xxx.xx.xx", TcpConnection.DEFAULT_ZPL_TCP_PORT);             try             {                 connection.Open();                 ZebraPrinter printer = ZebraPrinterFactory.GetInstance(connection);                 PrinterStatus printerStatus = printer.GetCurrentStatus();                 if (printerStatus.isReadyToPrint)