Skip to content

Commit c7f7c30

Browse files
committed
add VisualBasic project, closes #137
1 parent 07d16e9 commit c7f7c30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2067
-40
lines changed

CodeCracker.CSharp.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1919
.gitattributes = .gitattributes
2020
.gitignore = .gitignore
2121
buildNuget.cmd = buildNuget.cmd
22+
src\CSharp\buildNugetCSharp.cmd = src\CSharp\buildNugetCSharp.cmd
2223
README.md = README.md
23-
runTests.ps1 = runTests.ps1
24+
runTestsCS.ps1 = runTestsCS.ps1
2425
EndProjectSection
2526
EndProject
2627
Global

CodeCracker.VisualBasic.sln

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.22310.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CodeCracker", "src\VisualBasic\CodeCracker\CodeCracker.vbproj", "{41FA4971-D354-4647-A269-4A886DA2EF4C}"
7+
EndProject
8+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CodeCracker.Vsix", "src\VisualBasic\CodeCracker.Vsix\CodeCracker.Vsix.vbproj", "{0C891C7E-FCA1-4318-A1EE-EF06F0767419}"
9+
EndProject
10+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CodeCracker.Test", "test\VisualBasic\CodeCracker.Test\CodeCracker.Test.vbproj", "{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}"
11+
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3DB077DC-387D-4AAD-9ECE-96D3D24FB3A6}"
13+
ProjectSection(SolutionItems) = preProject
14+
.gitattributes = .gitattributes
15+
.gitignore = .gitignore
16+
buildNuget.cmd = buildNuget.cmd
17+
src\VisualBasic\buildNugetVisualBasic.cmd = src\VisualBasic\buildNugetVisualBasic.cmd
18+
README.md = README.md
19+
runTestsVB.ps1 = runTestsVB.ps1
20+
EndProjectSection
21+
EndProject
22+
Global
23+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
24+
Debug|Any CPU = Debug|Any CPU
25+
Release|Any CPU = Release|Any CPU
26+
EndGlobalSection
27+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
28+
{41FA4971-D354-4647-A269-4A886DA2EF4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{41FA4971-D354-4647-A269-4A886DA2EF4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{41FA4971-D354-4647-A269-4A886DA2EF4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{41FA4971-D354-4647-A269-4A886DA2EF4C}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{0C891C7E-FCA1-4318-A1EE-EF06F0767419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{0C891C7E-FCA1-4318-A1EE-EF06F0767419}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{0C891C7E-FCA1-4318-A1EE-EF06F0767419}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{0C891C7E-FCA1-4318-A1EE-EF06F0767419}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{5399E7A8-F8F1-4F2E-A5D2-9C96F3DD2A2D}.Release|Any CPU.Build.0 = Release|Any CPU
40+
EndGlobalSection
41+
GlobalSection(SolutionProperties) = preSolution
42+
HideSolutionNode = FALSE
43+
EndGlobalSection
44+
EndGlobal

build.proj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" >
3+
<ItemGroup>
4+
<ProjectToBuild Include="CodeCracker.VisualBasic.sln">
5+
<Properties>Configuration=Debug</Properties>
6+
</ProjectToBuild>
7+
<ProjectToBuild Include="CodeCracker.CSharp.sln">
8+
<Properties>Configuration=Debug</Properties>
9+
</ProjectToBuild>
10+
</ItemGroup>
11+
<Target Name="Build">
12+
<MSBuild Projects="@(ProjectToBuild)" BuildInParallel="true" />
13+
</Target>
14+
</Project>

buildNuget.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pushd "%~dp0"
22
set currDir=%~dp0
33
set currDir=%currDir:~0,-1%
4-
"%currDir%\packages\NuGet.CommandLine.2.8.2\tools\NuGet.exe" pack "%currDir%\src\CSharp\CodeCracker\CodeCracker.nuspec" -Properties "Configuration=Debug;Platform=AnyCPU" -OutputDirectory "%currDir%"
4+
"%currDir%\packages\NuGet.CommandLine.2.8.2\tools\NuGet.exe" pack "%currDir%\src\CodeCracker.nuspec" -Properties "Configuration=Debug;Platform=AnyCPU" -OutputDirectory "%currDir%"
55
popd

runTests.ps1 renamed to runTestsCS.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
param([String]$testClass)
22
$Global:lastRun = $(date)
33
$testDllDirPath = "$PSScriptRoot\test\CSharp\CodeCracker.Test\bin\Debug\"
4-
$testDllFileName = "CodeCracker.Test.dll"
4+
$testDllFileName = "CodeCracker.Test.CSharp.dll"
55
$Global:testDllFullFileName = "$testDllDirPath$testDllFileName"
66
$Global:xunitConsole = "$PSScriptRoot\packages\xunit.runners.2.0.0-beta5-build2785\tools\xunit.console.x86.exe"
77

runTestsVB.ps1

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
param([String]$testClass)
2+
$Global:lastRun = $(date)
3+
$testDllDirPath = "$PSScriptRoot\test\VisualBasic\CodeCracker.Test\bin\Debug\"
4+
$testDllFileName = "CodeCracker.Test.VisualBasic.dll"
5+
$Global:testDllFullFileName = "$testDllDirPath$testDllFileName"
6+
$Global:xunitConsole = "$PSScriptRoot\packages\xunit.runners.2.0.0-beta5-build2785\tools\xunit.console.x86.exe"
7+
8+
function global:DebounceXunit {
9+
try {
10+
if (($(date) - $script:lastRun).TotalMilliseconds -lt 2000) {
11+
return
12+
}
13+
$Global:lastRun = $(date)
14+
If ($Global:testClass) {
15+
Start-Process $Global:xunitConsole -ArgumentList "`"$Global:testDllFullFileName`" -class $Global:testClass" -NoNewWindow
16+
} Else {
17+
Start-Process $Global:xunitConsole -ArgumentList "`"$Global:testDllFullFileName`"" -NoNewWindow
18+
}
19+
}
20+
catch
21+
{
22+
Write-Host $_.Exception.Message
23+
}
24+
}
25+
26+
Write-Host "Watching $testDllDirPath"
27+
If ($testClass) {
28+
If ($testClass.StartsWith("CodeCracker.Test") -eq $false) {
29+
$testClass = "CodeCracker.Test.$testClass"
30+
}
31+
Write-Host "Only for $testClass"
32+
}
33+
$Global:testClass = $testClass
34+
35+
try {
36+
$watcher = New-Object System.IO.FileSystemWatcher
37+
$watcher.Path = $testDllDirPath
38+
$watcher.Filter = $testDllFileName
39+
$watcher.IncludeSubdirectories = $false
40+
$watcher.EnableRaisingEvents = $true
41+
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite
42+
$changed = Register-ObjectEvent $watcher "Changed" -Action { DebounceXunit }
43+
}
44+
catch {
45+
Write-Host $_.Exception.Message
46+
}
47+
#if we do that, then we don't get any console output:
48+
#Write-Host "Press any key to continue ..."
49+
#[System.Console]::ReadKey()
50+
#Unregister-Event $changed.Id

src/CSharp/CodeCracker.Vsix/CodeCracker.Vsix.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<OutputType>Library</OutputType>
1515
<AppDesignerFolder>Properties</AppDesignerFolder>
1616
<RootNamespace>CodeCracker</RootNamespace>
17-
<AssemblyName>CodeCracker</AssemblyName>
17+
<AssemblyName>CodeCracker.CSharp</AssemblyName>
1818
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1919
<GeneratePkgDefFile>false</GeneratePkgDefFile>
2020
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>

src/CSharp/CodeCracker.Vsix/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
44
<Identity Id="CodeCracker.Vsix..5b99e64c-1418-4a06-990c-fd4cf01f4f63" Version="1.0.0.1" Language="en-US" Publisher="Code Cracker"/>
5-
<DisplayName>Code Cracker</DisplayName>
5+
<DisplayName>Code Cracker for C#</DisplayName>
66
<Description xml:space="preserve">An analyzer library for C# that uses Roslyn to produce refactorings, code analysis, and other niceties.
77
Check the official project site on code-cracker.github.io.
88
Build status Nuget count Nuget downloads Issues open

src/CSharp/CodeCracker/CodeCracker.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<OutputType>Library</OutputType>
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>CodeCracker</RootNamespace>
12-
<AssemblyName>CodeCracker</AssemblyName>
12+
<AssemblyName>CodeCracker.CSharp</AssemblyName>
1313
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1414
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
1515
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
@@ -166,7 +166,7 @@
166166
<Folder Include="Security\" />
167167
</ItemGroup>
168168
<ItemGroup>
169-
<Analyzer Include="..\..\..\packages\codecracker.1.0.0-alpha2-164\tools\analyzers\CodeCracker.dll" />
169+
<Analyzer Include="..\..\..\packages\codecracker.1.0.0-alpha2-169\tools\analyzers\CodeCracker.dll" />
170170
</ItemGroup>
171171
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
172172
<PropertyGroup>
@@ -181,4 +181,4 @@
181181
<Target Name="AfterBuild">
182182
</Target>
183183
-->
184-
</Project>
184+
</Project>

src/CSharp/CodeCracker/CodeCracker.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
33
<metadata>
4-
<id>codecracker</id>
4+
<id>codecracker.CSharp</id>
55
<version>1.0.0-alpha2</version>
66
<title>CodeCracker</title>
77
<authors>giggio,elemarjr,carloscds,viniciushana</authors>
@@ -13,7 +13,7 @@
1313
<description>A analyzer library for C# that uses Roslyn to produce refactorings, code analysis, and other niceties.
1414

1515
This is a community project, free and open source. Everyone is invited to contribute, fork, share and use the code. No money shall be charged by this software, nor it will be. Ever.</description>
16-
<releaseNotes>First alpha release</releaseNotes>
16+
<releaseNotes>Second alpha release</releaseNotes>
1717
<copyright>Copyright CodeCracker 2014</copyright>
1818
<tags>roslyn, analyzers</tags>
1919
<frameworkAssemblies>
@@ -23,6 +23,6 @@ This is a community project, free and open source. Everyone is invited to contri
2323
<files>
2424
<file src="tools\install.ps1" target="tools\install.ps1" />
2525
<file src="tools\uninstall.ps1" target="tools\uninstall.ps1" />
26-
<file src="bin\debug\CodeCracker.dll" target="tools\analyzers\CodeCracker.dll" />
26+
<file src="bin\debug\CodeCracker.CSharp.dll" target="tools\analyzers\CodeCracker.CSharp.dll" />
2727
</files>
28-
</package>
28+
</package>

0 commit comments

Comments
 (0)