[closes gh-51] Renamed projects.
This commit is contained in:
Родитель
12517296cd
Коммит
3cba433f5a
|
@ -71,8 +71,8 @@ try {
|
|||
Write-Output "Building TryRoslyn..."
|
||||
Write-Output " Restoring packages..."
|
||||
&"$PSScriptRoot\#tools\nuget" restore "$sourceRoot\TryRoslyn.sln"
|
||||
Write-Output " Web.Api.csproj"
|
||||
&$MSBuild "$sourceRoot\Web.Api\Web.Api.csproj" `
|
||||
Write-Output " Server.csproj"
|
||||
&$MSBuild "$sourceRoot\Server\Server.csproj" `
|
||||
/p:AllowedReferenceRelatedFileExtensions=.pdb `
|
||||
/p:Configuration=Release
|
||||
if ($LastExitCode -ne 0) {
|
||||
|
@ -158,13 +158,13 @@ try {
|
|||
/s /njh /njs /ndl /np /ns /xo /purge
|
||||
}
|
||||
|
||||
Write-Output "Copying Web.Api\Web.config to $siteRoot\Web.config..."
|
||||
Copy-Item "$sourceRoot\Web.Api\Web.config" "$siteRoot\Web.config" -Force
|
||||
Write-Output "Copying Server\Web.config to $siteRoot\Web.config..."
|
||||
Copy-Item "$sourceRoot\Server\Web.config" "$siteRoot\Web.config" -Force
|
||||
|
||||
Write-Output "Resolving and copying assemblies..."
|
||||
$resolverLogPath = "$branchArtifactsRoot\AssemblyResolver.log"
|
||||
$resolverCommand = "&""$assemblyResolver""" +
|
||||
" --source-bin ""$sourceRoot\Web.Api\bin"" " +
|
||||
" --source-bin ""$sourceRoot\Server\bin"" " +
|
||||
" --roslyn-bin ""$branchArtifactsRoot\Binaries""" +
|
||||
" --roslyn-src-from ""$repositorySourceRoot""" +
|
||||
" --roslyn-src-to ""$branchArtifactsRoot\SourcesFilteredForPackageDiscovery""" +
|
||||
|
|
|
@ -1,198 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TryRoslyn.Core</RootNamespace>
|
||||
<AssemblyName>TryRoslyn.Core</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AshMind.Extensions, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\AshMind.Extensions.2.0.0-pre-20160719\lib\net45\AshMind.Extensions.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Autofac, Version=3.5.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\Autofac.3.5.2\lib\net40\Autofac.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.Decompiler">
|
||||
<HintPath>..\#libraries\ICSharpCode.Decompiler.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.NRefactory">
|
||||
<HintPath>..\#libraries\ICSharpCode.NRefactory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.NRefactory.CSharp">
|
||||
<HintPath>..\#libraries\ICSharpCode.NRefactory.CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.NRefactory.VB">
|
||||
<HintPath>..\#libraries\ICSharpCode.NRefactory.VB.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ILSpy">
|
||||
<HintPath>..\#libraries\ILSpy.exe</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="JetBrains.Annotations, Version=10.1.5.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\JetBrains.Annotations.10.1.5\lib\net\JetBrains.Annotations.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\Microsoft.CodeAnalysis.Common.1.3.2\lib\net45\Microsoft.CodeAnalysis.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeAnalysis.CSharp, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\Microsoft.CodeAnalysis.CSharp.1.3.2\lib\net45\Microsoft.CodeAnalysis.CSharp.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeAnalysis.VisualBasic, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\Microsoft.CodeAnalysis.VisualBasic.1.3.2\lib\net45\Microsoft.CodeAnalysis.VisualBasic.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualBasic" />
|
||||
<Reference Include="Mono.Cecil">
|
||||
<HintPath>..\#libraries\Mono.Cecil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.AppContext, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.AppContext.4.1.0\lib\net46\System.AppContext.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Collections.Immutable, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Collections.Immutable.1.2.0\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.ComponentModel.Composition" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Console.4.0.0\lib\net46\System.Console.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Diagnostics.FileVersionInfo, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Diagnostics.FileVersionInfo.4.0.0\lib\net46\System.Diagnostics.FileVersionInfo.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Diagnostics.StackTrace, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Diagnostics.StackTrace.4.0.1\lib\net46\System.Diagnostics.StackTrace.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.IO.FileSystem.4.0.1\lib\net46\System.IO.FileSystem.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.FileSystem.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.IO.FileSystem.Primitives.4.0.1\lib\net46\System.IO.FileSystem.Primitives.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Reflection.Metadata, Version=1.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Reflection.Metadata.1.3.0\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Security.Cryptography.Algorithms.4.2.0\lib\net46\System.Security.Cryptography.Algorithms.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Security.Cryptography.Encoding, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Security.Cryptography.Encoding.4.0.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Security.Cryptography.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Security.Cryptography.Primitives.4.0.0\lib\net46\System.Security.Cryptography.Primitives.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Security.Cryptography.X509Certificates, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Security.Cryptography.X509Certificates.4.1.0\lib\net46\System.Security.Cryptography.X509Certificates.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Text.Encoding.CodePages, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Text.Encoding.CodePages.4.0.1\lib\net46\System.Text.Encoding.CodePages.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Thread, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Threading.Thread.4.0.0\lib\net46\System.Threading.Thread.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.XmlDocument, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Xml.XmlDocument.4.0.1\lib\net46\System.Xml.XmlDocument.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.XPath, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Xml.XPath.4.0.1\lib\net46\System.Xml.XPath.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.XPath.XDocument, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.Xml.XPath.XDocument.4.0.1\lib\net46\System.Xml.XPath.XDocument.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Decompilation\ILDecompiler.cs" />
|
||||
<Compile Include="Decompilation\Support\ILCommentingTextOutput.cs" />
|
||||
<Compile Include="CoreModule.cs" />
|
||||
<Compile Include="Decompilation\VisualBasicDecompiler.cs" />
|
||||
<Compile Include="Decompilation\CSharpDecompiler.cs" />
|
||||
<Compile Include="Decompilation\Support\CustomizableIndentPlainTextOutput.cs" />
|
||||
<Compile Include="Compilation\Internal\IMetadataReferenceCollector.cs" />
|
||||
<Compile Include="Compilation\Internal\MetadataReferenceCollector.cs" />
|
||||
<Compile Include="Compilation\Internal\IFeatureDiscovery.cs" />
|
||||
<Compile Include="Compilation\Internal\CSharpFeatureDiscovery.cs" />
|
||||
<Compile Include="Compilation\Internal\VisualBasicFeatureDiscovery.cs" />
|
||||
<Compile Include="Compilation\VisualBasicSetup.cs" />
|
||||
<Compile Include="Compilation\ILanguageSetup.cs" />
|
||||
<Compile Include="Decompilation\Support\DecompiledPseudoCSharpOutputVisitor.cs" />
|
||||
<Compile Include="Decompilation\Support\OverridableCSharpOutputVisitor.cs" />
|
||||
<Compile Include="Decompilation\Support\RoslynFriendlyConvertConstructorCallIntoInitializer.cs" />
|
||||
<Compile Include="Decompilation\AstDecompiler.cs" />
|
||||
<Compile Include="Decompilation\IDecompiler.cs" />
|
||||
<Compile Include="Compilation\CSharpSetup.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Analyzer Include="..\#packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
|
||||
<Analyzer Include="..\#packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
|
@ -1,30 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("TryRoslyn.Core")]
|
||||
[assembly: AssemblyCompany("Andrey Shchekin")]
|
||||
[assembly: AssemblyCopyright("Copyright © Andrey Shchekin 2014–2017")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("d74e2933-bdfc-401f-9113-693059b9718c")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /></startup></configuration>
|
|
@ -1,51 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AshMind.Extensions" version="2.0.0-pre-20160719" targetFramework="net46" />
|
||||
<package id="Autofac" version="3.5.2" targetFramework="net46" />
|
||||
<package id="JetBrains.Annotations" version="10.1.5" targetFramework="net46" />
|
||||
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net46" />
|
||||
<package id="Microsoft.CodeAnalysis.Common" version="1.3.2" targetFramework="net46" />
|
||||
<package id="Microsoft.CodeAnalysis.CSharp" version="1.3.2" targetFramework="net46" />
|
||||
<package id="Microsoft.CodeAnalysis.VisualBasic" version="1.3.2" targetFramework="net46" />
|
||||
<package id="System.AppContext" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Collections" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Collections.Concurrent" version="4.0.12" targetFramework="net46" />
|
||||
<package id="System.Collections.Immutable" version="1.2.0" targetFramework="net46" />
|
||||
<package id="System.Console" version="4.0.0" targetFramework="net46" />
|
||||
<package id="System.Diagnostics.Debug" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Diagnostics.FileVersionInfo" version="4.0.0" targetFramework="net46" />
|
||||
<package id="System.Diagnostics.StackTrace" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Diagnostics.Tools" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Dynamic.Runtime" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Globalization" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.IO.FileSystem" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.IO.FileSystem.Primitives" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Linq" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Linq.Expressions" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Reflection" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Reflection.Metadata" version="1.3.0" targetFramework="net46" />
|
||||
<package id="System.Reflection.Primitives" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Resources.ResourceManager" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Runtime" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Runtime.Extensions" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Runtime.Handles" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Runtime.InteropServices" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Runtime.Numerics" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Security.Cryptography.Algorithms" version="4.2.0" targetFramework="net46" />
|
||||
<package id="System.Security.Cryptography.Encoding" version="4.0.0" targetFramework="net46" />
|
||||
<package id="System.Security.Cryptography.Primitives" version="4.0.0" targetFramework="net46" />
|
||||
<package id="System.Security.Cryptography.X509Certificates" version="4.1.0" targetFramework="net46" />
|
||||
<package id="System.Text.Encoding" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Text.Encoding.CodePages" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Text.Encoding.Extensions" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Threading" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Threading.Tasks" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Threading.Tasks.Parallel" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Threading.Thread" version="4.0.0" targetFramework="net46" />
|
||||
<package id="System.ValueTuple" version="4.3.0" targetFramework="net46" />
|
||||
<package id="System.Xml.ReaderWriter" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Xml.XDocument" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Xml.XmlDocument" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Xml.XPath" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Xml.XPath.XDocument" version="4.0.1" targetFramework="net46" />
|
||||
</packages>
|
|
@ -10,13 +10,13 @@ using MirrorSharp;
|
|||
using MirrorSharp.Advanced;
|
||||
using MirrorSharp.Owin;
|
||||
using Owin;
|
||||
using TryRoslyn.Core.Compilation;
|
||||
using TryRoslyn.Core.Decompilation;
|
||||
using TryRoslyn.Web.Api;
|
||||
using TryRoslyn.Server;
|
||||
using TryRoslyn.Server.Compilation;
|
||||
using TryRoslyn.Server.Decompilation;
|
||||
|
||||
[assembly: OwinStartup(typeof(Startup), nameof(Startup.Configuration))]
|
||||
|
||||
namespace TryRoslyn.Web.Api {
|
||||
namespace TryRoslyn.Server {
|
||||
public class Startup {
|
||||
public void Configuration(IAppBuilder app) {
|
||||
var corsPolicyTask = Task.FromResult(new CorsPolicy {
|
||||
|
@ -60,10 +60,9 @@ namespace TryRoslyn.Web.Api {
|
|||
|
||||
private static IContainer CreateContainer() {
|
||||
var builder = new ContainerBuilder();
|
||||
var apiAssembly = Assembly.GetExecutingAssembly();
|
||||
var assembly = Assembly.GetExecutingAssembly();
|
||||
|
||||
builder.RegisterAssemblyModules(typeof(IDecompiler).Assembly);
|
||||
builder.RegisterAssemblyModules(apiAssembly);
|
||||
builder.RegisterAssemblyModules(assembly);
|
||||
|
||||
return builder.Build();
|
||||
}
|
|
@ -4,10 +4,10 @@ using System.Collections.Immutable;
|
|||
using System.Linq;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using TryRoslyn.Core.Compilation.Internal;
|
||||
using TryRoslyn.Server.Compilation.Internal;
|
||||
using Binder = Microsoft.CSharp.RuntimeBinder.Binder;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation {
|
||||
namespace TryRoslyn.Server.Compilation {
|
||||
public class CSharpSetup : ILanguageSetup {
|
||||
private static readonly LanguageVersion MaxLanguageVersion = Enum
|
||||
.GetValues(typeof (LanguageVersion))
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Immutable;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation {
|
||||
namespace TryRoslyn.Server.Compilation {
|
||||
public interface ILanguageSetup {
|
||||
string LanguageName { get; }
|
||||
ParseOptions GetParseOptions();
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Reflection;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation.Internal {
|
||||
namespace TryRoslyn.Server.Compilation.Internal {
|
||||
public class CSharpFeatureDiscovery : IFeatureDiscovery {
|
||||
public IReadOnlyCollection<string> SlowDiscoverAll() {
|
||||
var assembly = typeof(CSharpCompilation).Assembly;
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation.Internal {
|
||||
namespace TryRoslyn.Server.Compilation.Internal {
|
||||
public interface IFeatureDiscovery {
|
||||
IReadOnlyCollection<string> SlowDiscoverAll();
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
using System.Reflection;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation.Internal {
|
||||
namespace TryRoslyn.Server.Compilation.Internal {
|
||||
public interface IMetadataReferenceCollector {
|
||||
IEnumerable<MetadataReference> SlowGetMetadataReferencesRecursive(params Assembly[] assemblies);
|
||||
}
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Reflection;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation.Internal {
|
||||
namespace TryRoslyn.Server.Compilation.Internal {
|
||||
public class MetadataReferenceCollector : IMetadataReferenceCollector {
|
||||
public IEnumerable<MetadataReference> SlowGetMetadataReferencesRecursive(params Assembly[] assemblies) {
|
||||
foreach (var assembly in SlowCollectAllReferencedAssemblies(assemblies)) {
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Reflection;
|
||||
using Microsoft.CodeAnalysis.VisualBasic;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation.Internal {
|
||||
namespace TryRoslyn.Server.Compilation.Internal {
|
||||
public class VisualBasicFeatureDiscovery : IFeatureDiscovery {
|
||||
public IReadOnlyCollection<string> SlowDiscoverAll() {
|
||||
var assembly = typeof(VisualBasicCompilation).Assembly;
|
|
@ -5,9 +5,9 @@ using System.Linq;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.VisualBasic;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using TryRoslyn.Core.Compilation.Internal;
|
||||
using TryRoslyn.Server.Compilation.Internal;
|
||||
|
||||
namespace TryRoslyn.Core.Compilation {
|
||||
namespace TryRoslyn.Server.Compilation {
|
||||
public class VisualBasicSetup : ILanguageSetup {
|
||||
private static readonly LanguageVersion MaxLanguageVersion = Enum
|
||||
.GetValues(typeof(LanguageVersion))
|
|
@ -9,9 +9,9 @@ using ICSharpCode.Decompiler.Ast;
|
|||
using ICSharpCode.Decompiler.Ast.Transforms;
|
||||
using ICSharpCode.NRefactory.CSharp;
|
||||
using Mono.Cecil;
|
||||
using TryRoslyn.Core.Decompilation.Support;
|
||||
using TryRoslyn.Server.Decompilation.Support;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation {
|
||||
namespace TryRoslyn.Server.Decompilation {
|
||||
public abstract class AstDecompiler : IDecompiler {
|
||||
private static readonly ConcurrentDictionary<string, AssemblyDefinition> AssemblyCache = new ConcurrentDictionary<string, AssemblyDefinition>();
|
||||
|
|
@ -5,9 +5,9 @@ using System.Linq;
|
|||
using ICSharpCode.Decompiler;
|
||||
using ICSharpCode.NRefactory.CSharp;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using TryRoslyn.Core.Decompilation.Support;
|
||||
using TryRoslyn.Server.Decompilation.Support;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation {
|
||||
namespace TryRoslyn.Server.Decompilation {
|
||||
public class CSharpDecompiler : AstDecompiler {
|
||||
protected override void WriteResult(TextWriter writer, IEnumerable<AstNode> ast, DecompilerContext context) {
|
||||
var visitor = new DecompiledPseudoCSharpOutputVisitor(
|
|
@ -1,7 +1,7 @@
|
|||
using System.IO;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation {
|
||||
namespace TryRoslyn.Server.Decompilation {
|
||||
public interface IDecompiler {
|
||||
[NotNull] string LanguageName { get; }
|
||||
void Decompile([NotNull] Stream assemblyStream, [NotNull] TextWriter codeWriter);
|
|
@ -5,9 +5,9 @@ using System.Linq;
|
|||
using System.Threading;
|
||||
using ICSharpCode.Decompiler.Disassembler;
|
||||
using Mono.Cecil;
|
||||
using TryRoslyn.Core.Decompilation.Support;
|
||||
using TryRoslyn.Server.Decompilation.Support;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation {
|
||||
namespace TryRoslyn.Server.Decompilation {
|
||||
public class ILDecompiler : IDecompiler {
|
||||
public void Decompile(Stream assemblyStream, TextWriter codeWriter) {
|
||||
var assembly = AssemblyDefinition.ReadAssembly(assemblyStream);
|
|
@ -25,7 +25,7 @@ using ICSharpCode.NRefactory;
|
|||
// so any code issues in this file will be ignored.
|
||||
// ReSharper disable All
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation.Support {
|
||||
namespace TryRoslyn.Server.Decompilation.Support {
|
||||
public sealed class CustomizableIndentPlainTextOutput : ITextOutput {
|
||||
readonly TextWriter writer;
|
||||
int indent;
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using ICSharpCode.NRefactory.CSharp;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation.Support {
|
||||
namespace TryRoslyn.Server.Decompilation.Support {
|
||||
public class DecompiledPseudoCSharpOutputVisitor : OverridableCSharpOutputVisitor {
|
||||
private bool _currentStatementIsNotValidCSharp = false;
|
||||
|
|
@ -1,85 +1,85 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using AshMind.Extensions;
|
||||
using ICSharpCode.Decompiler;
|
||||
using ICSharpCode.NRefactory;
|
||||
using Mono.Cecil.Cil;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation.Support {
|
||||
public class ILCommentingTextOutput : ITextOutput {
|
||||
private readonly ITextOutput _inner;
|
||||
private readonly int _commentMinColumn;
|
||||
|
||||
private int _currentLineLength;
|
||||
private string _curentComment;
|
||||
|
||||
public ILCommentingTextOutput(ITextOutput inner, int commentMinColumn) {
|
||||
if (inner == null)
|
||||
throw new ArgumentNullException(nameof(inner));
|
||||
|
||||
_inner = inner;
|
||||
_commentMinColumn = commentMinColumn;
|
||||
}
|
||||
|
||||
public TextLocation Location => _inner.Location;
|
||||
|
||||
public void Indent() {
|
||||
_inner.Indent();
|
||||
}
|
||||
|
||||
public void Unindent() {
|
||||
_inner.Unindent();
|
||||
}
|
||||
|
||||
public void Write(char ch) {
|
||||
_inner.Write(ch);
|
||||
_currentLineLength += 1;
|
||||
}
|
||||
|
||||
public void Write(string text) {
|
||||
_inner.Write(text);
|
||||
_currentLineLength += text.Length;
|
||||
}
|
||||
|
||||
public void WriteLine() {
|
||||
WriteComment();
|
||||
_inner.WriteLine();
|
||||
_currentLineLength = 0;
|
||||
}
|
||||
|
||||
public void WriteDefinition(string text, object definition, bool isLocal = true) {
|
||||
_inner.WriteDefinition(text, definition, isLocal);
|
||||
_currentLineLength += text.Length;
|
||||
}
|
||||
|
||||
public void WriteReference(string text, object reference, bool isLocal = false) {
|
||||
UpdateCurrentCommentFrom(reference);
|
||||
_inner.WriteReference(text, reference, isLocal);
|
||||
_currentLineLength += text.Length;
|
||||
}
|
||||
|
||||
void ITextOutput.MarkFoldStart(string collapsedText, bool defaultCollapsed) => _inner.MarkFoldStart(collapsedText, defaultCollapsed);
|
||||
void ITextOutput.MarkFoldEnd() => _inner.MarkFoldEnd();
|
||||
void ITextOutput.AddDebuggerMemberMapping(MemberMapping memberMapping) => _inner.AddDebuggerMemberMapping(memberMapping);
|
||||
|
||||
private void UpdateCurrentCommentFrom(object reference) {
|
||||
if (!(reference is OpCode))
|
||||
return;
|
||||
|
||||
var comment = Comments.GetValueOrDefault((OpCode)reference);
|
||||
if (comment != null)
|
||||
_curentComment = comment;
|
||||
}
|
||||
|
||||
private void WriteComment() {
|
||||
if (_curentComment == null)
|
||||
return;
|
||||
|
||||
_inner.Write(new string(' ', Math.Max(_commentMinColumn - _currentLineLength, 1)));
|
||||
_inner.Write($"// {_curentComment}");
|
||||
_curentComment = null;
|
||||
}
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using AshMind.Extensions;
|
||||
using ICSharpCode.Decompiler;
|
||||
using ICSharpCode.NRefactory;
|
||||
using Mono.Cecil.Cil;
|
||||
|
||||
namespace TryRoslyn.Server.Decompilation.Support {
|
||||
public class ILCommentingTextOutput : ITextOutput {
|
||||
private readonly ITextOutput _inner;
|
||||
private readonly int _commentMinColumn;
|
||||
|
||||
private int _currentLineLength;
|
||||
private string _curentComment;
|
||||
|
||||
public ILCommentingTextOutput(ITextOutput inner, int commentMinColumn) {
|
||||
if (inner == null)
|
||||
throw new ArgumentNullException(nameof(inner));
|
||||
|
||||
_inner = inner;
|
||||
_commentMinColumn = commentMinColumn;
|
||||
}
|
||||
|
||||
public TextLocation Location => _inner.Location;
|
||||
|
||||
public void Indent() {
|
||||
_inner.Indent();
|
||||
}
|
||||
|
||||
public void Unindent() {
|
||||
_inner.Unindent();
|
||||
}
|
||||
|
||||
public void Write(char ch) {
|
||||
_inner.Write(ch);
|
||||
_currentLineLength += 1;
|
||||
}
|
||||
|
||||
public void Write(string text) {
|
||||
_inner.Write(text);
|
||||
_currentLineLength += text.Length;
|
||||
}
|
||||
|
||||
public void WriteLine() {
|
||||
WriteComment();
|
||||
_inner.WriteLine();
|
||||
_currentLineLength = 0;
|
||||
}
|
||||
|
||||
public void WriteDefinition(string text, object definition, bool isLocal = true) {
|
||||
_inner.WriteDefinition(text, definition, isLocal);
|
||||
_currentLineLength += text.Length;
|
||||
}
|
||||
|
||||
public void WriteReference(string text, object reference, bool isLocal = false) {
|
||||
UpdateCurrentCommentFrom(reference);
|
||||
_inner.WriteReference(text, reference, isLocal);
|
||||
_currentLineLength += text.Length;
|
||||
}
|
||||
|
||||
void ITextOutput.MarkFoldStart(string collapsedText, bool defaultCollapsed) => _inner.MarkFoldStart(collapsedText, defaultCollapsed);
|
||||
void ITextOutput.MarkFoldEnd() => _inner.MarkFoldEnd();
|
||||
void ITextOutput.AddDebuggerMemberMapping(MemberMapping memberMapping) => _inner.AddDebuggerMemberMapping(memberMapping);
|
||||
|
||||
private void UpdateCurrentCommentFrom(object reference) {
|
||||
if (!(reference is OpCode))
|
||||
return;
|
||||
|
||||
var comment = Comments.GetValueOrDefault((OpCode)reference);
|
||||
if (comment != null)
|
||||
_curentComment = comment;
|
||||
}
|
||||
|
||||
private void WriteComment() {
|
||||
if (_curentComment == null)
|
||||
return;
|
||||
|
||||
_inner.Write(new string(' ', Math.Max(_commentMinColumn - _currentLineLength, 1)));
|
||||
_inner.Write($"// {_curentComment}");
|
||||
_curentComment = null;
|
||||
}
|
||||
|
||||
private static readonly IReadOnlyDictionary<OpCode, string> Comments = new Dictionary<OpCode, string> {
|
||||
[OpCodes.Add] = "Add two values, returning a new value",
|
||||
[OpCodes.Add_Ovf] = "Add signed integer values with overflow check",
|
||||
|
@ -300,6 +300,6 @@ namespace TryRoslyn.Core.Decompilation.Support {
|
|||
[OpCodes.Unbox_Any] = "Extract a value-type from obj, its boxed representation",
|
||||
[OpCodes.Volatile] = "Subsequent pointer reference is volatile",
|
||||
[OpCodes.Xor] = "Bitwise XOR of integer values, returns an integer"
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
|
@ -33,7 +33,7 @@ using Attribute = ICSharpCode.NRefactory.CSharp.Attribute;
|
|||
// so any code issues in this file will be ignored.
|
||||
// ReSharper disable All
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation.Support {
|
||||
namespace TryRoslyn.Server.Decompilation.Support {
|
||||
/// <summary>
|
||||
/// Outputs the AST.
|
||||
/// </summary>
|
|
@ -25,7 +25,7 @@ using ICSharpCode.NRefactory.CSharp;
|
|||
using ICSharpCode.NRefactory.PatternMatching;
|
||||
using Mono.Cecil;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation.Support {
|
||||
namespace TryRoslyn.Server.Decompilation.Support {
|
||||
// This is mostly a copy of ConvertConstructorCallIntoInitializer from Decompiler library.
|
||||
// However it is simplified so that it does not try to use field initializers, as that can not be
|
||||
// correctly represented for primary constructor decompilation.
|
|
@ -6,10 +6,10 @@ using ICSharpCode.NRefactory.CSharp;
|
|||
using ICSharpCode.NRefactory.VB;
|
||||
using ICSharpCode.NRefactory.VB.Visitors;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using TryRoslyn.Core.Decompilation.Support;
|
||||
using TryRoslyn.Server.Decompilation.Support;
|
||||
using AstNode = ICSharpCode.NRefactory.CSharp.AstNode;
|
||||
|
||||
namespace TryRoslyn.Core.Decompilation {
|
||||
namespace TryRoslyn.Server.Decompilation {
|
||||
public class VisualBasicDecompiler : AstDecompiler {
|
||||
protected override void WriteResult(TextWriter writer, IEnumerable<AstNode> ast, DecompilerContext context) {
|
||||
var converter = new CSharpToVBConverterVisitor(new ILSpyEnvironmentProvider());
|
|
@ -1,6 +1,6 @@
|
|||
using MirrorSharp.Advanced;
|
||||
|
||||
namespace TryRoslyn.Web.Api.Integration {
|
||||
namespace TryRoslyn.Server.MirrorSharp {
|
||||
public class SetOptionsFromClient : ISetOptionsFromClientExtension {
|
||||
private const string TargetLanguage = "x-target-language";
|
||||
|
|
@ -6,9 +6,9 @@ using System.Threading.Tasks;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.IO;
|
||||
using MirrorSharp.Advanced;
|
||||
using TryRoslyn.Core.Decompilation;
|
||||
using TryRoslyn.Server.Decompilation;
|
||||
|
||||
namespace TryRoslyn.Web.Api.Integration {
|
||||
namespace TryRoslyn.Server.MirrorSharp {
|
||||
public class SlowUpdate : ISlowUpdateExtension {
|
||||
private readonly IReadOnlyCollection<IDecompiler> _decompilers;
|
||||
private readonly RecyclableMemoryStreamManager _memoryStreamManager;
|
|
@ -1,7 +1,7 @@
|
|||
using AshMind.Extensions;
|
||||
using MirrorSharp.Advanced;
|
||||
|
||||
namespace TryRoslyn.Web.Api.Integration {
|
||||
namespace TryRoslyn.Server.MirrorSharp {
|
||||
public static class WorkSessionExtensions {
|
||||
public static string GetTargetLanguageName(this IWorkSession session) {
|
||||
return (string)session.ExtensionData.GetValueOrDefault("TargetLanguageName");
|
|
@ -12,8 +12,8 @@
|
|||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TryRoslyn.Web.Api</RootNamespace>
|
||||
<AssemblyName>TryRoslyn.Web.Api</AssemblyName>
|
||||
<RootNamespace>TryRoslyn.Server</RootNamespace>
|
||||
<AssemblyName>TryRoslyn.Server</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
|
@ -51,6 +51,26 @@
|
|||
<HintPath>..\#packages\Autofac.3.5.2\lib\net40\Autofac.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.Decompiler, Version=2.1.0.1663, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\#libraries\ICSharpCode.Decompiler.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.NRefactory, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\#libraries\ICSharpCode.NRefactory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.NRefactory.CSharp, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\#libraries\ICSharpCode.NRefactory.CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.NRefactory.VB, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\#libraries\ICSharpCode.NRefactory.VB.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ILSpy, Version=2.1.0.1663, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\#libraries\ILSpy.exe</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="JetBrains.Annotations, Version=10.1.5.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\JetBrains.Annotations.10.1.5\lib\net\JetBrains.Annotations.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
|
@ -108,6 +128,7 @@
|
|||
<HintPath>..\#packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualBasic" />
|
||||
<Reference Include="MirrorSharp.Common, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\MirrorSharp.Common.0.9.0-pre-20170103\lib\net45\MirrorSharp.Common.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
|
@ -116,6 +137,10 @@
|
|||
<HintPath>..\#packages\MirrorSharp.Owin.0.9.0-pre-20170103\lib\net45\MirrorSharp.Owin.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\#libraries\Mono.Cecil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
|
@ -205,6 +230,10 @@
|
|||
<HintPath>..\#packages\System.Threading.Thread.4.0.0\lib\net46\System.Threading.Thread.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Cors, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\#packages\Microsoft.AspNet.Cors.5.2.3\lib\net45\System.Web.Cors.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
|
@ -243,11 +272,29 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App_Start\Startup.cs" />
|
||||
<Compile Include="Integration\SetOptionsFromClient.cs" />
|
||||
<Compile Include="Integration\SlowUpdate.cs" />
|
||||
<Compile Include="Integration\WorkSessionExtensions.cs" />
|
||||
<Compile Include="Compilation\CSharpSetup.cs" />
|
||||
<Compile Include="Compilation\ILanguageSetup.cs" />
|
||||
<Compile Include="Compilation\Internal\CSharpFeatureDiscovery.cs" />
|
||||
<Compile Include="Compilation\Internal\IFeatureDiscovery.cs" />
|
||||
<Compile Include="Compilation\Internal\IMetadataReferenceCollector.cs" />
|
||||
<Compile Include="Compilation\Internal\MetadataReferenceCollector.cs" />
|
||||
<Compile Include="Compilation\Internal\VisualBasicFeatureDiscovery.cs" />
|
||||
<Compile Include="Compilation\VisualBasicSetup.cs" />
|
||||
<Compile Include="ServerModule.cs" />
|
||||
<Compile Include="Decompilation\AstDecompiler.cs" />
|
||||
<Compile Include="Decompilation\CSharpDecompiler.cs" />
|
||||
<Compile Include="Decompilation\IDecompiler.cs" />
|
||||
<Compile Include="Decompilation\ILDecompiler.cs" />
|
||||
<Compile Include="Decompilation\Support\CustomizableIndentPlainTextOutput.cs" />
|
||||
<Compile Include="Decompilation\Support\DecompiledPseudoCSharpOutputVisitor.cs" />
|
||||
<Compile Include="Decompilation\Support\ILCommentingTextOutput.cs" />
|
||||
<Compile Include="Decompilation\Support\OverridableCSharpOutputVisitor.cs" />
|
||||
<Compile Include="Decompilation\Support\RoslynFriendlyConvertConstructorCallIntoInitializer.cs" />
|
||||
<Compile Include="Decompilation\VisualBasicDecompiler.cs" />
|
||||
<Compile Include="MirrorSharp\SetOptionsFromClient.cs" />
|
||||
<Compile Include="MirrorSharp\SlowUpdate.cs" />
|
||||
<Compile Include="MirrorSharp\WorkSessionExtensions.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="WebApiModule.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config" />
|
||||
|
@ -258,12 +305,6 @@
|
|||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Core\Core.csproj">
|
||||
<Project>{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}</Project>
|
||||
<Name>Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Analyzer Include="..\#packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
|
||||
<Analyzer Include="..\#packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
|
|
@ -2,13 +2,16 @@
|
|||
using Autofac.Core;
|
||||
using JetBrains.Annotations;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using TryRoslyn.Core.Compilation;
|
||||
using TryRoslyn.Core.Compilation.Internal;
|
||||
using TryRoslyn.Core.Decompilation;
|
||||
using Microsoft.IO;
|
||||
using MirrorSharp.Advanced;
|
||||
using TryRoslyn.Server.Compilation;
|
||||
using TryRoslyn.Server.Compilation.Internal;
|
||||
using TryRoslyn.Server.Decompilation;
|
||||
using TryRoslyn.Server.MirrorSharp;
|
||||
|
||||
namespace TryRoslyn.Core {
|
||||
namespace TryRoslyn.Server {
|
||||
[UsedImplicitly]
|
||||
public class CoreModule : Module {
|
||||
public class ServerModule : Module {
|
||||
protected override void Load(ContainerBuilder builder) {
|
||||
builder.RegisterType<MetadataReferenceCollector>()
|
||||
.As<IMetadataReferenceCollector>()
|
||||
|
@ -35,6 +38,17 @@ namespace TryRoslyn.Core {
|
|||
builder.RegisterType<CSharpDecompiler>().As<IDecompiler>().SingleInstance();
|
||||
builder.RegisterType<VisualBasicDecompiler>().As<IDecompiler>().SingleInstance();
|
||||
builder.RegisterType<ILDecompiler>().As<IDecompiler>().SingleInstance();
|
||||
|
||||
builder.RegisterInstance(new RecyclableMemoryStreamManager())
|
||||
.AsSelf();
|
||||
|
||||
builder.RegisterType<SlowUpdate>()
|
||||
.As<ISlowUpdateExtension>()
|
||||
.SingleInstance();
|
||||
|
||||
builder.RegisterType<SetOptionsFromClient>()
|
||||
.As<ISetOptionsFromClientExtension>()
|
||||
.SingleInstance();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -59,6 +59,7 @@
|
|||
<package id="System.Threading.Tasks" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Threading.Tasks.Parallel" version="4.0.1" targetFramework="net46" />
|
||||
<package id="System.Threading.Thread" version="4.0.0" targetFramework="net46" />
|
||||
<package id="System.ValueTuple" version="4.3.0" targetFramework="net46" />
|
||||
<package id="System.Xml.ReaderWriter" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Xml.XDocument" version="4.0.11" targetFramework="net46" />
|
||||
<package id="System.Xml.XmlDocument" version="4.0.1" targetFramework="net46" />
|
|
@ -5,7 +5,7 @@ using AshMind.Extensions;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using MirrorSharp.Testing;
|
||||
using Pedantic.IO;
|
||||
using TryRoslyn.Web.Api;
|
||||
using TryRoslyn.Server;
|
||||
using Xunit;
|
||||
|
||||
namespace TryRoslyn.Tests {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using TryRoslyn.Core.Compilation.Internal;
|
||||
using TryRoslyn.Server.Compilation.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace TryRoslyn.Tests {
|
||||
|
|
|
@ -236,13 +236,9 @@
|
|||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Core\Core.csproj">
|
||||
<Project>{e2b74c8d-aa27-4fdd-8dbb-c4e8495a2e7e}</Project>
|
||||
<Name>Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Web.Api\Web.Api.csproj">
|
||||
<ProjectReference Include="..\Server\Server.csproj">
|
||||
<Project>{9BF5DBE2-0B1C-4D38-91DD-37B7E59C62D7}</Project>
|
||||
<Name>Web.Api</Name>
|
||||
<Name>Server</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25123.0
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web", "Web\Web.csproj", "{8C5359F9-5A55-4078-AFB6-E524321DA6C3}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApp", "WebApp\WebApp.csproj", "{8C5359F9-5A55-4078-AFB6-E524321DA6C3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{893C58AA-1444-46EF-A003-FAFECA67C17C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web.Api", "Web.Api\Web.Api.csproj", "{9BF5DBE2-0B1C-4D38-91DD-37B7E59C62D7}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{9BF5DBE2-0B1C-4D38-91DD-37B7E59C62D7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -25,10 +23,6 @@ Global
|
|||
{893C58AA-1444-46EF-A003-FAFECA67C17C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{893C58AA-1444-46EF-A003-FAFECA67C17C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{893C58AA-1444-46EF-A003-FAFECA67C17C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E2B74C8D-AA27-4FDD-8DBB-C4E8495A2E7E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9BF5DBE2-0B1C-4D38-91DD-37B7E59C62D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9BF5DBE2-0B1C-4D38-91DD-37B7E59C62D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9BF5DBE2-0B1C-4D38-91DD-37B7E59C62D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
|
@ -1,31 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
|
@ -1,23 +0,0 @@
|
|||
using Autofac;
|
||||
using JetBrains.Annotations;
|
||||
using Microsoft.IO;
|
||||
using MirrorSharp.Advanced;
|
||||
using TryRoslyn.Web.Api.Integration;
|
||||
|
||||
namespace TryRoslyn.Web.Api {
|
||||
[UsedImplicitly]
|
||||
public class WebApiModule : Module {
|
||||
protected override void Load(ContainerBuilder builder) {
|
||||
builder.RegisterInstance(new RecyclableMemoryStreamManager())
|
||||
.AsSelf();
|
||||
|
||||
builder.RegisterType<SlowUpdate>()
|
||||
.As<ISlowUpdateExtension>()
|
||||
.SingleInstance();
|
||||
|
||||
builder.RegisterType<SetOptionsFromClient>()
|
||||
.As<ISetOptionsFromClientExtension>()
|
||||
.SingleInstance();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,8 +11,8 @@
|
|||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TryRoslyn.Web</RootNamespace>
|
||||
<AssemblyName>TryRoslyn.Web</AssemblyName>
|
||||
<RootNamespace>TryRoslyn.WebApp</RootNamespace>
|
||||
<AssemblyName>TryRoslyn.WebApp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
|
@ -242,9 +242,9 @@
|
|||
<Analyzer Include="..\#packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Web.Api\Web.Api.csproj">
|
||||
<ProjectReference Include="..\Server\Server.csproj">
|
||||
<Project>{9bf5dbe2-0b1c-4d38-91dd-37b7e59c62d7}</Project>
|
||||
<Name>Web.Api</Name>
|
||||
<Name>Server</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
До Ширина: | Высота: | Размер: 1.0 KiB После Ширина: | Высота: | Размер: 1.0 KiB |
|
@ -117,8 +117,4 @@ async function createAppAsync() {
|
|||
data.loading = true;
|
||||
data.serviceUrl = getServiceUrl(value);
|
||||
});
|
||||
|
||||
/*for (let name of ['options', 'branch']) {
|
||||
ui.watch(name, () => app.processChangeAsync(), { deep: true });
|
||||
}*/
|
||||
})();
|
Загрузка…
Ссылка в новой задаче