Skip to content

Commit b62bc7c

Browse files
committed
Initial commit.
1 parent 8f7021e commit b62bc7c

File tree

417 files changed

+64088
-0
lines changed

Some content is hidden

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

417 files changed

+64088
-0
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
###############################################################################
2+
# Don't mess with my line endings.
3+
###############################################################################
4+
* -text

.nuget/NuGet.exe

1.61 MB
Binary file not shown.

.nuget/NuGet.targets

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
6+
7+
<!-- Enable the restore command to run before builds -->
8+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
9+
10+
<!-- Property that enables building a package from a project -->
11+
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
12+
13+
<!-- Determines if package restore consent is required to restore packages -->
14+
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">false</RequireRestoreConsent>
15+
16+
<!-- Download NuGet.exe if it does not already exist -->
17+
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true</DownloadNuGetExe>
18+
</PropertyGroup>
19+
20+
<ItemGroup Condition=" '$(PackageSources)' == '' ">
21+
<!-- Package sources used to restore packages. -->
22+
<PackageSource Include="https://nuget.org/api/v2/" />
23+
</ItemGroup>
24+
25+
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
26+
<!-- Windows specific commands -->
27+
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
28+
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
29+
</PropertyGroup>
30+
31+
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
32+
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
33+
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
34+
<PackagesConfig>packages.config</PackagesConfig>
35+
</PropertyGroup>
36+
37+
<PropertyGroup>
38+
<!-- NuGet command -->
39+
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
40+
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
41+
42+
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
43+
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
44+
45+
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
46+
47+
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
48+
<!-- Commands -->
49+
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
50+
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
51+
52+
<!-- We need to ensure packages are restored prior to assembly resolve -->
53+
<ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
54+
RestorePackages;
55+
$(ResolveReferencesDependsOn);
56+
</ResolveReferencesDependsOn>
57+
58+
<!-- Make the build depend on restore packages -->
59+
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
60+
$(BuildDependsOn);
61+
BuildPackage;
62+
</BuildDependsOn>
63+
</PropertyGroup>
64+
65+
<Target Name="CheckPrerequisites">
66+
<!-- Raise an error if we're unable to locate nuget.exe -->
67+
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
68+
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
69+
<!--
70+
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
71+
This effectively acts as a lock that makes sure that the download operation will only happen once and all
72+
parallel builds will have to wait for it to complete.
73+
-->
74+
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
75+
</Target>
76+
77+
<Target Name="_DownloadNuGet">
78+
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
79+
</Target>
80+
81+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
82+
<Exec Command="$(RestoreCommand)"
83+
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
84+
85+
<Exec Command="$(RestoreCommand)"
86+
LogStandardErrorAsError="true"
87+
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
88+
</Target>
89+
90+
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
91+
<Exec Command="$(BuildCommand)"
92+
Condition=" '$(OS)' != 'Windows_NT' " />
93+
94+
<Exec Command="$(BuildCommand)"
95+
LogStandardErrorAsError="true"
96+
Condition=" '$(OS)' == 'Windows_NT' " />
97+
</Target>
98+
99+
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
100+
<ParameterGroup>
101+
<OutputFilename ParameterType="System.String" Required="true" />
102+
</ParameterGroup>
103+
<Task>
104+
<Reference Include="System.Core" />
105+
<Using Namespace="System" />
106+
<Using Namespace="System.IO" />
107+
<Using Namespace="System.Net" />
108+
<Using Namespace="Microsoft.Build.Framework" />
109+
<Using Namespace="Microsoft.Build.Utilities" />
110+
<Code Type="Fragment" Language="cs">
111+
<![CDATA[
112+
try {
113+
OutputFilename = Path.GetFullPath(OutputFilename);
114+
115+
Log.LogMessage("Downloading latest version of NuGet.exe...");
116+
WebClient webClient = new WebClient();
117+
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
118+
119+
return true;
120+
}
121+
catch (Exception ex) {
122+
Log.LogErrorFromException(ex);
123+
return false;
124+
}
125+
]]>
126+
</Code>
127+
</Task>
128+
</UsingTask>
129+
130+
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
131+
<ParameterGroup>
132+
<EnvKey ParameterType="System.String" Required="true" />
133+
<EnvValue ParameterType="System.String" Required="true" />
134+
</ParameterGroup>
135+
<Task>
136+
<Using Namespace="System" />
137+
<Code Type="Fragment" Language="cs">
138+
<![CDATA[
139+
try {
140+
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
141+
}
142+
catch {
143+
}
144+
]]>
145+
</Code>
146+
</Task>
147+
</UsingTask>
148+
</Project>

Common.props

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
8+
<IntermediateOutputPath>$(SolutionDir)\obj\$(Configuration)\$(MSBuildProjectName)\</IntermediateOutputPath>
9+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
10+
<OutputType Condition="$(OutputType)==''">Library</OutputType>
11+
<PlatformTarget>AnyCPU</PlatformTarget>
12+
<Prefer32Bit Condition="$(Prefer32Bit)==''">false</Prefer32Bit>
13+
<RootNamespace Condition="$(RootNamespace)=='' AND $(AssemblyName)!=''">$(AssemblyName)</RootNamespace>
14+
<UseVSHostingProcess>false</UseVSHostingProcess>
15+
<ErrorReport>prompt</ErrorReport>
16+
<WarningLevel>4</WarningLevel>
17+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
18+
<RestorePackages>true</RestorePackages>
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>false</Optimize>
24+
<OutputPath>$(SolutionDir)\bin\Debug\$(AssemblyName)\</OutputPath>
25+
<DefineConstants>DEBUG;TRACE</DefineConstants>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>$(SolutionDir)\bin\Release\$(AssemblyName)\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
</PropertyGroup>
33+
</Project>

