Skip to content

Commit 3ef401e

Browse files
committed
Update StyleCop.Analyzers.Vsix to the new project system
1 parent 36ee5a7 commit 3ef401e

4 files changed

Lines changed: 28 additions & 80 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"profiles": {
3+
"Visual Studio Extension": {
4+
"executablePath": "$(DevEnvDir)devenv.exe",
5+
"commandLineArgs": "/rootsuffix $(VSSDKTargetPlatformRegRootSuffix) /log"
6+
}
7+
}
8+
}
Lines changed: 19 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.props')" />
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
44
<PropertyGroup>
5-
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
6-
</PropertyGroup>
7-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8-
<PropertyGroup>
9-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
10-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
11-
<SchemaVersion>2.0</SchemaVersion>
12-
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
13-
<ProjectGuid>{06BEBB30-AC91-4470-8930-22F7722A25E4}</ProjectGuid>
14-
<OutputType>Library</OutputType>
15-
<AppDesignerFolder>Properties</AppDesignerFolder>
5+
<TargetFramework>net452</TargetFramework>
166
<RootNamespace>StyleCop.Analyzers</RootNamespace>
177
<AssemblyName>StyleCop.Analyzers</AssemblyName>
18-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
8+
</PropertyGroup>
9+
10+
<PropertyGroup>
1911
<GeneratePkgDefFile>false</GeneratePkgDefFile>
2012
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
2113
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
@@ -24,77 +16,29 @@
2416
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
2517
<VSSDKTargetPlatformRegRootSuffix>Roslyn</VSSDKTargetPlatformRegRootSuffix>
2618
</PropertyGroup>
19+
2720
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
2821
<!-- This property disables extension deployment for command line builds; required for AppVeyor and the build script -->
2922
<DeployExtension>False</DeployExtension>
3023
</PropertyGroup>
31-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
32-
<DebugSymbols>true</DebugSymbols>
33-
<DebugType>full</DebugType>
34-
<Optimize>false</Optimize>
35-
<OutputPath>bin\Debug\</OutputPath>
36-
<DefineConstants>DEBUG;TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
</PropertyGroup>
40-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
41-
<DebugType>pdbonly</DebugType>
42-
<Optimize>true</Optimize>
43-
<OutputPath>bin\Release\</OutputPath>
44-
<DefineConstants>TRACE</DefineConstants>
45-
<ErrorReport>prompt</ErrorReport>
46-
<WarningLevel>4</WarningLevel>
47-
</PropertyGroup>
48-
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
49-
<!-- Ideally this is always enabled, but that tends to hurt developer productivity -->
50-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
51-
</PropertyGroup>
24+
5225
<PropertyGroup>
53-
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
5426
<CodeAnalysisRuleSet>..\StyleCop.Analyzers.Internal.ruleset</CodeAnalysisRuleSet>
5527
</PropertyGroup>
56-
<PropertyGroup>
57-
<StartAction>Program</StartAction>
58-
<StartProgram>$(DevEnvDir)devenv.exe</StartProgram>
59-
<StartArguments>/rootsuffix Roslyn</StartArguments>
60-
</PropertyGroup>
28+
29+
<ItemGroup>
30+
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="15.1.192" PrivateAssets="all" />
31+
</ItemGroup>
32+
6133
<ItemGroup>
62-
<None Include="..\StyleCop.Analyzers.Internal.ruleset">
63-
<Link>StyleCop.Analyzers.Internal.ruleset</Link>
64-
</None>
65-
<None Include="..\StyleCop.Analyzers.ruleset">
66-
<Link>StyleCop.Analyzers.ruleset</Link>
67-
</None>
68-
<None Include="packages.config" />
69-
<None Include="source.extension.vsixmanifest">
70-
<SubType>Designer</SubType>
71-
</None>
34+
<ProjectReference Include="..\StyleCop.Analyzers.CodeFixes\StyleCop.Analyzers.CodeFixes.csproj" />
35+
<ProjectReference Include="..\StyleCop.Analyzers\StyleCop.Analyzers.csproj" />
7236
</ItemGroup>
37+
7338
<ItemGroup>
74-
<ProjectReference Include="..\StyleCop.Analyzers.CodeFixes\StyleCop.Analyzers.CodeFixes.csproj">
75-
<Project>{f91f7815-4e63-4698-b053-e57b2d707194}</Project>
76-
<Name>StyleCop.Analyzers.CodeFixes</Name>
77-
</ProjectReference>
78-
<ProjectReference Include="..\StyleCop.Analyzers\StyleCop.Analyzers.csproj">
79-
<Project>{3B052737-06CE-4182-AE0F-08EB82DFA73E}</Project>
80-
<Name>StyleCop.Analyzers</Name>
81-
</ProjectReference>
39+
<None Include="source.extension.vsixmanifest" />
8240
</ItemGroup>
83-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
41+
8442
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />
85-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
86-
<PropertyGroup>
87-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
88-
</PropertyGroup>
89-
<Error Condition="!Exists('..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.props'))" />
90-
<Error Condition="!Exists('..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.targets'))" />
91-
</Target>
92-
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools.15.1.192\build\Microsoft.VSSDK.BuildTools.targets')" />
93-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
94-
Other similar extension points exist, see Microsoft.Common.targets.
95-
<Target Name="BeforeBuild">
96-
</Target>
97-
<Target Name="AfterBuild">
98-
</Target>
99-
-->
43+
10044
</Project>

StyleCop.Analyzers/StyleCop.Analyzers.Vsix/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.

StyleCopAnalyzers.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{E359E4
1212
EndProject
1313
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StyleCop.Analyzers.Test", "StyleCop.Analyzers\StyleCop.Analyzers.Test\StyleCop.Analyzers.Test.csproj", "{3EB54B68-A7AA-45E8-A97B-A0746712140B}"
1414
EndProject
15-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StyleCop.Analyzers.Vsix", "StyleCop.Analyzers\StyleCop.Analyzers.Vsix\StyleCop.Analyzers.Vsix.csproj", "{06BEBB30-AC91-4470-8930-22F7722A25E4}"
15+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StyleCop.Analyzers.Vsix", "StyleCop.Analyzers\StyleCop.Analyzers.Vsix\StyleCop.Analyzers.Vsix.csproj", "{06BEBB30-AC91-4470-8930-22F7722A25E4}"
1616
EndProject
1717
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5F9532E9-B126-402A-B338-54431A4882B2}"
1818
ProjectSection(SolutionItems) = preProject

0 commit comments

Comments
 (0)