From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f5740c829cbe6888 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc03.POSTED!72fcb693!not-for-mail From: Fionn Mac Cumhaill Newsgroups: comp.lang.ada Subject: Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005 Message-ID: References: <48b5a3a1$0$196$e4fe514c@news.xs4all.nl> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 31 Aug 2008 16:02:52 GMT NNTP-Posting-Host: 71.170.20.112 X-Complaints-To: abuse@verizon.net X-Trace: trnddc03 1220198572 71.170.20.112 (Sun, 31 Aug 2008 12:02:52 EDT) NNTP-Posting-Date: Sun, 31 Aug 2008 12:02:52 EDT Xref: g2news1.google.com comp.lang.ada:1848 Date: 2008-08-31T16:02:52+00:00 List-Id: On Fri, 29 Aug 2008 06:03:07 GMT, "Paul" wrote: >Thanks Rob. I didn't ask the original question but had the same problem. >After adjusting the paths in the fix it worked for me. > >Rgds >Paul > >"Rob Veenker" wrote in message >news:48b5a3a1$0$196$e4fe514c@news.xs4all.nl... >> Fionn Mac Cumhaill wrote: >> >>> >>> Has anybody done this successfully? I get a package load failure error >>> message when Visual Studio 2005 starts. If I ignore the message and >>> try to create an Ada project, I get the following message, which is >>> similar to the first one: >>> >>> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0, >>> Culture=neutral, PublicKeyToken=0c733cd32e50e760 >>> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of >>> previous errors. For assistance, contact the package vendor. To >>> attempt to load this package again, type 'devenv /resetskippkgs' at >>> the command prompt. >> >> >> On my machine I found the same problem. There appears to be a registry >> problem in the GPL version. Normally I use the GNAT Pro version. >> Although I'm no expert, I did find that adding the following registry >> information fixed this problem on my machine. >> >> Put this text in a file called fix.reg and double click on it. >> >> ------------------------------------------------ >> Windows Registry Editor Version 5.00 >> >> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}] >> @="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0, >> Culture=neutral, PublicKeyToken=0c733cd32e50e760" >> "Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral, >> PublicKeyToken=0c733cd32e50e760" >> "Class"="AdaCore.AdaPackage.AdaPackage" >> "CodeBase"="C:\\Program Files\\Gnatpro\\vs_integration\\AdaPackage.dll" >> "CompanyName"="AdaCore" >> "ID"=dword:00000068 >> "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll" >> "MinEdition"="Standard" >> "ProductName"="GNAT Pro for .NET" >> "ProductVersion"="1.0.0.0" >> >> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll] >> "DllName"="vs_lexer.dll" >> "Path"="C:\\Program Files\\Gnatpro\\vs_integration" >> ------------------------------------------------ >> >> BTW, when an Ada project can't be opened, i.e. there is a problem with >> adaproj, >> also check the registry for a value skiploading=1 (should be 0) on the >> following key: >> HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75} >> >> Hope this helps >> Rob >> > It took a bit of hacking on the .reg file, but I got VS to start. Thanks, Rob - I would never have been able to to this without your help. I did find that the second section of the .reg file, the SatelliteDll part, did not load, and I had to break it out as a second .reg file. Unfortunately, I still have problems. I tried to build a bare-minimum project, with this source code: procedure Project2 is begin null; end Project2; and got this failure message: ------ Build started: Project: Project2, Configuration: Debug Any CPU ------ C:\Documents and Settings\David Gressett\My Documents\Visual Studio 2005\Projects\Project2\Project2\Project2.adaproj(38,5): Error MSB4018: The "CompileTask" task failed unexpectedly. System.ComponentModel.Win32Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at CompileTask.CompileTask.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) Done building project "Project2.adaproj" -- FAILED. Build FAILED. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========