-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lab: Add third solution to Roslyn Dependencies at Build and Runtime
- Loading branch information
Showing
41 changed files
with
1,455 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
lab/RoslynDependenciesAtBuildAndRuntime/solution-03/AssemblyInfo.Common.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Reflection; | ||
using System.Resources; | ||
using System.Runtime.InteropServices; | ||
|
||
[assembly: ComVisible(false)] | ||
[assembly: CLSCompliant(false)] | ||
|
||
[assembly: AssemblyCompany(AssemblyDescription.Company)] | ||
[assembly: AssemblyTrademark(AssemblyDescription.Trademark)] | ||
[assembly: AssemblyCopyright(AssemblyDescription.Copyright)] | ||
|
||
[assembly: AssemblyConfiguration(AssemblyDescription.Configuration)] | ||
|
||
[assembly: AssemblyTitle(AssemblyDescription.Title)] | ||
[assembly: AssemblyProduct(AssemblyDescription.Product)] | ||
[assembly: AssemblyDescription(AssemblyDescription.Description)] | ||
|
||
[assembly: AssemblyVersion(AssemblyDescription.Version)] | ||
// We will not set the AssemblyFileVersion explicitly. This will automatically make it same as the AssemblyVersion. | ||
[assembly: AssemblyInformationalVersion(AssemblyDescription.InformationalVersion)] | ||
|
||
[assembly: AssemblyCulture(AssemblyDescription.Culture)] | ||
[assembly: NeutralResourcesLanguage("en-US")] | ||
|
||
|
||
internal static partial class AssemblyDescription | ||
{ | ||
public const string Company = "Igor Rončević"; | ||
public const string Trademark = ""; | ||
public const string Copyright = "Copyright © 2019 " + Company; | ||
public const string Product = "Sharpen Lab - Roslyn Dependencies"; | ||
|
||
public const string Culture = ""; | ||
|
||
public const string Version = "0.1.0"; | ||
|
||
public const string Configuration = | ||
#if DEBUG | ||
"Debug" | ||
#else | ||
"Release" | ||
#endif | ||
; | ||
} |
Binary file added
BIN
+596 Bytes
lab/RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.2_10_0_0/Key.snk
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
...nciesAtBuildAndRuntime/solution-03/Sharpen.Engine.2_10_0_0/Sharpen.Engine.2_10_0_0.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>Sharpen.Engine</RootNamespace> | ||
<AssemblyName>Sharpen.Engine.2_10_0_0</AssemblyName> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
<DelaySign>false</DelaySign> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Sharpen.Engine\SharpenEngine.cs" Link="SharpenEngine.cs" /> | ||
<Compile Include="..\Sharpen.Engine\SomeSharpenEngineInterfaceImplementation.cs" Link="SomeSharpenEngineInterfaceImplementation.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="2.10.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.10.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.10.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpen.Engine.Abstractions\Sharpen.Engine.Abstractions.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
15 changes: 15 additions & 0 deletions
15
...ime/solution-03/Sharpen.Engine.2_10_0_0/SomeSharpenEngineInterfaceImplementation.Local.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Microsoft.CodeAnalysis; | ||
using System.Reflection; | ||
|
||
namespace Sharpen.Engine | ||
{ | ||
public partial class SomeSharpenEngineInterfaceImplementation | ||
{ | ||
private string DoSomethingWithNullableReferenceTypes(SyntaxTree syntaxTree) | ||
{ | ||
return | ||
$"This code is dynamically loaded from the assembly {Assembly.GetExecutingAssembly().FullName}.\n" + | ||
"In this version nullable reference types do not exist, but it is a version newer then our oldest supported version."; | ||
} | ||
} | ||
} |
Binary file added
BIN
+596 Bytes
lab/RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.2_4_0_0/Key.snk
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
...pendenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.2_4_0_0/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("Sharpen.Engine.Tests.Unit, PublicKey=0024000004800000940000000602000000240000525341310004000001000100614b19b4a82745f9909f03d76cd0b8fe17e00e7bcc1e44a7e8b1a80a23e6b9769b826cb4386f3747d32dcdffe8b77820f2dc3b5717e9a64e1f7e43d8eefec8b7f9f1b7510336c1ffdd35be5638b9f83269e72baa31e66f661c87c6480a4045f0504eb7b4aeac680cded36143b9fba53ca83901054deb08df0bda05db06d74bbb")] | ||
// ReSharper disable CheckNamespace | ||
internal static partial class AssemblyDescription | ||
{ | ||
public const string Title = "Sharpen Lab - Roslyn Dependencies"; | ||
|
||
public const string Description = "Investigates the Roslyn dependencies at build and runtime in various versions of Visual Studio."; | ||
|
||
public const string InformationalVersion = Version; | ||
} | ||
// ReSharper restore CheckNamespace |
28 changes: 28 additions & 0 deletions
28
...denciesAtBuildAndRuntime/solution-03/Sharpen.Engine.2_4_0_0/Sharpen.Engine.2_4_0_0.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>Sharpen.Engine</RootNamespace> | ||
<LangVersion>7.3</LangVersion> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
<DelaySign>false</DelaySign> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\AssemblyInfo.Common.cs" Link="Properties\AssemblyInfo.Common.cs" /> | ||
<Compile Include="..\Sharpen.Engine\SharpenEngine.cs" Link="SharpenEngine.cs" /> | ||
<Compile Include="..\Sharpen.Engine\SomeSharpenEngineInterfaceImplementation.cs" Link="SomeSharpenEngineInterfaceImplementation.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.4.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.4.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpen.Engine.Abstractions\Sharpen.Engine.Abstractions.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
15 changes: 15 additions & 0 deletions
15
...time/solution-03/Sharpen.Engine.2_4_0_0/SomeSharpenEngineInterfaceImplementation.Local.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Microsoft.CodeAnalysis; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Sharpen.Engine | ||
{ | ||
public partial class SomeSharpenEngineInterfaceImplementation | ||
{ | ||
private string DoSomethingWithNullableReferenceTypes(SyntaxTree syntaxTree) | ||
{ | ||
return "In this version nullable reference types do not exist."; | ||
} | ||
} | ||
} |
Binary file added
BIN
+596 Bytes
lab/RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.3_0_0_0/Key.snk
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
...denciesAtBuildAndRuntime/solution-03/Sharpen.Engine.3_0_0_0/Sharpen.Engine.3_0_0_0.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>Sharpen.Engine</RootNamespace> | ||
<AssemblyName>Sharpen.Engine.3_0_0_0</AssemblyName> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Sharpen.Engine\SharpenEngine.cs" Link="SharpenEngine.cs" /> | ||
<Compile Include="..\Sharpen.Engine\SomeSharpenEngineInterfaceImplementation.cs" Link="SomeSharpenEngineInterfaceImplementation.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.0.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.0.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpen.Engine.Abstractions\Sharpen.Engine.Abstractions.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
22 changes: 22 additions & 0 deletions
22
...time/solution-03/Sharpen.Engine.3_0_0_0/SomeSharpenEngineInterfaceImplementation.Local.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Microsoft.CodeAnalysis; | ||
using Microsoft.CodeAnalysis.CSharp; | ||
using System.Linq; | ||
using System.Reflection; | ||
|
||
namespace Sharpen.Engine | ||
{ | ||
public partial class SomeSharpenEngineInterfaceImplementation | ||
{ | ||
private string DoSomethingWithNullableReferenceTypes(SyntaxTree syntaxTree) | ||
{ | ||
var count = syntaxTree.GetRoot() | ||
.DescendantNodes() | ||
.Where(node => node.IsKind(SyntaxKind.NullableDirectiveTrivia) || node.IsKind(SyntaxKind.NullableKeyword) || node.IsKind(SyntaxKind.SuppressNullableWarningExpression)) | ||
.Count(); | ||
|
||
return | ||
$"This code is dynamically loaded from the assembly {Assembly.GetExecutingAssembly().FullName}.\n" + | ||
$"Found {count} nodes that have something to do with nullable reference types."; | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.Abstractions/ISharpenEngine.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Sharpen.Engine.Abstractions | ||
{ | ||
public interface ISharpenEngine | ||
{ | ||
ISomeSharpenEngineInterface SomeSharpenEngineInterface { get; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...sAtBuildAndRuntime/solution-03/Sharpen.Engine.Abstractions/ISomeSharpenEngineInterface.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Sharpen.Engine.Abstractions | ||
{ | ||
public interface ISomeSharpenEngineInterface | ||
{ | ||
string DoSomethingWithTheSyntaxTree(SyntaxTree syntaxTree); | ||
} | ||
} |
Binary file added
BIN
+596 Bytes
lab/RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.Abstractions/Key.snk
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
...uildAndRuntime/solution-03/Sharpen.Engine.Abstractions/Sharpen.Engine.Abstractions.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.4.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.4.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Binary file added
BIN
+596 Bytes
...oslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.Tests.Unit.2_10_0_0/Key.snk
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
.../solution-03/Sharpen.Engine.Tests.Unit.2_10_0_0/Sharpen.Engine.Tests.Unit.2_10_0_0.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
|
||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
|
||
<AssemblyName>Sharpen.Engine.Tests.Unit</AssemblyName> | ||
|
||
<RootNamespace>Sharpen.Engine.Tests.Unit</RootNamespace> | ||
|
||
<SignAssembly>true</SignAssembly> | ||
|
||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
|
||
<LangVersion>7.3</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Sharpen.Engine.Tests.Unit\SomeSharpenEngineClassTests.cs" Link="SomeSharpenEngineClassTests.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="nunit" Version="3.11.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpen.Engine.2_10_0_0\Sharpen.Engine.2_10_0_0.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Binary file added
BIN
+596 Bytes
...RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.Tests.Unit.2_4_0_0/Key.snk
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
...me/solution-03/Sharpen.Engine.Tests.Unit.2_4_0_0/Sharpen.Engine.Tests.Unit.2_4_0_0.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
|
||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
|
||
<AssemblyName>Sharpen.Engine.Tests.Unit</AssemblyName> | ||
|
||
<RootNamespace>Sharpen.Engine.Tests.Unit</RootNamespace> | ||
|
||
<SignAssembly>true</SignAssembly> | ||
|
||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
|
||
<LangVersion>7.3</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Sharpen.Engine.Tests.Unit\SomeSharpenEngineClassTests.cs" Link="SomeSharpenEngineClassTests.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="nunit" Version="3.11.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpen.Engine.2_4_0_0\Sharpen.Engine.2_4_0_0.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Binary file added
BIN
+596 Bytes
...RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine.Tests.Unit.3_0_0_0/Key.snk
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
...me/solution-03/Sharpen.Engine.Tests.Unit.3_0_0_0/Sharpen.Engine.Tests.Unit.3_0_0_0.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
|
||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
|
||
<AssemblyName>Sharpen.Engine.Tests.Unit</AssemblyName> | ||
|
||
<RootNamespace>Sharpen.Engine.Tests.Unit</RootNamespace> | ||
|
||
<SignAssembly>true</SignAssembly> | ||
|
||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
|
||
<LangVersion>7.3</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Sharpen.Engine.Tests.Unit\SomeSharpenEngineClassTests.cs" Link="SomeSharpenEngineClassTests.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="nunit" Version="3.11.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpen.Engine.3_0_0_0\Sharpen.Engine.3_0_0_0.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
20 changes: 20 additions & 0 deletions
20
...iesAtBuildAndRuntime/solution-03/Sharpen.Engine.Tests.Unit/SomeSharpenEngineClassTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using Microsoft.CodeAnalysis.CSharp; | ||
using NUnit.Framework; | ||
|
||
namespace Sharpen.Engine.Tests.Unit | ||
{ | ||
[TestFixture] | ||
class SomeSharpenEngineClassTests | ||
{ | ||
[Test] | ||
public void DoSomethingWithASyntaxTreeTest() | ||
{ | ||
const string code = @"class C { }"; | ||
|
||
var output = new SharpenEngine().SomeSharpenEngineInterface.DoSomethingWithTheSyntaxTree(CSharpSyntaxTree.ParseText(code)); | ||
|
||
Console.WriteLine(output); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
lab/RoslynDependenciesAtBuildAndRuntime/solution-03/Sharpen.Engine/SharpenEngine.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Sharpen.Engine.Abstractions; | ||
|
||
namespace Sharpen.Engine | ||
{ | ||
public class SharpenEngine : ISharpenEngine | ||
{ | ||
public ISomeSharpenEngineInterface SomeSharpenEngineInterface => new SomeSharpenEngineInterfaceImplementation(); | ||
} | ||
} |
Oops, something went wrong.