I have the following situation:
I developed a VSTO Excel 2016 Workbook, which triggers some code when you copy/paste an Excel Worksheet in the above mentioned Workbook. When I publish the project (Project Properties > Publish > Publish Now), Visual Studio creates the following in Folder:
The Workbook only opens without error when I first run the Setup, which obviously installs the .vsto file.
My Question:
Can you generate/publish a .xlsx Workbook which is portable, i.e. you don't have to install anything since the Code is already in the .xlsx file? Because I don't want to run the setup.exe every time when I switched to another PC.
Or is there even an alternative solution to VSTO/my problem?
The only way to embed and distribute code with a workbook is to use VBA.
There is no way to embed a VSTO solution in a workbook - VSTO was explicitly designed to not allow that for reasons of code maintenance and security.