Skip to content

Commit da92b89

Browse files
committed
Remove documented AdditionalFiles workaround
This step is now handled automatically by a custom MSBuild target.
1 parent 019ade5 commit da92b89

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

documentation/Configuration.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,6 @@ Code analysis rule sets are the standard way to configure most diagnostic analyz
1818

1919
The easiest way to add a **stylecop.json** configuration file to a new project is using a code fix provided by the project. To invoke the code fix, open any file where SA1633 is reported¹ and press Ctrl+. to bring up the Quick Fix menu. From the menu, select **Add StyleCop settings file to the project**.
2020

21-
> :warning: At this time, the code fix is not able to fully configure the newly-created **stylecop.json** file for use. This is tracked in bug report [dotnet/roslyn#4655](https://github.com/dotnet/roslyn/issues/4655). In the mean time, users must manually perform the following additional steps after creating the **stylecop.json** file.
22-
>
23-
> 1. Right click the project in **Solution Explorer** and select **Unload Project**. If you are asked to save changes, click **Yes**.
24-
> 2. Right click the unloaded project in **Solution Explorer** and select **Edit *ProjectName*.csproj**.
25-
> 3. Locate the following item in the project file.
26-
27-
> ```csharp
28-
> <None Include="stylecop.json" />
29-
> ```
30-
31-
> 4. Change the definition to the following.
32-
33-
> ```csharp
34-
> <AdditionalFiles Include="stylecop.json" />
35-
> ```
36-
37-
> 5. Save and close the project file.
38-
> 6. Right click the unloaded project in **Solution Explorer** and select **Reload Project**.
39-
4021
### JSON Schema for IntelliSense
4122

4223
A JSON schema is available for **stylecop.json**. By including a reference in **stylecop.json** to this schema, Visual Studio will offer IntelliSense functionality (code completion, quick info, etc.) while editing this file. The schema may be configured by adding the following top-level property in **stylecop.json**:

0 commit comments

Comments
 (0)