Hi Jeff,
Flattery will get you anywhere :-)
I see from other other post that you've figured this out.
I think the step-by-step C# guide here:
http://www.codeplex.com/Download?ProjectName=exceldna&DownloadId=372242
might help to take you through the steps of making a new C# project
and setting everything up the right way.
If you come from a VBA background you might prefer to use
VB.NET - it
gives you a familiar syntax with the same performance and
functionality as C#. If you are interested in this direction you might
look at the posts by Patrick O'Beirne about converting VBA projects to
VB.NET with Excel-DNA. His most recent blog post and updated documents
can be found here:
http://sysmod.wordpress.com/2012/11/06/migrating-an-excel-vba-add-in-to-a-vb-net-xll-with-excel-dna-update/.
Regards,
Govert
On Nov 23, 7:50 pm, Jeff Rose <
jro...@gmail.com> wrote:
> First post on the group for me. Nice to meet you!
>
> May I first just say that getting started with ExcelDNA has been totally
> amazing. The clarity of the documentation, both in the description of
> ExcelDNA on the website, and in the files included with ExcelDNA is top
> notch. I really couldn't hope for better. A big thanks for making
> everything so straightforward and explaining the goals and limitations of
> the project so well!
>
> But on to my issue:
>
> I ran through the ExcelDNA "GettingStarted.txt" last night and everything
> went without any problems, so I'm at a point where I can call to external
> C# libraries from Excel. Now I'd like to be able to set up Visual Studio
> 2010 as my development environment so that I can take advantage of
> breakpoints and the awesome VS debugging features (and the testing
> features, too).
>
> I noticed the CSharpAddIn solution included in the Samples folder of the
> distribution and began following the steps to get it set up, but I ran into
> some trouble very early on. Particularly with this paragraph:
>
> Debugging
>
> > ---------------
> > Easiest debugging is to put the full path of Excel.exe into Project
> > Properties -> Debugging tab, Start external program:.
> > In the command line arguments: box, enter the full path to SampleCS.xll,
> > or just File->Open the SampleCS.xll when Excel is running. Then start
> > debugging with F5.
>
> Where can this SampleCS.xll be found? As far as I'm aware, the only .xll
> files packaged with the distro are ExcelDna.xll and ExcelDna64.xll. If
> "SampleCS" just supposed to be substituted for the .xll file I intend to be
> loaded? When I try this, it doesn't appear to work, and returns the
> following build error upon starting debug mode (F5):
>
> Error 1 The command "echo F | xcopy C:\Users\Jeff\Google
>
> > Drive\Workspace\C#\Libraries\ExcelDNA\Distribution\Samples\VisualStudio\CSh arpAddIn\..\..\..\ExcelDna.xll
> > C:\Users\Jeff\Google
> > Drive\Workspace\C#\Libraries\ExcelDNA\Distribution\Samples\VisualStudio\CSh arpAddIn\bin\Debug\SampleCS.xll
> > /C /Y" exited with code 4. CSharpAddIn
>
> What am I missing about this process? If I could get over this hurdle it
> would be totally fantastic, because I'm a sick and tired of using VBA and
> sick and tired of the Excel VBA editor!
>
> Thanks for making such a stand-up library. If this is my one major hiccup
> in getting up and working with .NET in Excel, then I give this two thumbs
> up.
>
> Jeff