Skip to content

Commit 2a65156

Browse files
committed
create common project and add diagnosticid to it
Closes #248
1 parent d0ec7c6 commit 2a65156

File tree

13 files changed

+116
-40
lines changed

13 files changed

+116
-40
lines changed

CodeCracker.CSharp.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{40545653
3939
psake.ps1 = psake.ps1
4040
EndProjectSection
4141
EndProject
42+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeCracker.Common", "src\Common\CodeCracker.Common\CodeCracker.Common.csproj", "{753D4757-FCBA-43BA-B1BE-89201ACDA192}"
43+
EndProject
4244
Global
4345
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4446
Debug|Any CPU = Debug|Any CPU
@@ -63,6 +65,12 @@ Global
6365
{F7843158-046E-4B22-95D7-CAC7BB01283D}.DebugNoVsix|Any CPU.Build.0 = Debug|Any CPU
6466
{F7843158-046E-4B22-95D7-CAC7BB01283D}.Release|Any CPU.ActiveCfg = Release|Any CPU
6567
{F7843158-046E-4B22-95D7-CAC7BB01283D}.Release|Any CPU.Build.0 = Release|Any CPU
68+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
69+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Debug|Any CPU.Build.0 = Debug|Any CPU
70+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.DebugNoVsix|Any CPU.ActiveCfg = Debug|Any CPU
71+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.DebugNoVsix|Any CPU.Build.0 = Debug|Any CPU
72+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Release|Any CPU.ActiveCfg = Release|Any CPU
73+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Release|Any CPU.Build.0 = Release|Any CPU
6674
EndGlobalSection
6775
GlobalSection(SolutionProperties) = preSolution
6876
HideSolutionNode = FALSE

CodeCracker.VisualBasic.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{22D6C608-E
3636
test.ps1 = test.ps1
3737
EndProjectSection
3838
EndProject
39+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeCracker.Common", "src\Common\CodeCracker.Common\CodeCracker.Common.csproj", "{753D4757-FCBA-43BA-B1BE-89201ACDA192}"
40+
EndProject
3941
Global
4042
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4143
Debug|Any CPU = Debug|Any CPU
@@ -60,6 +62,12 @@ Global
6062
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.DebugNoVsix|Any CPU.Build.0 = Debug|Any CPU
6163
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
6264
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.Release|Any CPU.Build.0 = Release|Any CPU
65+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
66+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Debug|Any CPU.Build.0 = Debug|Any CPU
67+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.DebugNoVsix|Any CPU.ActiveCfg = Debug|Any CPU
68+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.DebugNoVsix|Any CPU.Build.0 = Debug|Any CPU
69+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Release|Any CPU.ActiveCfg = Release|Any CPU
70+
{753D4757-FCBA-43BA-B1BE-89201ACDA192}.Release|Any CPU.Build.0 = Release|Any CPU
6371
EndGlobalSection
6472
GlobalSection(SolutionProperties) = preSolution
6573
HideSolutionNode = FALSE

src/CSharp/CodeCracker/CodeCracker.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<WarningLevel>4</WarningLevel>
3535
</PropertyGroup>
3636
<ItemGroup>
37-
<Compile Include="DiagnosticId.cs" />
3837
<Compile Include="Extensions\Extensions.cs" />
3938
<Compile Include="Performance\StringBuilderInLoopCodeFixProvider.cs" />
4039
<Compile Include="Performance\StringBuilderInLoopAnalyzer.cs" />
@@ -197,6 +196,12 @@
197196
<ItemGroup>
198197
<Analyzer Include="..\..\..\packages\codecracker.CSharp.1.0.0-alpha3-0346\tools\analyzers\CodeCracker.CSharp.dll" />
199198
</ItemGroup>
199+
<ItemGroup>
200+
<ProjectReference Include="..\..\Common\CodeCracker.Common\CodeCracker.Common.csproj">
201+
<Project>{753d4757-fcba-43ba-b1be-89201acda192}</Project>
202+
<Name>CodeCracker.Common</Name>
203+
</ProjectReference>
204+
</ItemGroup>
200205
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
201206
<PropertyGroup>
202207
<PostBuildEvent>

src/CSharp/CodeCracker/CodeCracker.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ This is a community project, free and open source. Everyone is invited to contri
2424
<file src="tools\install.ps1" target="tools\install.ps1" />
2525
<file src="tools\uninstall.ps1" target="tools\uninstall.ps1" />
2626
<file src="bin\debug\CodeCracker.CSharp.dll" target="tools\analyzers\CodeCracker.CSharp.dll" />
27+
<file src="bin\debug\CodeCracker.Common.dll" target="tools\analyzers\CodeCracker.Common.dll" />
2728
</files>
2829
</package>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.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+
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
6+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8+
<ProjectGuid>{753D4757-FCBA-43BA-B1BE-89201ACDA192}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>CodeCracker</RootNamespace>
12+
<AssemblyName>CodeCracker.Common</AssemblyName>
13+
<DefaultLanguage>en-US</DefaultLanguage>
14+
<FileAlignment>512</FileAlignment>
15+
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
16+
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
17+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<!-- A reference to the entire .NET Framework is automatically included -->
38+
<None Include="packages.config" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<Compile Include="DiagnosticId.cs" />
42+
<Compile Include="Properties\AssemblyInfo.cs" />
43+
</ItemGroup>
44+
<ItemGroup>
45+
<Analyzer Include="..\..\..\packages\codecracker.CSharp.1.0.0-alpha3-0346\tools\analyzers\CodeCracker.CSharp.dll" />
46+
</ItemGroup>
47+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
48+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
49+
Other similar extension points exist, see Microsoft.Common.targets.
50+
<Target Name="BeforeBuild">
51+
</Target>
52+
<Target Name="AfterBuild">
53+
</Target>
54+
-->
55+
</Project>
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Resources;
2+
using System.Reflection;
3+
using System.Runtime.InteropServices;
4+
using System.Runtime.CompilerServices;
5+
6+
[assembly: AssemblyTitle("CodeCracker.Common")]
7+
[assembly: AssemblyDescription("")]
8+
[assembly: AssemblyConfiguration("")]
9+
[assembly: AssemblyCompany("")]
10+
[assembly: AssemblyProduct("CodeCracker")]
11+
[assembly: AssemblyCopyright("Copyright © 2014-2015")]
12+
[assembly: AssemblyTrademark("")]
13+
[assembly: AssemblyCulture("")]
14+
[assembly: ComVisible(false)]
15+
[assembly: NeutralResourcesLanguage("en")]
16+
[assembly: AssemblyVersion("1.0.*")]
17+
[assembly: AssemblyFileVersion("1.0.0.0")]
18+
[assembly: InternalsVisibleTo("CodeCracker.Test.CSharp")]
19+
[assembly: InternalsVisibleTo("CodeCracker.Test.VisualBasic")]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="codecracker.CSharp" version="1.0.0-alpha3-0346" targetFramework="portable-net45+win" />
4+
</packages>

src/VisualBasic/CodeCracker/CodeCracker.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ This is a community project, free and open source. Everyone is invited to contri
2424
<file src="tools\install.ps1" target="tools\install.ps1" />
2525
<file src="tools\uninstall.ps1" target="tools\uninstall.ps1" />
2626
<file src="bin\debug\CodeCracker.VisualBasic.dll" target="tools\analyzers\CodeCracker.VisualBasic.dll" />
27+
<file src="bin\debug\CodeCracker.Common.dll" target="tools\analyzers\CodeCracker.Common.dll" />
2728
</files>
2829
</package>

src/VisualBasic/CodeCracker/CodeCracker.vbproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
<Compile Include="Design\NameOfCodeFixProvider.vb" />
101101
<Compile Include="Design\StaticConstructorExceptionAnalyzer.vb" />
102102
<Compile Include="Design\StaticConstructorExceptionCodeFixProvider.vb" />
103-
<Compile Include="DiagnosticId.vb" />
104103
<Compile Include="Extensions\AnalyzerExtensions.vb" />
105104
<Compile Include="Extensions\CodeCrackerExtensions.vb" />
106105
<Compile Include="HelpLink.vb" />
@@ -171,6 +170,12 @@
171170
<ItemGroup>
172171
<Analyzer Include="..\..\..\packages\codecracker.VisualBasic.1.0.0-alpha3-0331\tools\analyzers\CodeCracker.VisualBasic.dll" />
173172
</ItemGroup>
173+
<ItemGroup>
174+
<ProjectReference Include="..\..\Common\CodeCracker.Common\CodeCracker.Common.csproj">
175+
<Project>{753d4757-fcba-43ba-b1be-89201acda192}</Project>
176+
<Name>CodeCracker.Common</Name>
177+
</ProjectReference>
178+
</ItemGroup>
174179
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.VisualBasic.targets" />
175180
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
176181
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)