Skip to content

Commit e850973

Browse files
authored
Enable Microsoft.CodeAnalysis in roslyn (#1872)
It's needed by roslyn-analyzer.
1 parent 51c7b0a commit e850973

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From eee8808e3b9ebb9ec66835858b1ad46ec8d5688f Mon Sep 17 00:00:00 2001
2+
From: Omair Majid <[email protected]>
3+
Date: Mon, 9 Nov 2020 18:43:03 -0500
4+
Subject: [PATCH] Build Microsoft.CodeAnalysis for source-build
5+
6+
---
7+
src/NuGet/Microsoft.CodeAnalysis.Package.csproj | 4 +++-
8+
1 file changed, 3 insertions(+), 1 deletion(-)
9+
10+
diff --git a/src/NuGet/Microsoft.CodeAnalysis.Package.csproj b/src/NuGet/Microsoft.CodeAnalysis.Package.csproj
11+
index ac7d9993db0..a25843f0e1c 100644
12+
--- a/src/NuGet/Microsoft.CodeAnalysis.Package.csproj
13+
+++ b/src/NuGet/Microsoft.CodeAnalysis.Package.csproj
14+
@@ -2,11 +2,13 @@
15+
<Project Sdk="Microsoft.NET.Sdk">
16+
<PropertyGroup>
17+
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
18+
+ <TargetFrameworks Condition="'$(DotNetBuildFromSource)' == 'true'">netstandard2.0</TargetFrameworks>
19+
20+
<!-- NuGet -->
21+
<IsPackable>true</IsPackable>
22+
<PackageId>Microsoft.CodeAnalysis</PackageId>
23+
<IncludeBuildOutput>false</IncludeBuildOutput>
24+
+ <ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>
25+
<PackageDescription>
26+
.NET Compiler Platform ("Roslyn").
27+
28+
@@ -25,4 +27,4 @@
29+
<ProjectReference Include="..\Workspaces\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Workspaces.csproj" />
30+
<ProjectReference Include="..\Workspaces\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj" />
31+
</ItemGroup>
32+
-</Project>
33+
\ No newline at end of file
34+
+</Project>
35+
--
36+
2.26.2
37+

0 commit comments

Comments
 (0)