Skip to content

Commit 030ef6a

Browse files
Added support for VS 16.0
1 parent 586295b commit 030ef6a

File tree

2 files changed

+16
-41
lines changed

2 files changed

+16
-41
lines changed

src/WebCompilerVsix/WebCompilerVsix.csproj

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
4+
<MinimumVisualStudioVersion>$(VisualStudioVersion)</MinimumVisualStudioVersion>
55
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
66
<UseCodebase>true</UseCodebase>
77
<StartAction>Program</StartAction>
@@ -61,11 +61,7 @@
6161
<Compile Include="Commands\Recompile.cs" />
6262
<Compile Include="Commands\CreateConfig.cs" />
6363
<Compile Include="Constants.cs" />
64-
<Compile Include="ContentType\HBSContentTypeDefinition.cs" />
65-
<Compile Include="ContentType\HandlebarsContentTypeDefinition.cs" />
6664
<Compile Include="ContentType\SassContentTypeDefinition.cs" />
67-
<Compile Include="ContentType\StylContentTypeDefinition.cs" />
68-
<Compile Include="ContentType\StylusContentTypeDefinition.cs" />
6965
<Compile Include="ErrorList\ErrorListService.cs" />
7066
<Compile Include="ErrorList\SinkManager.cs" />
7167
<Compile Include="ErrorList\TableDataSource.cs" />
@@ -91,7 +87,7 @@
9187
<Link>Resources\LICENSE</Link>
9288
<IncludeInVSIX>true</IncludeInVSIX>
9389
</Content>
94-
<Content Include="..\WebCompiler\bin\$(Configuration)\net46\WebCompiler.pdb">
90+
<Content Include="..\WebCompiler\bin\$(Configuration)\WebCompiler.pdb">
9591
<Link>WebCompiler.pdb</Link>
9692
<IncludeInVSIX>true</IncludeInVSIX>
9793
</Content>
@@ -212,16 +208,10 @@
212208
<Reference Include="Microsoft.VisualStudio.Utilities, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
213209
<Private>False</Private>
214210
</Reference>
215-
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
216-
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
217-
</Reference>
218-
<Reference Include="NuGet.VisualStudio, Version=3.5.0.1996, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
219-
<HintPath>..\..\packages\NuGet.VisualStudio.3.5.0\lib\net45\NuGet.VisualStudio.dll</HintPath>
211+
<Reference Include="NuGet.VisualStudio, Version=2.8.60318.667, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=x86">
212+
<HintPath>..\..\packages\NuGet.VisualStudio.2.8.5\lib\net40\NuGet.VisualStudio.dll</HintPath>
220213
<EmbedInteropTypes>True</EmbedInteropTypes>
221214
</Reference>
222-
<Reference Include="NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e, processorArchitecture=MSIL">
223-
<HintPath>..\..\packages\NUglify.1.5.5\lib\net40\NUglify.dll</HintPath>
224-
</Reference>
225215
<Reference Include="PresentationCore" />
226216
<Reference Include="PresentationFramework" />
227217
<Reference Include="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -232,37 +222,23 @@
232222
<Reference Include="System.ComponentModel.Composition" />
233223
<Reference Include="System.Design" />
234224
<Reference Include="System.Windows.Forms" />
235-
<Reference Include="System.Xml" />
236225
<Reference Include="WindowsBase" />
237226
</ItemGroup>
238227
<ItemGroup>
239-
<!--
240-
Exclude some facade-only assemblies (i.e. assemblies without any implementation) from the VSIX using the SuppressFromVsix ItemGroup.
241-
The list is dependent on the framework being targeted. Changes to TargetFrameworkVersion would may require changes to the SuppressFromVsix ItemGroup.
242-
-->
243-
<SuppressFromVsix Include="Microsoft.Build.Framework.dll" Visible="false" />
244-
<SuppressFromVsix Include="Microsoft.Build.Utilities.Core.dll" Visible="false" />
245-
<SuppressFromVsix Include="System.Threading.Thread.dll" Visible="false" />
246228
<ProjectReference Include="..\WebCompiler\WebCompiler.csproj">
247229
<Project>{b714b5b9-27c4-443c-9517-fe5c5ef46ea2}</Project>
248230
<Name>WebCompiler</Name>
249-
<!-- Workaround for https://github.com/dotnet/sdk/issues/433 -->
250-
<Private>false</Private>
251-
<IncludeOutputGroupsInVSIX>
252-
</IncludeOutputGroupsInVSIX>
253-
<IncludeOutputGroupsInVSIXLocalOnly>
254-
</IncludeOutputGroupsInVSIXLocalOnly>
255231
</ProjectReference>
256232
</ItemGroup>
257-
<ItemGroup>
258-
<VSIXSourceItem Include="..\WebCompiler\MSBuild\*.targets" Visible="false" />
259-
<VSIXSourceItem Include="..\WebCompiler\bin\$(Configuration)\net46\WebCompiler.pdb" Visible="false" />
260-
<VSIXSourceItem Include="..\WebCompiler\bin\$(Configuration)\net46\WebCompiler.exe" Visible="false" />
261-
<Content Include="@(VSIXSourceItem)">
262-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
263-
</Content>
264-
</ItemGroup>
233+
<ItemGroup />
265234
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
266-
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />
235+
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
267236
<ProjectExtensions />
237+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
238+
Other similar extension points exist, see Microsoft.Common.targets.
239+
<Target Name="BeforeBuild">
240+
</Target>
241+
<Target Name="AfterBuild">
242+
</Target>
243+
-->
268244
</Project>

src/WebCompilerVsix/source.extension.vsixmanifest

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
<Tags>Compile, LESS, Sass, Scss, CoffeeScript, JavaScript, JSX, ES6, Stylus, Handlebars</Tags>
1313
</Metadata>
1414
<Installation>
15-
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="14.0" />
16-
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="15.0" />
15+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[14.0,17.0)" />
1716
</Installation>
1817
<Prerequisites>
19-
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
20-
<Prerequisite Id="Microsoft.VisualStudio.Component.Web" Version="[15.0,16.0)" DisplayName="Web development tools" />
18+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
19+
<Prerequisite Id="Microsoft.VisualStudio.Component.Web" Version="[15.0,)" DisplayName="Web development tools" />
2120
</Prerequisites>
2221
<Assets>
2322
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />

0 commit comments

Comments
 (0)