Skip to content

Commit 74d45bd

Browse files
author
Kapil Borle
committed
Add CoreCLR related configuration
1 parent 2e696b7 commit 74d45bd

File tree

3 files changed

+68
-31
lines changed

3 files changed

+68
-31
lines changed

Engine/ScriptAnalyzerEngine.csproj

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,35 @@
5151
<ErrorReport>prompt</ErrorReport>
5252
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5353
</PropertyGroup>
54-
<ItemGroup>
55-
<Reference Include="Microsoft.CSharp" />
56-
<Reference Include="System" />
57-
<Reference Include="System.ComponentModel.Composition" />
58-
<Reference Include="System.Core" />
59-
<Reference Include="System.Data" />
60-
<Reference Include="System.Data.DataSetExtensions" />
61-
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62-
<SpecificVersion>False</SpecificVersion>
63-
<HintPath>..\..\..\..\..\..\fbl_srv2_ci_mgmt.binaries.amd64chk\monad\System.Management.Automation.dll</HintPath>
64-
</Reference>
65-
<Reference Include="System.Xml" />
66-
<Reference Include="System.Xml.Linq" />
67-
</ItemGroup>
54+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CoreCLR Debug|AnyCPU'">
55+
<TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier>
56+
<TargetFrameworkVersion>v0.1</TargetFrameworkVersion>
57+
<DebugSymbols>true</DebugSymbols>
58+
<OutputPath>bin\CoreCLR Debug\</OutputPath>
59+
<DefineConstants>TRACE;DEBUG;CORECLR</DefineConstants>
60+
<DebugType>full</DebugType>
61+
<PlatformTarget>AnyCPU</PlatformTarget>
62+
<ErrorReport>prompt</ErrorReport>
63+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
64+
</PropertyGroup>
65+
<Choose>
66+
<When Condition="'$(Configuration)|$(Platform)' != 'CoreCLR Debug|AnyCPU'">
67+
<ItemGroup>
68+
<Reference Include="Microsoft.CSharp" />
69+
<Reference Include="System" />
70+
<Reference Include="System.ComponentModel.Composition" />
71+
<Reference Include="System.Core" />
72+
<Reference Include="System.Data" />
73+
<Reference Include="System.Data.DataSetExtensions" />
74+
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
75+
<SpecificVersion>False</SpecificVersion>
76+
<HintPath>..\..\..\..\..\..\fbl_srv2_ci_mgmt.binaries.amd64chk\monad\System.Management.Automation.dll</HintPath>
77+
</Reference>
78+
<Reference Include="System.Xml" />
79+
<Reference Include="System.Xml.Linq" />
80+
</ItemGroup>
81+
</When>
82+
</Choose>
6883
<ItemGroup>
6984
<Compile Include="Commands\GetScriptAnalyzerRuleCommand.cs" />
7085
<Compile Include="Commands\InvokeScriptAnalyzerCommand.cs" />
@@ -119,7 +134,8 @@
119134
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
120135
</EmbeddedResource>
121136
</ItemGroup>
122-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
137+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" Condition="'$(Configuration)|$(Platform)' != 'CoreCLR Debug|AnyCPU'"/>
138+
<Import Project="$(SolutionDir)\Microsoft.CoreSys.CSHARP.Targets" Condition="'$(Configuration)|$(Platform)' == 'CoreCLR Debug|AnyCPU'"/>
123139
<ProjectExtensions>
124140
<VisualStudio AllowExistingFolder="true" />
125141
</ProjectExtensions>

