Workshop 1 Getting Started 2016 Boris Wylutzki Begrüßung und Prüfen ob alle sehen und hören können Vorstellungsrunde 2016
Workshop 1 – Getting Started Agenda Workshop 1 – Getting Started Overview of repository contents Building releases Preparing a SAP system for development Setting up Visual Studio IDE and extensions Debugging the add-on Goals: Developer can build and test new releases Developer finds relevant internal documentation Duration: 2 hours presentation 1 hour questions & answers
Prerequisites Visual Studio 2013 Professional or Enterprise Edition; Community/Express Edition is not enough VS 2015 should also work, but we have not tested it yet. Microsoft SQL Server 2008 R2 / 2012 / 2014 2014 recommended; not Express Edition SAP Business One 9.2 PL04 You can follow with 9.1 PL13 as well, but we will use 9.2 for demonstration. VariAdd Project plus source code from 2016-11-23 See workshop invitation mail. Java SE Development Kit 8 in 32 bit and 64 bit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Eclipse IDE for Java Developers http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/neonr Besonders der aktuelle Source Code ist wichtig
Source Code of VariAdd Project plus Documentation in \Sources\BXPRO\Documentation Most relevant documents: Developer Guide.docx Support Guide.docx VariAdd Project plus ReleaseNotes.docx VariAdd Project plus Summary of changes.docx VariAdd Project plus User Manual.docx / VariAdd MRO Manual.docx Developer Guide zeigen Verzeichnisstruktur des Quellcodes Hinweis auf Setup Entwicklungsumgebung / Tools / etc.
Build Single Releases Run Version Changer \VPRO\Binaries\VersionChanger\VersionChanger.exe Run build as administrator \VPRO\Sources\BXPRO\buildStart.bat Check logfile \VPRO\Sources\BXPRO\buildlog-current.log Get release \VPRO\Sources\BXPRO\Releases Danach Addon in SAP installieren und testen, dass es funktioniert. Dabei wird auch DB initialisiert/aktualisiert
Build Troubleshooting Build fails because “WinSDK-NetFx40Tools-x86” is missing Download Windows Software Development Kit (SDK) for Windows 8 https://developer.microsoft.com/en-us/windows/downloads/windows-8-sdk Run "regsvr32 vbscript.dll" for faster installation and uncheck "Application Verifier" if installation rollbacks Build fails with message “msbuild returned 1” or “Task could not find "AL.exe" using the SdkToolsPath” Install .Net 4.0 SDK Framework, for example: https://www.microsoft.com/en-us/download/details.aspx?id=8279
Just start \VPRO\build_all.cmd as Administrator! Build All Releases Just start \VPRO\build_all.cmd as Administrator! → creates 4 Releases in \VPRO\ReleaseBuild VariAdd Project plus for SBO 9.2 32bit MSSQL VariAdd Project plus for SBO 9.2 32bit HANA VariAdd Project plus for SBO 9.2 64bit MSSQL VariAdd Project plus for SBO 9.2 64bit HANA Check logfiles in \VPRO\ReleaseBuild or \VPRO\Sources\BXPRO\buildlog-current.log (last release build) Alle Teilnehmer Release bauen lassen; im Hintergrund weitermachen. Nach Build-Ende: Registriert Trimergo COMponent Ggf. Fehlermeldungen kurz gemeinsam prüfen/fixen Jetzt könnt ihr bauen!
Install Add-On VariAdd Project Add-On Install from within SAP with .ard file VariAdd Project Server Install from setupb2server.msi Configure service, choose free port Test service Open planboard in SAP Ggf. Probleme mit Java usw. beheben
Run and Debug the Add-on in Visual Studio Prerequisite: Have VariAdd Project plus installed before, but not currently running Run Version Changer Open and build in Visual Studio: \VPRO\Sources\BXFramework4PRO\BXFramework.sln Open and build in Visual Studio: \VPRO\Sources\BXPRO\Trimergo-B2.sln Set as “BXPROAddOn” as startup project Start SAP Business One Start Trimergo-B2 solution Set Breakpoint in \Sources\BXPRO\Trimergo-B2-Client\src\persist\project\Project.cs SaveInCurrentTransaction() as administrator Warum als Administrator starten: DLL-Registrierung; Zugriff auf fremden SAP-Prozess Framework einmal kompilieren und dann vergessen Tipps für Visual Studio, zum Beispiel: Resharper Debugging von Framework-Dateien in Client-Solution etc. Prüfen dass addon in SAP läuft Hinweis auf Lizenz, die nicht benötigt wird. Breakpoint setzen und dort anhalten lassen as administrator
Thank you! Questions?