Skip to content

Commit 3735e37

Browse files
author
Kory Gill
committed
Fix post-build in both csproj files.
1 parent efdfba9 commit 3735e37

File tree

2 files changed

+118
-115
lines changed

2 files changed

+118
-115
lines changed

Engine/ScriptAnalyzerEngine.csproj

Lines changed: 114 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,115 @@
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\SuppressedRecord.cs" />
56-
<Compile Include="Generic\DiagnosticRecord.cs" />
57-
<Compile Include="Generic\ExternalRule.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\RuleSuppression.cs" />
67-
<Compile Include="Generic\RuleSeverity.cs" />
68-
<Compile Include="Generic\SkipNamedBlock.cs" />
69-
<Compile Include="Generic\SkipTypeDefinition.cs" />
70-
<Compile Include="Generic\SourceType.cs" />
71-
<Compile Include="Helper.cs" />
72-
<Compile Include="IOutputWriter.cs" />
73-
<Compile Include="Loggers\WriteObjectsLogger.cs" />
74-
<Compile Include="SafeDirectoryCatalog.cs" />
75-
<Compile Include="ScriptAnalyzer.cs" />
76-
<Compile Include="SpecialVars.cs" />
77-
<Compile Include="Strings.Designer.cs">
78-
<AutoGen>True</AutoGen>
79-
<DesignTime>True</DesignTime>
80-
<DependentUpon>Strings.resx</DependentUpon>
81-
</Compile>
82-
<Compile Include="VariableAnalysis.cs" />
83-
<Compile Include="VariableAnalysisBase.cs" />
84-
</ItemGroup>
85-
<ItemGroup>
86-
<None Include="PSScriptAnalyzer.psd1" />
87-
<None Include="ScriptAnalyzer.format.ps1xml" />
88-
<None Include="ScriptAnalyzer.types.ps1xml" />
89-
</ItemGroup>
90-
<ItemGroup>
91-
<EmbeddedResource Include="Strings.resx">
92-
<Generator>ResXFileCodeGenerator</Generator>
93-
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
94-
</EmbeddedResource>
95-
</ItemGroup>
96-
<ItemGroup>
97-
<Content Include="about_PSScriptAnalyzer.help.txt" />
98-
</ItemGroup>
99-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
100-
<ProjectExtensions>
101-
<VisualStudio AllowExistingFolder="true" />
102-
</ProjectExtensions>
103-
<PropertyGroup>
104-
<PostBuildEvent>mkdir "$(SolutionDir)$(SolutionName)"
105-
copy /y "$(ProjectDir)\*.ps1xml" "$(SolutionDir)$(SolutionName)"
106-
copy /y "$(ProjectDir)\*.psd1" "$(SolutionDir)$(SolutionName)"
107-
mkdir "$(SolutionDir)$(SolutionName)\Configurations"
108-
copy /y "$(ProjectDir)\Configurations\*.psd1" "$(SolutionDir)$(SolutionName)\Configurations"
109-
copy /y "$(TargetPath)" "$(SolutionDir)$(SolutionName)"
110-
mkdir "$(SolutionDir)$(SolutionName)\en-US"
111-
copy /y "$(ProjectDir)\about_*.help.txt" "$(SolutionDir)$(SolutionName)\en-US"
112-
copy /y "$(ProjectDir)\*Help.xml" "$(SolutionDir)$(SolutionName)\en-US"</PostBuildEvent>
113-
</PropertyGroup>
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\SuppressedRecord.cs" />
56+
<Compile Include="Generic\DiagnosticRecord.cs" />
57+
<Compile Include="Generic\ExternalRule.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\RuleSuppression.cs" />
67+
<Compile Include="Generic\RuleSeverity.cs" />
68+
<Compile Include="Generic\SkipNamedBlock.cs" />
69+
<Compile Include="Generic\SkipTypeDefinition.cs" />
70+
<Compile Include="Generic\SourceType.cs" />
71+
<Compile Include="Helper.cs" />
72+
<Compile Include="IOutputWriter.cs" />
73+
<Compile Include="Loggers\WriteObjectsLogger.cs" />
74+
<Compile Include="SafeDirectoryCatalog.cs" />
75+
<Compile Include="ScriptAnalyzer.cs" />
76+
<Compile Include="SpecialVars.cs" />
77+
<Compile Include="Strings.Designer.cs">
78+
<AutoGen>True</AutoGen>
79+
<DesignTime>True</DesignTime>
80+
<DependentUpon>Strings.resx</DependentUpon>
81+
</Compile>
82+
<Compile Include="VariableAnalysis.cs" />
83+
<Compile Include="VariableAnalysisBase.cs" />
84+
</ItemGroup>
85+
<ItemGroup>
86+
<None Include="PSScriptAnalyzer.psd1" />
87+
<None Include="ScriptAnalyzer.format.ps1xml" />
88+
<None Include="ScriptAnalyzer.types.ps1xml" />
89+
</ItemGroup>
90+
<ItemGroup>
91+
<EmbeddedResource Include="Strings.resx">
92+
<Generator>ResXFileCodeGenerator</Generator>
93+
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
94+
</EmbeddedResource>
95+
</ItemGroup>
96+
<ItemGroup>
97+
<Content Include="about_PSScriptAnalyzer.help.txt" />
98+
</ItemGroup>
99+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
100+
<ProjectExtensions>
101+
<VisualStudio AllowExistingFolder="true" />
102+
</ProjectExtensions>
103+
<PropertyGroup>
104+
<PostBuildEvent>
105+
if not exist "$(SolutionDir)$(SolutionName)" mkdir "$(SolutionDir)$(SolutionName)"
106+
copy /y "$(ProjectDir)*.ps1xml" "$(SolutionDir)$(SolutionName)"
107+
copy /y "$(ProjectDir)*.psd1" "$(SolutionDir)$(SolutionName)"
108+
if not exist "$(SolutionDir)$(SolutionName)\Configurations" mkdir "$(SolutionDir)$(SolutionName)\Configurations"
109+
copy /y "$(ProjectDir)Configurations\*.psd1" "$(SolutionDir)$(SolutionName)\Configurations"
110+
copy /y "$(TargetPath)" "$(SolutionDir)$(SolutionName)"
111+
if not exist "$(SolutionDir)$(SolutionName)\en-US" mkdir "$(SolutionDir)$(SolutionName)\en-US"
112+
copy /y "$(ProjectDir)about_*.help.txt" "$(SolutionDir)$(SolutionName)\en-US"
113+
copy /y "$(ProjectDir)*Help.xml" "$(SolutionDir)$(SolutionName)\en-US"</PostBuildEvent>
114+
</PropertyGroup>
114115
</Project>

Rules/ScriptAnalyzerBuiltinRules.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@
111111
<VisualStudio AllowExistingFolder="true" />
112112
</ProjectExtensions>
113113
<PropertyGroup>
114-
<PostBuildEvent>if not exist "$(SolutionDir)$(SolutionName)" mkdir "$(SolutionDir)$(SolutionName)"
115-
copy /y "$(TargetPath)" "$(SolutionDir)$(SolutionName)"</PostBuildEvent>
114+
<PostBuildEvent>
115+
if not exist "$(SolutionDir)$(SolutionName)" mkdir "$(SolutionDir)$(SolutionName)"
116+
copy /y "$(TargetPath)" "$(SolutionDir)$(SolutionName)"
117+
</PostBuildEvent>
116118
</PropertyGroup>
117119
</Project>

0 commit comments

Comments
 (0)