Skip to content

Commit e72ef23

Browse files
committed
Update the C# 7 test project to the new project system
1 parent 4cda401 commit e72ef23

7 files changed

Lines changed: 97 additions & 564 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
4+
<PropertyGroup>
5+
<Description>An implementation of StyleCop rules using the .NET Compiler Platform</Description>
6+
<Product>StyleCop.Analyzers</Product>
7+
<Company>Tunnel Vision Laboratories, LLC</Company>
8+
<Copyright>Copyright © Sam Harwell 2015</Copyright>
9+
</PropertyGroup>
10+
11+
<PropertyGroup>
12+
<EnableDefaultNoneItems>False</EnableDefaultNoneItems>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<LangVersion>6</LangVersion>
17+
<Features>strict</Features>
18+
</PropertyGroup>
19+
20+
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
21+
<!-- Ideally this is always enabled, but that tends to hurt developer productivity -->
22+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
23+
</PropertyGroup>
24+
25+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
26+
<DebugType>full</DebugType>
27+
<DebugSymbols>true</DebugSymbols>
28+
</PropertyGroup>
29+
30+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
31+
<DebugType>pdbonly</DebugType>
32+
<DebugSymbols>true</DebugSymbols>
33+
</PropertyGroup>
34+
35+
<PropertyGroup>
36+
<!--
37+
Make sure any documentation comments which are included in code get checked for syntax during the build, but do
38+
not report warnings for missing comments.
39+
40+
CS1573: Parameter 'parameter' has no matching param tag in the XML comment for 'parameter' (but other parameters do)
41+
CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
42+
-->
43+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
44+
<NoWarn>$(NoWarn),1573,1591</NoWarn>
45+
</PropertyGroup>
46+
47+
<ItemGroup>
48+
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
49+
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004" PrivateAssets="all" />
50+
</ItemGroup>
51+
52+
<ItemGroup>
53+
<None Include="$(MSBuildThisFileDirectory)StyleCop.Analyzers.Internal.ruleset">
54+
<Link>StyleCop.Analyzers.Internal.ruleset</Link>
55+
</None>
56+
<None Include="$(MSBuildThisFileDirectory)StyleCop.Analyzers.ruleset">
57+
<Link>StyleCop.Analyzers.ruleset</Link>
58+
</None>
59+
</ItemGroup>
60+
61+
<ItemGroup>
62+
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json">
63+
<Link>stylecop.json</Link>
64+
</AdditionalFiles>
65+
</ItemGroup>
66+
67+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
4+
<ItemGroup>
5+
<None Include="$(MSBuildProjectFileDirectory)$(AssemblyOriginatorKeyFile)" Link="%(Filename)%(Extension)" />
6+
</ItemGroup>
7+
8+
</Project>

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,14 @@
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

44
using System;
5-
using System.Reflection;
65
using System.Runtime.InteropServices;
76
using Xunit;
87

9-
// General Information about an assembly is controlled through the following
10-
// set of attributes. Change these attribute values to modify the information
11-
// associated with an assembly.
12-
[assembly: AssemblyTitle("StyleCop.Analyzers.Test.CSharp7")]
13-
[assembly: AssemblyDescription("")]
14-
[assembly: AssemblyConfiguration("")]
15-
[assembly: AssemblyCompany("Tunnel Vision Laboratories, LLC")]
16-
[assembly: AssemblyProduct("StyleCop.Analyzers.Test.CSharp7")]
17-
[assembly: AssemblyCopyright("Copyright © Sam Harwell 2014")]
18-
[assembly: AssemblyTrademark("")]
19-
[assembly: AssemblyCulture("")]
208
[assembly: CLSCompliant(false)]
219

2210
// Setting ComVisible to false makes the types in this assembly not visible
2311
// to COM components. If you need to access a type in this assembly from
2412
// COM, set the ComVisible attribute to true on that type.
2513
[assembly: ComVisible(false)]
2614

27-
// Version information for an assembly consists of the following four values:
28-
//
29-
// Major Version
30-
// Minor Version
31-
// Build Number
32-
// Revision
33-
//
34-
// You can specify all the values or you can default the Build and Revision Numbers
35-
// by using the '*' as shown below:
36-
// [assembly: AssemblyVersion("1.0.*")]
37-
[assembly: AssemblyVersion("1.0.0.0")]
38-
[assembly: AssemblyFileVersion("1.0.0.0")]
39-
[assembly: AssemblyInformationalVersion("1.0.0.0-dev")]
40-
4115
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly, DisableTestParallelization = true)]

0 commit comments

Comments
 (0)