PSScriptAnalyzer.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Global
1313
PSV3 Debug|Any CPU = PSV3 Debug|Any CPU
1414
PSV3 Release|Any CPU = PSV3 Release|Any CPU
1515
Release|Any CPU = Release|Any CPU
16+
CoreCLR Debug|Any CPU = CoreCLR Debug|Any CPU
1617
EndGlobalSection
1718
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1819
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -23,6 +24,8 @@ Global
2324
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.PSV3 Release|Any CPU.Build.0 = PSV3 Release|Any CPU
2425
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Release|Any CPU.ActiveCfg = Release|Any CPU
2526
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Release|Any CPU.Build.0 = Release|Any CPU
27+
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.CoreCLR Debug|Any CPU.ActiveCfg = CoreCLR Debug|Any CPU
28+
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.CoreCLR Debug|Any CPU.Build.0 = CoreCLR Debug|Any CPU
2629
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2730
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
2831
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.PSV3 Debug|Any CPU.ActiveCfg = PSV3 Debug|Any CPU
@@ -31,6 +34,8 @@ Global
3134
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.PSV3 Release|Any CPU.Build.0 = PSV3 Release|Any CPU
3235
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
3336
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.CoreCLR Debug|Any CPU.ActiveCfg = CoreCLR Debug|Any CPU
38+
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.CoreCLR Debug|Any CPU.Build.0 = CoreCLR Debug|Any CPU
3439
EndGlobalSection
3540
GlobalSection(SolutionProperties) = preSolution
3641
HideSolutionNode = FALSE

Rules/ScriptAnalyzerBuiltinRules.csproj

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,36 @@
5151
<ErrorReport>prompt</ErrorReport>
5252
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5353
</PropertyGroup>
54-
<ItemGroup>
55-
<Reference Include="Microsoft.CSharp" />
56-
<Reference Include="System" />
57-
<Reference Include="System.ComponentModel.Composition" />
58-
<Reference Include="System.Core" />
59-
<Reference Include="System.Data" />
60-
<Reference Include="System.Data.DataSetExtensions" />
61-
<Reference Include="System.Data.Entity.Design" />
62-
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
63-
<SpecificVersion>False</SpecificVersion>
64-
<HintPath>..\..\..\..\..\..\fbl_srv2_ci_mgmt.binaries.amd64chk\monad\System.Management.Automation.dll</HintPath>
65-
</Reference>
66-
<Reference Include="System.Xml" />
67-
<Reference Include="System.Xml.Linq" />
68-
</ItemGroup>
54+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CoreCLR Debug|AnyCPU'">
55+
<TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier>
56+
<TargetFrameworkVersion>v0.1</TargetFrameworkVersion>
57+
<DebugSymbols>true</DebugSymbols>
58+
<OutputPath>bin\CoreCLR Debug\</OutputPath>
59+
<DefineConstants>TRACE;DEBUG;CORECLR</DefineConstants>
60+
<DebugType>full</DebugType>
61+
<PlatformTarget>AnyCPU</PlatformTarget>
62+
<ErrorReport>prompt</ErrorReport>
63+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
64+
</PropertyGroup>
65+
<Choose>
66+
<When Condition="'$(Configuration)|$(Platform)' != 'CoreCLR Debug|AnyCPU'">
67+
<ItemGroup>
68+
<Reference Include="Microsoft.CSharp" />
69+
<Reference Include="System" />
70+
<Reference Include="System.ComponentModel.Composition" />
71+
<Reference Include="System.Core" />
72+
<Reference Include="System.Data" />
73+
<Reference Include="System.Data.DataSetExtensions" />
74+
<Reference Include="System.Data.Entity.Design" />
75+
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
76+
<SpecificVersion>False</SpecificVersion>
77+
<HintPath>..\..\..\..\..\..\fbl_srv2_ci_mgmt.binaries.amd64chk\monad\System.Management.Automation.dll</HintPath>
78+
</Reference>
79+
<Reference Include="System.Xml" />
80+
<Reference Include="System.Xml.Linq" />
81+
</ItemGroup>
82+
</When>
83+
</Choose>
6984
<ItemGroup>
7085
<Compile Include="AvoidAlias.cs" />
7186
<Compile Include="AvoidDefaultTrueValueSwitchParameter.cs" />
@@ -127,7 +142,8 @@
127142
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
128143
</EmbeddedResource>
129144
</ItemGroup>
130-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
145+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" Condition="'$(Configuration)|$(Platform)' != 'CoreCLR Debug|AnyCPU'"/>
146+
<Import Project="$(SolutionDir)\Microsoft.CoreSys.CSHARP.Targets" Condition="'$(Configuration)|$(Platform)' == 'CoreCLR Debug|AnyCPU'"/>
131147
<ProjectExtensions>
132148
<VisualStudio AllowExistingFolder="true" />
133149
</ProjectExtensions>

0 commit comments

Comments
 (0)