diff --git a/LUFA/StudioIntegration/VSIX/extension.vsixmanifest b/LUFA/StudioIntegration/VSIX/extension.vsixmanifest
index 0adf42656b..0c5b008108 100644
--- a/LUFA/StudioIntegration/VSIX/extension.vsixmanifest
+++ b/LUFA/StudioIntegration/VSIX/extension.vsixmanifest
@@ -8,8 +8,8 @@
http://www.lufa-lib.org
LUFA USB Framework
- LUFA\DoxygenPages\Images\LUFA_thumb.png
- LUFA\DoxygenPages\Images\LUFA.png
+ LUFA\DoxygenPages\Images\LUFA_thumb.png
+ LUFA\DoxygenPages\Images\LUFA.png
AtmelStudio
diff --git a/LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt b/LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
new file mode 100644
index 0000000000..7f39b9e913
--- /dev/null
+++ b/LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile
index 442e8fdebf..bcacde5888 100644
--- a/LUFA/StudioIntegration/makefile
+++ b/LUFA/StudioIntegration/makefile
@@ -16,6 +16,7 @@ EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml
MODULE_OUTPUT_XML := $(LUFA_ROOT)/asf.xml
XML_FILES := $(filter-out $(TEMP_MANIFEST_FILE), $(shell ls *.xml))
LUFA_VERSION_NUM := $(shell grep LUFA_VERSION_STRING $(LUFA_ROOT)/Version.h | cut -d'"' -f2)
+EXT_VERSION_NUM := $(shell date +"%y.%m.%d").$(LUFA_VERSION_NUM)
all: check_filenames generate_xml generate_vsix
@@ -45,10 +46,9 @@ generate_xml: $(TEMP_MANIFEST_XML)
@xsltproc XSLT/lufa_extension_transform.xslt $< | xsltproc XSLT/lufa_indent_transform.xslt - > $(EXTENSION_OUTPUT_XML)
@echo "Atmel Studio extension.xml file generated."
- @rm $(TEMP_MANIFEST_XML)
-
generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML)
- cp VSIX/* $(LUFA_ROOT)/../
+ cp "VSIX/[Content_Types].xml" $(LUFA_ROOT)/../
+ xsltproc --stringparam extension-version $(EXT_VERSION_NUM) XSLT/lufa_vsmanifest_transform.xslt VSIX/extension.vsixmanifest > $(LUFA_ROOT)/../extension.vsixmanifest
cd $(LUFA_ROOT)/../; zip LUFA_AS_Extension.vsix -r --exclude=*StudioIntegration* *
check_filenames: $(TEMP_MANIFEST_XML)