Author Topic: getting C#.Net 2.0 EA framework example to work  (Read 3948 times)

brighton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
getting C#.Net 2.0 EA framework example to work
« on: January 15, 2007, 02:37:46 am »
ok, ok another newbe question on a familar theme 'how to get the basic example working' sorry to do this to you but could anyone help?

- used the C# CSFramework example
- complied using XP and MS VS express 2005 and 2.0 .NET framework to a .dll
- running EA 6.1.792
- copied the .dll and the .tlb to C:\Program Files\Sparx Systems\EA
- used regasm command 'regasm CSAddinFramework.dll' (changed the name of example in VS, could this be the problem?)
- registered key in the \sparc systems\EAAddins following instructions in other threads on this site
- loaded EA, refreshed the menus (another thread solution)
- still no new menus

running out of ideas, seemed to have done everything everyone else has in other threads.
« Last Edit: January 15, 2007, 03:25:25 am by brighton »

bittercoder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • .Net developer
    • View Profile
Re: getting C#.Net 2.0 EA framework example to wor
« Reply #1 on: January 15, 2007, 03:45:20 pm »
Did you use regasm with the /codebase parameter?

brighton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: getting C#.Net 2.0 EA framework example to wor
« Reply #2 on: January 16, 2007, 01:07:32 am »
er..no
i unregistered the object and then used the /codebase option and it returned a strong name warning but it did say it was registered.
But when i tried EA i stil didn't get any menus.
I tried copying the .dll and .tlb to the GAC with draganddrop and no luck either.
You might have guessed i am a bit new to .NET.

I am probably not alone in doing this and its a shame Sparx don't have a more robust 'how to' guide for .NET. There seems to be a few tweakes to make this work (see other threads) and they could do with updating the readme.txt in the example.

If anyone could help i would be happy to email a package.zip with my failed version, or could someone send me explicit C# .NET instructions for the standard example using VS Express 2005?

extra .. if i use the /codebase option of regasm, would it help if i regsiter the instance of the .dll that is in the /bin/release or /bin/debug dir of my VS project instead of the one i copied into the /EA folder in programe files?

« Last Edit: January 16, 2007, 04:09:39 am by brighton »

brighton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: getting C#.Net 2.0 EA framework example to wor
« Reply #3 on: January 17, 2007, 12:05:38 am »
Well i have just had a look at the the ea user group and the following link looks interesting

http://wiki.eausergroup.org/index.php?title=Automation_Addin

Thanks to Mr Barnes for this. I will have a go tonight and post how i get on (some of us don't have the luxury of being actually paid to write stuff for EA during the day - yet - when my project manager sees this working he might change his mind).

PS - i am based in the UK, anyone else in the same time zone?

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: getting C#.Net 2.0 EA framework example to wor
« Reply #4 on: January 17, 2007, 01:46:31 am »
to PS - yes, but you're probably too south-coastal, judging by your name !

brighton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: getting C#.Net 2.0 EA framework example to wor
« Reply #5 on: January 19, 2007, 01:59:02 am »
At last..it is working.
I followed instructions on the wiki page by Mr Barnes to the letter..with the following 3 exceptions, 2 of which seemed to be mandatory, one is optional.

Optional
1) used output path /bin/release (up to you?)

Mandatory
2) Needed to open a EA project (not just start it) (any will do)
3) Needed to refresh menu via Tools | Customise | Menu | Reset

I then added in some more stuff from the standard Framework example and..its all worked and then I had to get back to work (proper work).

thx to all that helped, especially other posts on the same subject.

I will try and post some more on what else is required to get the IDE to start the EA (based on the framework example?) then someone that knows more about wiki can update it all if they want.