xlladdins / xll

Excel add-in library
MIT License
104 stars 23 forks source link

Get Started doesn't work #19

Closed pausti2 closed 2 years ago

pausti2 commented 2 years ago

When using the template to generate the new repository under get started instructions, the xll_template.sln is not a valid solution. I think the problem is that the xll directory is empty and so one required project is missing. Probably I am doing something wrong? Thank you very much

keithalewis commented 2 years ago

Works for me in VS 2019 and 2022. What is the url of the repository generated from the template?

pausti2 commented 2 years ago

Thank you for the super-fast reply. It was a private repo but I just did the same and made it public: https://github.com/pausti2/xlldemo2 I am using Microsoft Visual Studio Community 2022 (64-bit) Apologies if I am doing something silly

keithalewis commented 2 years ago

I cloned the link above into VS 2022, clicked on OK to retarget, opened xll_template.sln, selected xll_template as the startup project and pressed F5. Everything built and (64-bit) Excel started in the debugger with the add-in loaded. You may have to hit Ctrl-N in Excel to get a new window. Let me know if this is not working for you.

pausti2 commented 2 years ago

Thank you, I used SourceTree to pull https://github.com/pausti2/xlldemo2. It has pulled xll_template.sln and other files in the same directory, but it hasn't pulled anything into the xll directory (it's just an empty directory).

I have just tried this:

cd xll git pull origin master and it outpus this: From https://github.com/pausti2/xlldemo

  • branch master -> FETCH_HEAD Already up to date.

Clearly an issue on my side as I can see the xla folder and content in the github web interface. Can you think what the issue could be?

pausti2 commented 2 years ago

Ah, this worked (run from the main folder)

git submodule update --init xll

Thank you again for your help

keithalewis commented 2 years ago

Glad you are up and running. My guess is that it is a Sourcetree issue. Submodules seem to be a work-in-progress on GitHub. You can use update to get the latest version of the xll library. Submodules are not automatically updated.