Repository navigation
VS Extension Discussion #1
Description
Activity
What Visual Studio versions you would like to support?
VSIX model doesn't have any built-in support for licensing.
What Visual Studio versions you would like to support?
Just VS 2019.
I'm trying to include XML schemas to the VS extension.
-
Schemas can be installed globally to all projects on the machine, but it requires the extension to also be installed for all users, that complicates extension installation and updates.
-
We can use a separate extension to install schemas globally (like you currently have in VSExcel), keeping the main extension installable for the current user.
-
Include schemas to Excel-DNA add-in project templates from the extension using ExcelDna.XmlSchemas package.
What option do you prefer?
-
Let's go with all three options - that seems to be the least amount of work now.
-
Is it possible to install them (or attempt to install them) if the extension is being installed for all users, and otherwise not have an error? That would be good, if it is easy to do.
-
Then we keep the separate Excel-DNA XML Schemas extension available as an alternative way to install them.
-
Finally, if we later make a wizard to configure the project, or have a menu to add features to a project, we can add the option to install the schemas NuGet package there, if it has not been installed gloabally. (At that point it would be nice to have a way to detect whether they are installed, if that is fairly easy.)
The most interesting of the schemas is the 2010 Office ribbon schema. I would like to know whether that schema is installed by Visual Studio separately, when the Office development features are installed. Is there a way to detect (inside an extension) what schemas are installed?
-
- If we include schemas for global installation, the extension have to be marked as designed for all users and will always be installed for all users. The fallback to current user without schemas is not possible.
I've installed the "Office/SharePoint development" workload in VS 2019, but customUI.xsd haven't appeared in xml\schemas.
Looking more closely, I've found it in xml\schemas\1033\customUI14.xsd.
OK - that customUI14.xsd is the only one we really care about. The .dna schema is nice, but less important, and the old Excel 2007 ribbon schema is not important.
I don't know if most users would have the Office workload installed, and would not encourage it for a beginner, but it's good to know that that is a case where the schema is installed already.
This topic is for general discussion of the Visual Studio extension for Excel-DNA.
We can create individual issues for specific work items as these are more clearly defined.
My thoughts for the first iteration of the VS extension:
ExcelDna.AddInNuGet package installed.<Reference ... Pack='true' \>tags to help with the packing.General extension features:
Future topics, not for the first iteration: