Skip to content

Instantly share code, notes, and snippets.

@AraHaan
Created July 30, 2021 23:25
Show Gist options
  • Save AraHaan/670281c07f4294ebe070a4c6a546a54e to your computer and use it in GitHub Desktop.
Save AraHaan/670281c07f4294ebe070a4c6a546a54e to your computer and use it in GitHub Desktop.
StyleCop bug reproduction.
// <copyright file="GlobalUsings.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
global using System;
// <copyright file="Program.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
Console.WriteLine("Hello World!");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="*-*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StyleCopTest", "StyleCopTest.csproj", "{582BA985-9B85-47A0-B930-A67DD614A365}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{582BA985-9B85-47A0-B930-A67DD614A365}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{582BA985-9B85-47A0-B930-A67DD614A365}.Debug|Any CPU.Build.0 = Debug|Any CPU
{582BA985-9B85-47A0-B930-A67DD614A365}.Release|Any CPU.ActiveCfg = Release|Any CPU
{582BA985-9B85-47A0-B930-A67DD614A365}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment