Skip to content

Commit 2b1d4f9

Browse files
committed
(GH-29) Overriding Code Analysis Error
- This is required on both projects, the DLL and the EXE.
1 parent 5853e40 commit 2b1d4f9

File tree

2 files changed

+142
-141
lines changed

2 files changed

+142
-141
lines changed
Lines changed: 142 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,143 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{F1163F09-3D4E-4F95-AF46-24C15AB297FB}</ProjectGuid>
8-
<OutputType>Exe</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>GitHubReleaseManager.Cli</RootNamespace>
11-
<AssemblyName>GitHubReleaseManager.Cli</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<NuGetPackageImportStamp>7ec2b379</NuGetPackageImportStamp>
15-
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
16-
<RestorePackages>true</RestorePackages>
17-
<BuildToolsFxCopVersion>1.0.1</BuildToolsFxCopVersion>
18-
<TargetFrameworkProfile />
19-
<PublishUrl>publish\</PublishUrl>
20-
<Install>true</Install>
21-
<InstallFrom>Disk</InstallFrom>
22-
<UpdateEnabled>false</UpdateEnabled>
23-
<UpdateMode>Foreground</UpdateMode>
24-
<UpdateInterval>7</UpdateInterval>
25-
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
26-
<UpdatePeriodically>false</UpdatePeriodically>
27-
<UpdateRequired>false</UpdateRequired>
28-
<MapFileExtensions>true</MapFileExtensions>
29-
<ApplicationRevision>0</ApplicationRevision>
30-
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
31-
<IsWebBootstrapper>false</IsWebBootstrapper>
32-
<UseApplicationTrust>false</UseApplicationTrust>
33-
<BootstrapperEnabled>true</BootstrapperEnabled>
34-
</PropertyGroup>
35-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
36-
<PlatformTarget>AnyCPU</PlatformTarget>
37-
<DebugSymbols>true</DebugSymbols>
38-
<DebugType>full</DebugType>
39-
<Optimize>false</Optimize>
40-
<OutputPath>..\..\BuildArtifacts\</OutputPath>
41-
<DefineConstants>DEBUG;TRACE</DefineConstants>
42-
<ErrorReport>prompt</ErrorReport>
43-
<WarningLevel>4</WarningLevel>
44-
<RunCodeAnalysis>False</RunCodeAnalysis>
45-
<CodeAnalysisRuleSet>..\GitHubReleaseManager.ruleset</CodeAnalysisRuleSet>
46-
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
47-
</PropertyGroup>
48-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
49-
<PlatformTarget>AnyCPU</PlatformTarget>
50-
<DebugType>pdbonly</DebugType>
51-
<Optimize>true</Optimize>
52-
<OutputPath>..\..\BuildArtifacts\</OutputPath>
53-
<DefineConstants>TRACE;CODE_ANALYSIS;</DefineConstants>
54-
<ErrorReport>prompt</ErrorReport>
55-
<WarningLevel>4</WarningLevel>
56-
<RunCodeAnalysis>true</RunCodeAnalysis>
57-
<CodeAnalysisRuleSet>..\GitHubReleaseManager.ruleset</CodeAnalysisRuleSet>
58-
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
59-
</PropertyGroup>
60-
<ItemGroup>
61-
<Reference Include="CommandLine">
62-
<HintPath>..\packages\CommandLineParser.1.9.71\lib\net45\CommandLine.dll</HintPath>
63-
</Reference>
64-
<Reference Include="Octokit">
65-
<HintPath>..\packages\Octokit.0.4.1\lib\net45\Octokit.dll</HintPath>
66-
</Reference>
67-
<Reference Include="System" />
68-
<Reference Include="System.Core" />
69-
<Reference Include="System.Net.Http" />
70-
<Reference Include="System.Xml.Linq" />
71-
<Reference Include="System.Data.DataSetExtensions" />
72-
<Reference Include="Microsoft.CSharp" />
73-
<Reference Include="System.Data" />
74-
<Reference Include="System.Xml" />
75-
</ItemGroup>
76-
<ItemGroup>
77-
<Compile Include="AssemblyInfo.cs" />
78-
<Compile Include="Options\AddAssetSubOptions.cs" />
79-
<Compile Include="Options\BaseGitHubSubOptions.cs" />
80-
<Compile Include="Options\BaseSubOptions.cs" />
81-
<Compile Include="Options\CloseSubOptions.cs" />
82-
<Compile Include="Options\CommonSubOptions.cs" />
83-
<Compile Include="Options\CreateSubOptions.cs" />
84-
<Compile Include="Options\ExportSubOptions.cs" />
85-
<Compile Include="Options\InitSubOptions.cs" />
86-
<Compile Include="Options\MainOptions.cs" />
87-
<Compile Include="Program.cs" />
88-
<Compile Include="Options\PublishSubOptions.cs" />
89-
<Compile Include="Options\ShowConfigSubOptions.cs" />
90-
</ItemGroup>
91-
<ItemGroup>
92-
<None Include="app.config" />
93-
<None Include="packages.config">
94-
<SubType>Designer</SubType>
95-
</None>
96-
</ItemGroup>
97-
<ItemGroup>
98-
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
99-
<Link>CustomDictionary.xml</Link>
100-
</CodeAnalysisDictionary>
101-
</ItemGroup>
102-
<ItemGroup>
103-
<BootstrapperPackage Include=".NETFramework,Version=v4.5.1">
104-
<Visible>False</Visible>
105-
<ProductName>Microsoft .NET Framework 4.5.1 %28x86 and x64%29</ProductName>
106-
<Install>true</Install>
107-
</BootstrapperPackage>
108-
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
109-
<Visible>False</Visible>
110-
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
111-
<Install>false</Install>
112-
</BootstrapperPackage>
113-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
114-
<Visible>False</Visible>
115-
<ProductName>.NET Framework 3.5 SP1</ProductName>
116-
<Install>false</Install>
117-
</BootstrapperPackage>
118-
</ItemGroup>
119-
<ItemGroup>
120-
<Content Include="FodyWeavers.xml" />
121-
</ItemGroup>
122-
<ItemGroup>
123-
<ProjectReference Include="..\GitHubReleaseManager\GitHubReleaseManager.csproj">
124-
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
125-
<Name>GitHubReleaseManager</Name>
126-
</ProjectReference>
127-
</ItemGroup>
128-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
129-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
130-
<PropertyGroup>
131-
<ErrorText>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}.</ErrorText>
132-
</PropertyGroup>
133-
<Error Condition="!Exists('..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets'))" />
134-
<Error Condition="!Exists('..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets'))" />
135-
<Error Condition="!Exists('..\packages\Fody.1.27.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.27.1\build\Fody.targets'))" />
136-
</Target>
137-
<Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />
138-
<Import Project="..\..\BuildScripts\StyleCop.props" Condition="Exists('..\..\BuildScripts\StyleCop.props')" />
139-
<Import Project="..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets" Condition="Exists('..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets')" />
140-
<Import Project="..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets" Condition="Exists('..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets')" />
141-
<Import Project="..\packages\Fody.1.27.1\build\Fody.targets" Condition="Exists('..\packages\Fody.1.27.1\build\Fody.targets')" />
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{F1163F09-3D4E-4F95-AF46-24C15AB297FB}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>GitHubReleaseManager.Cli</RootNamespace>
11+
<AssemblyName>GitHubReleaseManager.Cli</AssemblyName>
12+
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<NuGetPackageImportStamp>7ec2b379</NuGetPackageImportStamp>
15+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
16+
<RestorePackages>true</RestorePackages>
17+
<BuildToolsFxCopVersion>1.0.1</BuildToolsFxCopVersion>
18+
<TargetFrameworkProfile />
19+
<PublishUrl>publish\</PublishUrl>
20+
<Install>true</Install>
21+
<InstallFrom>Disk</InstallFrom>
22+
<UpdateEnabled>false</UpdateEnabled>
23+
<UpdateMode>Foreground</UpdateMode>
24+
<UpdateInterval>7</UpdateInterval>
25+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
26+
<UpdatePeriodically>false</UpdatePeriodically>
27+
<UpdateRequired>false</UpdateRequired>
28+
<MapFileExtensions>true</MapFileExtensions>
29+
<ApplicationRevision>0</ApplicationRevision>
30+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
31+
<IsWebBootstrapper>false</IsWebBootstrapper>
32+
<UseApplicationTrust>false</UseApplicationTrust>
33+
<BootstrapperEnabled>true</BootstrapperEnabled>
34+
</PropertyGroup>
35+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
36+
<PlatformTarget>AnyCPU</PlatformTarget>
37+
<DebugSymbols>true</DebugSymbols>
38+
<DebugType>full</DebugType>
39+
<Optimize>false</Optimize>
40+
<OutputPath>..\..\BuildArtifacts\</OutputPath>
41+
<DefineConstants>DEBUG;TRACE</DefineConstants>
42+
<ErrorReport>prompt</ErrorReport>
43+
<WarningLevel>4</WarningLevel>
44+
<RunCodeAnalysis>False</RunCodeAnalysis>
45+
<CodeAnalysisRuleSet>..\GitHubReleaseManager.ruleset</CodeAnalysisRuleSet>
46+
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
47+
</PropertyGroup>
48+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
49+
<PlatformTarget>AnyCPU</PlatformTarget>
50+
<DebugType>pdbonly</DebugType>
51+
<Optimize>true</Optimize>
52+
<OutputPath>..\..\BuildArtifacts\</OutputPath>
53+
<DefineConstants>TRACE;CODE_ANALYSIS;</DefineConstants>
54+
<ErrorReport>prompt</ErrorReport>
55+
<WarningLevel>4</WarningLevel>
56+
<RunCodeAnalysis>true</RunCodeAnalysis>
57+
<CodeAnalysisRuleSet>..\GitHubReleaseManager.ruleset</CodeAnalysisRuleSet>
58+
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
59+
</PropertyGroup>
60+
<ItemGroup>
61+
<Reference Include="CommandLine">
62+
<HintPath>..\packages\CommandLineParser.1.9.71\lib\net45\CommandLine.dll</HintPath>
63+
</Reference>
64+
<Reference Include="Octokit">
65+
<HintPath>..\packages\Octokit.0.4.1\lib\net45\Octokit.dll</HintPath>
66+
</Reference>
67+
<Reference Include="System" />
68+
<Reference Include="System.Core" />
69+
<Reference Include="System.Net.Http" />
70+
<Reference Include="System.Xml.Linq" />
71+
<Reference Include="System.Data.DataSetExtensions" />
72+
<Reference Include="Microsoft.CSharp" />
73+
<Reference Include="System.Data" />
74+
<Reference Include="System.Xml" />
75+
</ItemGroup>
76+
<ItemGroup>
77+
<Compile Include="AssemblyInfo.cs" />
78+
<Compile Include="GlobalSuppressions.cs" />
79+
<Compile Include="Options\AddAssetSubOptions.cs" />
80+
<Compile Include="Options\BaseGitHubSubOptions.cs" />
81+
<Compile Include="Options\BaseSubOptions.cs" />
82+
<Compile Include="Options\CloseSubOptions.cs" />
83+
<Compile Include="Options\CommonSubOptions.cs" />
84+
<Compile Include="Options\CreateSubOptions.cs" />
85+
<Compile Include="Options\ExportSubOptions.cs" />
86+
<Compile Include="Options\InitSubOptions.cs" />
87+
<Compile Include="Options\MainOptions.cs" />
88+
<Compile Include="Program.cs" />
89+
<Compile Include="Options\PublishSubOptions.cs" />
90+
<Compile Include="Options\ShowConfigSubOptions.cs" />
91+
</ItemGroup>
92+
<ItemGroup>
93+
<None Include="app.config" />
94+
<None Include="packages.config">
95+
<SubType>Designer</SubType>
96+
</None>
97+
</ItemGroup>
98+
<ItemGroup>
99+
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
100+
<Link>CustomDictionary.xml</Link>
101+
</CodeAnalysisDictionary>
102+
</ItemGroup>
103+
<ItemGroup>
104+
<BootstrapperPackage Include=".NETFramework,Version=v4.5.1">
105+
<Visible>False</Visible>
106+
<ProductName>Microsoft .NET Framework 4.5.1 %28x86 and x64%29</ProductName>
107+
<Install>true</Install>
108+
</BootstrapperPackage>
109+
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
110+
<Visible>False</Visible>
111+
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
112+
<Install>false</Install>
113+
</BootstrapperPackage>
114+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
115+
<Visible>False</Visible>
116+
<ProductName>.NET Framework 3.5 SP1</ProductName>
117+
<Install>false</Install>
118+
</BootstrapperPackage>
119+
</ItemGroup>
120+
<ItemGroup>
121+
<Content Include="FodyWeavers.xml" />
122+
</ItemGroup>
123+
<ItemGroup>
124+
<ProjectReference Include="..\GitHubReleaseManager\GitHubReleaseManager.csproj">
125+
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
126+
<Name>GitHubReleaseManager</Name>
127+
</ProjectReference>
128+
</ItemGroup>
129+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
130+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
131+
<PropertyGroup>
132+
<ErrorText>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}.</ErrorText>
133+
</PropertyGroup>
134+
<Error Condition="!Exists('..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets'))" />
135+
<Error Condition="!Exists('..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets'))" />
136+
<Error Condition="!Exists('..\packages\Fody.1.27.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.27.1\build\Fody.targets'))" />
137+
</Target>
138+
<Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />
139+
<Import Project="..\..\BuildScripts\StyleCop.props" Condition="Exists('..\..\BuildScripts\StyleCop.props')" />
140+
<Import Project="..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets" Condition="Exists('..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets')" />
141+
<Import Project="..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets" Condition="Exists('..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets')" />
142+
<Import Project="..\packages\Fody.1.27.1\build\Fody.targets" Condition="Exists('..\packages\Fody.1.27.1\build\Fody.targets')" />
142143
</Project>
Binary file not shown.

0 commit comments

Comments
 (0)