Skip to content

Commit 8c68911

Browse files
committed
Added Visual Studio support for ScriptAnalyzer
1 parent 39a7603 commit 8c68911

17 files changed

+235
-861
lines changed

Engine/ScriptAnalyzerEngine.csproj

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<NoStandardLibraries>false</NoStandardLibraries>
9+
<AssemblyName>Microsoft.Windows.Powershell.ScriptAnalyzer</AssemblyName>
10+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11+
<FileAlignment>512</FileAlignment>
12+
<TargetFrameworkProfile />
13+
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15+
<DebugSymbols>true</DebugSymbols>
16+
<DebugType>full</DebugType>
17+
<Optimize>false</Optimize>
18+
<OutputPath>bin\Debug\</OutputPath>
19+
<DefineConstants>DEBUG;TRACE</DefineConstants>
20+
<ErrorReport>prompt</ErrorReport>
21+
<WarningLevel>4</WarningLevel>
22+
<Prefer32Bit>false</Prefer32Bit>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>pdbonly</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\Release\</OutputPath>
28+
<DefineConstants>TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
<Prefer32Bit>false</Prefer32Bit>
32+
</PropertyGroup>
33+
<PropertyGroup>
34+
<RootNamespace>Microsoft.Windows.Powershell.ScriptAnalyzer</RootNamespace>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="Microsoft.CSharp" />
38+
<Reference Include="System" />
39+
<Reference Include="System.ComponentModel.Composition" />
40+
<Reference Include="System.Core" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Data.DataSetExtensions" />
43+
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
44+
<SpecificVersion>False</SpecificVersion>
45+
<HintPath>..\..\..\..\..\..\fbl_srv2_ci_mgmt.binaries.amd64chk\monad\System.Management.Automation.dll</HintPath>
46+
</Reference>
47+
<Reference Include="System.Xml" />
48+
<Reference Include="System.Xml.Linq" />
49+
</ItemGroup>
50+
<ItemGroup>
51+
<Compile Include="Commands\GetScriptAnalyzerRuleCommand.cs" />
52+
<Compile Include="Commands\InvokeScriptAnalyzerCommand.cs" />
53+
<Compile Include="Generic\AvoidCmdletGeneric.cs" />
54+
<Compile Include="Generic\AvoidParameterGeneric.cs" />
55+
<Compile Include="Generic\DiagnosticRecord.cs" />
56+
<Compile Include="Generic\ExternalRule.cs" />
57+
<Compile Include="Generic\ICommandRule.cs" />
58+
<Compile Include="Generic\IDSCResourceRule.cs" />
59+
<Compile Include="Generic\IExternalRule.cs" />
60+
<Compile Include="Generic\ILogger.cs" />
61+
<Compile Include="Generic\IRule.cs" />
62+
<Compile Include="Generic\IScriptRule.cs" />
63+
<Compile Include="Generic\ITokenRule.cs" />
64+
<Compile Include="Generic\LoggerInfo.cs" />
65+
<Compile Include="Generic\RuleInfo.cs" />
66+
<Compile Include="Generic\SkipNamedBlock.cs" />
67+
<Compile Include="Generic\SkipTypeDefinition.cs" />
68+
<Compile Include="Generic\SourceType.cs" />
69+
<Compile Include="Helper.cs" />
70+
<Compile Include="Loggers\WriteObjectsLogger.cs" />
71+
<Compile Include="ScriptAnalyzer.cs" />
72+
<Compile Include="SpecialVars.cs" />
73+
<Compile Include="Strings.cs">
74+
<AutoGen>True</AutoGen>
75+
<DesignTime>True</DesignTime>
76+
<DependentUpon>Strings.resx</DependentUpon>
77+
</Compile>
78+
<Compile Include="VariableAnalysis.cs" />
79+
<Compile Include="VariableAnalysisBase.cs" />
80+
</ItemGroup>
81+
<ItemGroup>
82+
<Content Include="Microsoft.Windows.Powershell.ScriptAnalyzer.dll-Help.xml" />
83+
</ItemGroup>
84+
<ItemGroup>
85+
<None Include="PSScriptAnalyzer.psd1" />
86+
<None Include="ScriptAnalyzer.format.ps1xml" />
87+
<None Include="ScriptAnalyzer.types.ps1xml" />
88+
</ItemGroup>
89+
<ItemGroup>
90+
<EmbeddedResource Include="Strings.resx">
91+
<Generator>ResXFileCodeGenerator</Generator>
92+
<LastGenOutput>Strings.cs</LastGenOutput>
93+
</EmbeddedResource>
94+
</ItemGroup>
95+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
96+
<ProjectExtensions>
97+
<VisualStudio AllowExistingFolder="true" />
98+
</ProjectExtensions>
99+
</Project>

Engine/Strings.Designer.cs

Lines changed: 0 additions & 162 deletions
This file was deleted.

Rules/ICommandRule.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

Rules/IDSCResourceRule.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

Rules/IExternalRule.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

Rules/ILogger.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)