From 4784249ac1bf304679adb26bce29159341657102 Mon Sep 17 00:00:00 2001 From: nslottow Date: Wed, 2 Apr 2014 16:13:22 -0700 Subject: [PATCH] Added projects for diagnostic analyzers that will eventually analyze Roslyn.sln. Removed "My Project" directories from VB FxCop analyzer project. (changeset 1221527) --- .../CSharpRoslynDiagnosticAnalyzers.csproj | 76 +++++++++++ Src/Diagnostics/Roslyn/CSharp/packages.config | 6 + .../Core/RoslynDiagnosticAnalyzers.csproj | 72 +++++++++++ Src/Diagnostics/Roslyn/Core/packages.config | 6 + .../Test/RoslynDiagnosticAnalyzersTest.csproj | 114 +++++++++++++++++ Src/Diagnostics/Roslyn/Test/packages.config | 10 ++ .../BasicRoslynDiagnosticAnalyzers.vbproj | 93 ++++++++++++++ .../Roslyn/VisualBasic/packages.config | 5 + .../BasicFxCopRulesDiagnosticAnalyzers.vbproj | 35 +----- .../My Project/Application.Designer.vb | 13 -- .../VisualBasic/My Project/Application.myapp | 12 -- .../VisualBasic/My Project/AssemblyInfo.vb | 21 ---- .../My Project/Resources.Designer.vb | 63 ---------- .../VisualBasic/My Project/Resources.resx | 119 ------------------ .../My Project/Settings.Designer.vb | 73 ----------- .../VisualBasic/My Project/Settings.settings | 9 -- Src/packages/repositories.config | 4 + 17 files changed, 387 insertions(+), 344 deletions(-) create mode 100644 Src/Diagnostics/Roslyn/CSharp/CSharpRoslynDiagnosticAnalyzers.csproj create mode 100644 Src/Diagnostics/Roslyn/CSharp/packages.config create mode 100644 Src/Diagnostics/Roslyn/Core/RoslynDiagnosticAnalyzers.csproj create mode 100644 Src/Diagnostics/Roslyn/Core/packages.config create mode 100644 Src/Diagnostics/Roslyn/Test/RoslynDiagnosticAnalyzersTest.csproj create mode 100644 Src/Diagnostics/Roslyn/Test/packages.config create mode 100644 Src/Diagnostics/Roslyn/VisualBasic/BasicRoslynDiagnosticAnalyzers.vbproj create mode 100644 Src/Diagnostics/Roslyn/VisualBasic/packages.config delete mode 100644 Src/Diagnostics/VisualBasic/My Project/Application.Designer.vb delete mode 100644 Src/Diagnostics/VisualBasic/My Project/Application.myapp delete mode 100644 Src/Diagnostics/VisualBasic/My Project/AssemblyInfo.vb delete mode 100644 Src/Diagnostics/VisualBasic/My Project/Resources.Designer.vb delete mode 100644 Src/Diagnostics/VisualBasic/My Project/Resources.resx delete mode 100644 Src/Diagnostics/VisualBasic/My Project/Settings.Designer.vb delete mode 100644 Src/Diagnostics/VisualBasic/My Project/Settings.settings diff --git a/Src/Diagnostics/Roslyn/CSharp/CSharpRoslynDiagnosticAnalyzers.csproj b/Src/Diagnostics/Roslyn/CSharp/CSharpRoslynDiagnosticAnalyzers.csproj new file mode 100644 index 00000000000..5cb3b690d0d --- /dev/null +++ b/Src/Diagnostics/Roslyn/CSharp/CSharpRoslynDiagnosticAnalyzers.csproj @@ -0,0 +1,76 @@ + + + + + + + + + Debug + AnyCPU + {B82F1C54-2D3E-497B-8C31-4AB16D6508FA} + Library + Properties + true + Roslyn.Diagnostics.Analyzers.CSharp + Roslyn.Diagnostics.Analyzers.CSharp + ..\..\..\ + true + ..\..\..\..\Binaries\$(Configuration)\ + + + + ..\..\..\packages\Microsoft.Bcl.Immutable.1.1.20-beta\lib\portable-net45+win8\System.Collections.Immutable.dll + + + + + {1EE8CAD3-55F9-4D91-96B2-084641DA9A6C} + CodeAnalysis + + + {B501A547-C911-4A05-AC6E-274A50DFF30E} + CSharpCodeAnalysis + + + {DCC1F13B-F51C-445B-BDAE-92135BD58364} + RoslynDiagnosticAnalyzers + + + {5F8D2414-064A-4B3A-9B42-8E2A04246BE5} + Workspaces + + + + TRACE;DEBUG + + + TRACE + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/CSharp/packages.config b/Src/Diagnostics/Roslyn/CSharp/packages.config new file mode 100644 index 00000000000..043382c6c2a --- /dev/null +++ b/Src/Diagnostics/Roslyn/CSharp/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticAnalyzers.csproj b/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticAnalyzers.csproj new file mode 100644 index 00000000000..9b043dd8e9a --- /dev/null +++ b/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticAnalyzers.csproj @@ -0,0 +1,72 @@ + + + + + + + + + Debug + AnyCPU + {DCC1F13B-F51C-445B-BDAE-92135BD58364} + Library + true + Roslyn.Diagnostics.Analyzers + Roslyn.Diagnostics.Analyzers + ..\..\..\ + true + ..\..\..\..\Binaries\$(Configuration)\ + + + + ..\..\..\packages\Microsoft.Bcl.Immutable.1.1.20-beta\lib\portable-net45+win8\System.Collections.Immutable.dll + + + + + {1EE8CAD3-55F9-4D91-96B2-084641DA9A6C} + CodeAnalysis + + + {5F8D2414-064A-4B3A-9B42-8E2A04246BE5} + Workspaces + + + + TRACE;DEBUG + + + TRACE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/Core/packages.config b/Src/Diagnostics/Roslyn/Core/packages.config new file mode 100644 index 00000000000..043382c6c2a --- /dev/null +++ b/Src/Diagnostics/Roslyn/Core/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/Test/RoslynDiagnosticAnalyzersTest.csproj b/Src/Diagnostics/Roslyn/Test/RoslynDiagnosticAnalyzersTest.csproj new file mode 100644 index 00000000000..996e3b3cb6f --- /dev/null +++ b/Src/Diagnostics/Roslyn/Test/RoslynDiagnosticAnalyzersTest.csproj @@ -0,0 +1,114 @@ + + + + + + + + + Debug + AnyCPU + {BBDC84C8-AE58-4D0F-B5A4-384CDCB9069E} + Library + Properties + Microsoft.CodeAnalysis.UnitTests + Roslyn.Diagnostics.Analyzers.UnitTests + true + true + ..\..\..\ + true + ..\..\..\..\Binaries\$(Configuration)\ + + + + ..\..\..\packages\Microsoft.Bcl.Immutable.1.1.20-beta\lib\portable-net45+win8\System.Collections.Immutable.dll + + + ..\..\..\packages\xunit.abstractions.2.0.0-alpha-build2576\lib\net35\xunit.abstractions.dll + + + ..\..\..\packages\xunit.assert.2.0.0-alpha-build2576\lib\net45\xunit2.assert.dll + + + ..\..\..\packages\xunit.core.2.0.0-alpha-build2576\lib\net45\xunit2.dll + + + + + {1EE8CAD3-55F9-4D91-96B2-084641DA9A6C} + CodeAnalysis + + + {B501A547-C911-4A05-AC6E-274A50DFF30E} + CSharpCodeAnalysis + + + {2523D0E6-DF32-4A3E-8AE0-A19BFFAE2EF6} + BasicCodeAnalysis + + + {76C6F005-C89D-4348-BB4A-391898DBEB52} + TestUtilities + + + {21B239D0-D144-430F-A394-C066D58EE267} + CSharpWorkspace + + + {57CA988D-F010-4BF2-9A2E-07D6DCD2FF2C} + BasicWorkspace + + + {5F8D2414-064A-4B3A-9B42-8E2A04246BE5} + Workspaces + + + {DCC1F13B-F51C-445B-BDAE-92135BD58364} + RoslynDiagnosticAnalyzers + + + {B82F1C54-2D3E-497B-8C31-4AB16D6508FA} + CSharpRoslynDiagnosticAnalyzers + + + {640B92E8-ED8A-44AC-85C6-50B53837DB91} + BasicRoslynDiagnosticAnalyzers + + + {7FE6B002-89D8-4298-9B1B-0B5C247DD1FD} + CompilerTestResources + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/Test/packages.config b/Src/Diagnostics/Roslyn/Test/packages.config new file mode 100644 index 00000000000..ac44ccc3d73 --- /dev/null +++ b/Src/Diagnostics/Roslyn/Test/packages.config @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/VisualBasic/BasicRoslynDiagnosticAnalyzers.vbproj b/Src/Diagnostics/Roslyn/VisualBasic/BasicRoslynDiagnosticAnalyzers.vbproj new file mode 100644 index 00000000000..df39d1600d4 --- /dev/null +++ b/Src/Diagnostics/Roslyn/VisualBasic/BasicRoslynDiagnosticAnalyzers.vbproj @@ -0,0 +1,93 @@ + + + + + + + + Debug + AnyCPU + {640B92E8-ED8A-44AC-85C6-50B53837DB91} + Library + Roslyn.Diagnostics.Analyzers.VisualBasic + Roslyn.Diagnostics.Analyzers.VisualBasic.xml + ..\..\..\ + true + ..\..\..\..\Binaries\$(Configuration)\ + + + + ..\..\..\packages\Microsoft.Bcl.Immutable.1.1.20-beta\lib\portable-net45+win8\System.Collections.Immutable.dll + + + + + {1EE8CAD3-55F9-4D91-96B2-084641DA9A6C} + CodeAnalysis + + + {2523D0E6-DF32-4A3E-8AE0-A19BFFAE2EF6} + BasicCodeAnalysis + + + {DCC1F13B-F51C-445B-BDAE-92135BD58364} + RoslynDiagnosticAnalyzers + + + {5F8D2414-064A-4B3A-9B42-8E2A04246BE5} + Workspaces + + + + Roslyn.Diagnostics.Analyzers.VisualBasic.xml + + + Roslyn.Diagnostics.Analyzers.VisualBasic.xml + + + On + + + Binary + + + On + + + On + + + Roslyn.Diagnostics.Analyzers.VisualBasic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/Src/Diagnostics/Roslyn/VisualBasic/packages.config b/Src/Diagnostics/Roslyn/VisualBasic/packages.config new file mode 100644 index 00000000000..ca99ea5490e --- /dev/null +++ b/Src/Diagnostics/Roslyn/VisualBasic/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Src/Diagnostics/VisualBasic/BasicFxCopRulesDiagnosticAnalyzers.vbproj b/Src/Diagnostics/VisualBasic/BasicFxCopRulesDiagnosticAnalyzers.vbproj index 603e3d9abfd..77fc65219cb 100644 --- a/Src/Diagnostics/VisualBasic/BasicFxCopRulesDiagnosticAnalyzers.vbproj +++ b/Src/Diagnostics/VisualBasic/BasicFxCopRulesDiagnosticAnalyzers.vbproj @@ -92,21 +92,6 @@ - - True - Application.myapp - - - - True - True - Resources.resx - - - True - Settings.settings - True - @@ -119,25 +104,7 @@ - - - VbMyResourcesResXFileCodeGenerator - Resources.Designer.vb - My.Resources - Designer - - - - - MyApplicationCodeGenerator - Application.Designer.vb - - - SettingsSingleFileGenerator - My - Settings.Designer.vb - - + diff --git a/Src/Diagnostics/VisualBasic/My Project/Application.Designer.vb b/Src/Diagnostics/VisualBasic/My Project/Application.Designer.vb deleted file mode 100644 index ebd9a9e027b..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/Application.Designer.vb +++ /dev/null @@ -1,13 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:4.0.30319.18403 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - diff --git a/Src/Diagnostics/VisualBasic/My Project/Application.myapp b/Src/Diagnostics/VisualBasic/My Project/Application.myapp deleted file mode 100644 index 10d3b3fb25a..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/Application.myapp +++ /dev/null @@ -1,12 +0,0 @@ - - - - - false - false - 0 - true - 0 - 1 - true - \ No newline at end of file diff --git a/Src/Diagnostics/VisualBasic/My Project/AssemblyInfo.vb b/Src/Diagnostics/VisualBasic/My Project/AssemblyInfo.vb deleted file mode 100644 index e2637c4f1f8..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/AssemblyInfo.vb +++ /dev/null @@ -1,21 +0,0 @@ -' Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -Imports System -Imports System.Reflection -Imports System.Runtime.InteropServices - -' General Information about an assembly is controlled through the following -' set of attributes. Change these attribute values to modify the information -' associated with an assembly. - -' Review the values of the assembly attributes - - - - - - - - -'The following GUID is for the ID of the typelib if this project is exposed to COM - \ No newline at end of file diff --git a/Src/Diagnostics/VisualBasic/My Project/Resources.Designer.vb b/Src/Diagnostics/VisualBasic/My Project/Resources.Designer.vb deleted file mode 100644 index 2b0ba66454c..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/Resources.Designer.vb +++ /dev/null @@ -1,63 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:4.0.30319.18403 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - -Imports System - -Namespace Microsoft.CodeAnalysis.VisualBasic.FxCopAnalyzers - - 'This class was auto-generated by the StronglyTypedResourceBuilder - 'class via a tool like ResGen or Visual Studio. - 'To add or remove a member, edit your .ResX file then rerun ResGen - 'with the /str option, or rebuild your VS project. - ''' - ''' A strongly-typed resource class, for looking up localized strings, etc. - ''' - - Friend Module Resources - - Private resourceMan As Global.System.Resources.ResourceManager - - Private resourceCulture As Global.System.Globalization.CultureInfo - - ''' - ''' Returns the cached ResourceManager instance used by this class. - ''' - - Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager - Get - If Object.ReferenceEquals(resourceMan, Nothing) Then - Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Resources", GetType(Resources).Assembly) - resourceMan = temp - End If - Return resourceMan - End Get - End Property - - ''' - ''' Overrides the current thread's CurrentUICulture property for all - ''' resource lookups using this strongly typed resource class. - ''' - - Friend Property Culture() As Global.System.Globalization.CultureInfo - Get - Return resourceCulture - End Get - Set - resourceCulture = Value - End Set - End Property - End Module -End Namespace diff --git a/Src/Diagnostics/VisualBasic/My Project/Resources.resx b/Src/Diagnostics/VisualBasic/My Project/Resources.resx deleted file mode 100644 index 216e8bb4b60..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/Resources.resx +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Src/Diagnostics/VisualBasic/My Project/Settings.Designer.vb b/Src/Diagnostics/VisualBasic/My Project/Settings.Designer.vb deleted file mode 100644 index 79b1533e733..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/Settings.Designer.vb +++ /dev/null @@ -1,73 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:4.0.30319.18403 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - - -Namespace My - - _ - Partial Friend NotInheritable Class MySettings - Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) - -#Region "My.Settings Auto-Save Functionality" -#If _MyType = "WindowsForms" Then - Private Shared addedHandler As Boolean - - Private Shared addedHandlerLockObject As New Object - - _ - Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) - If My.Application.SaveMySettingsOnExit Then - My.Settings.Save() - End If - End Sub -#End If -#End Region - - Public Shared ReadOnly Property [Default]() As MySettings - Get - -#If _MyType = "WindowsForms" Then - If Not addedHandler Then - SyncLock addedHandlerLockObject - If Not addedHandler Then - AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings - addedHandler = True - End If - End SyncLock - End If -#End If - Return defaultInstance - End Get - End Property - End Class -End Namespace - -Namespace My - - _ - Friend Module MySettingsProperty - - _ - Friend ReadOnly Property Settings() As Global.My.MySettings - Get - Return Global.My.MySettings.Default - End Get - End Property - End Module -End Namespace diff --git a/Src/Diagnostics/VisualBasic/My Project/Settings.settings b/Src/Diagnostics/VisualBasic/My Project/Settings.settings deleted file mode 100644 index d6adf42cf7f..00000000000 --- a/Src/Diagnostics/VisualBasic/My Project/Settings.settings +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/Src/packages/repositories.config b/Src/packages/repositories.config index 100c832f08e..b6546489692 100644 --- a/Src/packages/repositories.config +++ b/Src/packages/repositories.config @@ -29,6 +29,10 @@ + + + + -- GitLab