Common.targets

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
4+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
5+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
6+
<PropertyGroup>
7+
<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>
8+
</PropertyGroup>
9+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
10+
</Target>
11+
</Project>

NuGet.config

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<config>
4+
<add key="repositoryPath" value="packages" />
5+
</config>
6+
<solution>
7+
<add key="disableSourceControlIntegration" value="true" />
8+
</solution>
9+
<packageRestore>
10+
<add key="enabled" value="True" />
11+
<add key="automatic" value="True" />
12+
</packageRestore>
13+
<packageSources>
14+
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
15+
</packageSources>
16+
</configuration>

SourceBrowser.sln

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HtmlGenerator", "src\HtmlGenerator\HtmlGenerator.csproj", "{3CB763A5-A0C0-46B0-AEF5-020E731253C2}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceIndexServer", "src\SourceIndexServer\SourceIndexServer.csproj", "{1AE38CC6-18C6-4AB7-8FE3-FEEB33329952}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HtmlGenerator.Tests", "src\HtmlGenerator.Tests\HtmlGenerator.Tests.csproj", "{609FD601-68F1-44DD-A5A9-0F57099C2677}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceIndexServer.Tests", "src\SourceIndexServer.Tests\SourceIndexServer.Tests.csproj", "{B9F60322-17E2-46BF-A98A-467F1D6A8469}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildLogParser", "src\BuildLogParser\BuildLogParser.csproj", "{57002F26-8D15-4CF7-A53D-61AE8CC5E836}"
15+
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptAnalyzer", "src\TypeScriptAnalyzer\TypeScriptAnalyzer.csproj", "{85E7C8FC-1CAB-41EB-8631-6CD4260A4EC9}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common", "src\Common\Common.csproj", "{F13CD277-E86B-4BC6-9E93-39ED055A46DB}"
19+
EndProject
20+
Global
21+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
22+
Debug|Any CPU = Debug|Any CPU
23+
Release|Any CPU = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{3CB763A5-A0C0-46B0-AEF5-020E731253C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{3CB763A5-A0C0-46B0-AEF5-020E731253C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{3CB763A5-A0C0-46B0-AEF5-020E731253C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{3CB763A5-A0C0-46B0-AEF5-020E731253C2}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{1AE38CC6-18C6-4AB7-8FE3-FEEB33329952}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{1AE38CC6-18C6-4AB7-8FE3-FEEB33329952}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{1AE38CC6-18C6-4AB7-8FE3-FEEB33329952}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{1AE38CC6-18C6-4AB7-8FE3-FEEB33329952}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{B9F60322-17E2-46BF-A98A-467F1D6A8469}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{B9F60322-17E2-46BF-A98A-467F1D6A8469}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{B9F60322-17E2-46BF-A98A-467F1D6A8469}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{B9F60322-17E2-46BF-A98A-467F1D6A8469}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{57002F26-8D15-4CF7-A53D-61AE8CC5E836}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{57002F26-8D15-4CF7-A53D-61AE8CC5E836}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{57002F26-8D15-4CF7-A53D-61AE8CC5E836}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{57002F26-8D15-4CF7-A53D-61AE8CC5E836}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{609FD601-68F1-44DD-A5A9-0F57099C2677}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{609FD601-68F1-44DD-A5A9-0F57099C2677}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{609FD601-68F1-44DD-A5A9-0F57099C2677}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{609FD601-68F1-44DD-A5A9-0F57099C2677}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{85E7C8FC-1CAB-41EB-8631-6CD4260A4EC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{85E7C8FC-1CAB-41EB-8631-6CD4260A4EC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{85E7C8FC-1CAB-41EB-8631-6CD4260A4EC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
49+
{85E7C8FC-1CAB-41EB-8631-6CD4260A4EC9}.Release|Any CPU.Build.0 = Release|Any CPU
50+
{F13CD277-E86B-4BC6-9E93-39ED055A46DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{F13CD277-E86B-4BC6-9E93-39ED055A46DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{F13CD277-E86B-4BC6-9E93-39ED055A46DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{F13CD277-E86B-4BC6-9E93-39ED055A46DB}.Release|Any CPU.Build.0 = Release|Any CPU
54+
EndGlobalSection
55+
GlobalSection(SolutionProperties) = preSolution
56+
HideSolutionNode = FALSE
57+
EndGlobalSection
58+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Project2
8+
{
9+
class _
10+
{
11+
_ _;
12+
13+
_(){};
14+
}
15+
}

TestCode/Project2/Class1.Partial.cs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
3+
partial class Partial
4+
{
5+
partial void Foo()
6+
{
7+
}
8+
}
9+
10+
abstract class Word<T>
11+
{
12+
}
13+
14+
class DerivedWord<T> : Word<T>
15+
{
16+
void Foo()
17+
{
18+
Word<int> w = new DerivedWord<int>();
19+
}
20+
}

0 commit comments

Comments
 (0)