Skip to content

Commit 9fc213b

Browse files
committed
Switch StyleCop.Analyzers.Status.Generator to the new project system
1 parent 6a257f1 commit 9fc213b

4 files changed

Lines changed: 27 additions & 84 deletions

File tree

StyleCop.Analyzers.Status.Generator/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"profiles": {
3+
"StyleCop.Analyzers.Status.Generator": {
4+
"commandName": "Project",
5+
"commandLineArgs": "..\\..\\..\\..\\..\\StyleCopAnalyzers\\StyleCopAnalyzers.sln"
6+
}
7+
}
8+
}
Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,33 @@
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="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
44
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{9BF22A9E-9708-4AE4-A5C7-7A00AE4C8885}</ProjectGuid>
5+
<TargetFramework>net452</TargetFramework>
86
<OutputType>Exe</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>StyleCop.Analyzers.Status.Generator</RootNamespace>
11-
<AssemblyName>StyleCop.Analyzers.Status.Generator</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<TargetFrameworkProfile />
7+
8+
<!-- Automatically generate the necessary assembly binding redirects -->
9+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1510
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>AnyCPU</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
11+
12+
<PropertyGroup>
2513
<CodeAnalysisRuleSet>Rules.ruleset</CodeAnalysisRuleSet>
26-
<DocumentationFile>bin\Debug\StyleCop.Analyzers.Status.Generator.XML</DocumentationFile>
27-
</PropertyGroup>
28-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29-
<PlatformTarget>AnyCPU</PlatformTarget>
30-
<DebugType>pdbonly</DebugType>
31-
<Optimize>true</Optimize>
32-
<OutputPath>bin\Release\</OutputPath>
33-
<DefineConstants>TRACE</DefineConstants>
34-
<ErrorReport>prompt</ErrorReport>
35-
<WarningLevel>4</WarningLevel>
14+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3615
</PropertyGroup>
16+
3717
<ItemGroup>
3818
<Reference Include="System" />
3919
<Reference Include="System.Windows.Forms" />
4020
</ItemGroup>
21+
4122
<ItemGroup>
4223
<PackageReference Include="LibGit2Sharp" Version="0.21.0.176" />
4324
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="1.0.0" />
4425
<PackageReference Include="Newtonsoft.Json" Version="7.0.1-beta3" />
4526
<PackageReference Include="StyleCop.Analyzers" Version="1.0.0-beta015" PrivateAssets="all" />
4627
</ItemGroup>
28+
4729
<ItemGroup>
48-
<Compile Include="CodeFixStatus.cs" />
49-
<Compile Include="CompilationFailedException.cs" />
50-
<Compile Include="Program.cs" />
51-
<Compile Include="Properties\AssemblyInfo.cs" />
52-
<Compile Include="ResourceReader.cs" />
53-
<Compile Include="SolutionReader.cs" />
54-
<Compile Include="StyleCopDiagnostic.cs" />
55-
</ItemGroup>
56-
<ItemGroup>
57-
<None Include="App.config" />
58-
<None Include="Rules.ruleset" />
5930
<None Include="..\stylecop.json" />
6031
</ItemGroup>
61-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
32+
6233
</Project>

StyleCop.Analyzers.Status.sln

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.22823.1
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27705.2000
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StyleCop.Analyzers.Status.Generator", "StyleCop.Analyzers.Status.Generator\StyleCop.Analyzers.Status.Generator.csproj", "{9BF22A9E-9708-4AE4-A5C7-7A00AE4C8885}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StyleCop.Analyzers.Status.Generator", "StyleCop.Analyzers.Status.Generator\StyleCop.Analyzers.Status.Generator.csproj", "{9BF22A9E-9708-4AE4-A5C7-7A00AE4C8885}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StyleCop.Analyzers.Status.Web", "StyleCop.Analyzers.Status.Web\StyleCop.Analyzers.Status.Web.csproj", "{361BA18C-5FB9-4F6D-9EF1-3CDA67D6A44C}"
99
EndProject
@@ -25,4 +25,7 @@ Global
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {D84D7BCA-FBF6-45BC-815E-88FF2D2F1552}
30+
EndGlobalSection
2831
EndGlobal

0 commit comments

Comments
 (0)