Skip to content

Commit ef00958

Browse files
committed
Merge pull request #109 from bsara/master
Resolved Issue #108 (MSI lacks integration for Visual Studio 2013)
2 parents 670e2a7 + 69e539c commit ef00958

File tree

2 files changed

+71
-1
lines changed

2 files changed

+71
-1
lines changed

Source/MSBuild.Community.Tasks.Setup/MSBuildTasks.wixproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6-
<ProductVersion>3.5</ProductVersion>
6+
<ProductVersion>3.8</ProductVersion>
77
<ProjectGuid>{6e293db7-b1e3-4cea-ab94-79a979f91af5}</ProjectGuid>
88
<SchemaVersion>2.0</SchemaVersion>
99
<OutputName>MSBuild.Community.Tasks</OutputName>

Source/MSBuild.Community.Tasks.Setup/MSBuildTasks.wxs

+70
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,37 @@
154154
</RegistrySearch>
155155
</Property>
156156

157+
<Property Id="VS2013_SCHEMAS_MSBUILD_DIR">
158+
<RegistrySearch Id="VS2013SearchForCommonPath" Root="HKLM"
159+
Key="Software\Microsoft\VisualStudio\SxS\VS7" Name="12.0" Type="raw">
160+
<DirectorySearch Id="VS2013SearchForXmlPath" Path="Xml" Depth="1">
161+
<DirectorySearch Id="VS2013SearchForXmlSchemasPath" Path="Schemas" Depth="1">
162+
<DirectorySearch Id="VS2013SearchForXmlSchemasLangPath" Path="1033" Depth="1">
163+
<DirectorySearch Id="VS2013SearchForXmlSchemasMSBuildPath" Path="MSBuild" Depth="1" />
164+
</DirectorySearch>
165+
</DirectorySearch>
166+
</DirectorySearch>
167+
</RegistrySearch>
168+
</Property>
169+
170+
<Property Id="VS2013_MSBUILD_SCHEMA">
171+
<RegistrySearch Id="VS2013SearchForCommonPath2" Root="HKLM"
172+
Key="Software\Microsoft\VisualStudio\SxS\VS7" Name="12.0" Type="raw">
173+
<DirectorySearch Id="VS2013SearchForXmlPath2" Path="Xml" Depth="1">
174+
<DirectorySearch Id="VS2013SearchForXmlSchemasPath2" Path="Schemas" Depth="1">
175+
<DirectorySearch Id="VS2013SearchForXmlSchemasLangPath2" Path="1033" Depth="1">
176+
<FileSearch Id ="VS2013SearchForMSBuildSchema" Name="Microsoft.Build.xsd"/>
177+
</DirectorySearch>
178+
</DirectorySearch>
179+
</DirectorySearch>
180+
</RegistrySearch>
181+
</Property>
182+
157183
<PropertyRef Id="VS2005DEVENV" />
158184
<PropertyRef Id="VS90DEVENV" />
159185
<PropertyRef Id="VS2010DEVENV" />
160186
<PropertyRef Id="VS2012DEVENV" />
187+
<PropertyRef Id="VS2013DEVENV" />
161188

162189
<Directory Id="TARGETDIR" Name="SourceDir">
163190
<Directory Id="ProgramFilesFolder">
@@ -310,6 +337,39 @@
310337
Sequence="1">
311338
</util:XmlConfig>
312339
</Component>
340+
341+
<Component Id="MSBuildTasksVS2013" Guid="44D5E139-E47A-496c-A123-97D092760FA1">
342+
<RegistryKey Root="HKLM" Key="Software\Microsoft\VisualStudio\12.0\MSBuild\SafeImports">
343+
<RegistryValue Name="MSBuildCommunityTasks" Value="[MSBuildTasksDir]MSBuild.Community.Tasks.Targets" Type="string" KeyPath="yes" />
344+
</RegistryKey>
345+
<CopyFile Id="CopySchema2013"
346+
DestinationProperty="VS2013_SCHEMAS_MSBUILD_DIR"
347+
FileId="MSBuild.Community.Tasks.xsd" />
348+
<util:XmlConfig Id="MSBuildTasksSchemaIncludeVS2013"
349+
File="[VS2013_MSBUILD_SCHEMA]"
350+
Action="create"
351+
On="install"
352+
ElementPath="//xs:schema"
353+
Name="xs:include"
354+
Node="element"
355+
VerifyPath="$(var.VerifyPath)"
356+
Sequence="1">
357+
<util:XmlConfig Id="MSBuildTasksSchemaLocationVS2013"
358+
File="[VS2013_MSBUILD_SCHEMA]"
359+
ElementId="MSBuildTasksSchemaIncludeVS2013"
360+
Name="schemaLocation"
361+
Value="MSBuild\MSBuild.Community.Tasks.xsd" />
362+
</util:XmlConfig>
363+
<util:XmlConfig Id="MSBuildTasksSchemaRemoveVS2013"
364+
File="[VS2013_MSBUILD_SCHEMA]"
365+
Action="delete"
366+
On="uninstall"
367+
ElementPath="//xs:schema"
368+
Node="element"
369+
VerifyPath="$(var.VerifyPath)"
370+
Sequence="1">
371+
</util:XmlConfig>
372+
</Component>
313373
</DirectoryRef>
314374

315375
<!-- Global Assembly Cache -->
@@ -369,6 +429,16 @@
369429
<ComponentRef Id="MSBuildTasksVS2012" />
370430
</Feature>
371431

432+
<Feature Id="MSBuildTasksVS2013Feature"
433+
Title="Visual Studio 2013 Integration"
434+
Description="Integrate MSBuild Community Tasks with Visual Studio 2013."
435+
AllowAdvertise="no"
436+
Display="expand"
437+
Level="0">
438+
<Condition Level="1">VS2013DEVENV</Condition>
439+
<ComponentRef Id="MSBuildTasksVS2013" />
440+
</Feature>
441+
372442
</Feature>
373443

374444
<!-- Install Sequences -->

0 commit comments

Comments
 (0)