Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
bc517499
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bc517499
编写于
7月 08, 2020
作者:
G
Gen Lu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Targeting Remote.ServiceHub project to .Net Core
上级
232d7eab
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
26 addition
and
13 deletion
+26
-13
src/Features/LanguageServer/Protocol/Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj
...col/Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj
+9
-2
src/VisualStudio/Core/Def/Implementation/Watson/WatsonReporter.cs
...alStudio/Core/Def/Implementation/Watson/WatsonReporter.cs
+4
-4
src/Workspaces/Remote/ServiceHub/Microsoft.CodeAnalysis.Remote.ServiceHub.csproj
...erviceHub/Microsoft.CodeAnalysis.Remote.ServiceHub.csproj
+10
-4
src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs
...orkspaces/Remote/ServiceHub/Services/RemoteHostService.cs
+2
-2
src/Workspaces/Remote/ServiceHub/Shared/RemoteEndPoint.cs
src/Workspaces/Remote/ServiceHub/Shared/RemoteEndPoint.cs
+1
-1
未找到文件。
src/Features/LanguageServer/Protocol/Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj
浏览文件 @
bc517499
...
...
@@ -4,7 +4,11 @@
<PropertyGroup>
<OutputType>
Library
</OutputType>
<RootNamespace>
Microsoft.CodeAnalysis.LanguageServer
</RootNamespace>
<TargetFramework>
net472
</TargetFramework>
<TargetFrameworks>
netcoreapp3.1;net472
</TargetFrameworks>
<!-- Workaround dependencies that do not yet support netcoreapp3.1 https://github.com/dotnet/roslyn/issues/45114 -->
<NoWarn>
NU1701;$(NoWarn)
</NoWarn>
<AssetTargetFallback
Condition=
"'$(TargetFramework)' == 'netcoreapp3.1'"
>
net472;$(AssetTargetFallback)
</AssetTargetFallback>
<IsPackable>
true
</IsPackable>
<PackageDescription>
...
...
@@ -18,7 +22,7 @@
</ItemGroup>
<ItemGroup>
<
Reference
Include=
"System.ComponentModel.Composition
"
/>
<
PackageReference
Include=
"Microsoft.VisualStudio.LanguageServer.Protocol"
Version=
"$(MicrosoftVisualStudioLanguageServerProtocolVersion)
"
/>
<PackageReference
Include=
"Microsoft.VisualStudio.LanguageServer.Protocol.Extensions"
Version=
"$(MicrosoftVisualStudioLanguageServerProtocolExtensionsVersion)"
/>
<PackageReference
Include=
"StreamJsonRpc"
Version=
"$(StreamJsonRpcVersion)"
/>
<PackageReference
Include=
"Newtonsoft.Json"
Version=
"$(NewtonsoftJsonVersion)"
/>
...
...
@@ -26,6 +30,9 @@
<PackageReference
Include=
"Microsoft.VisualStudio.Text.UI"
Version=
"$(MicrosoftVisualStudioTextUIVersion)"
/>
<PackageReference
Include=
"Microsoft.VisualStudio.Threading"
Version=
"$(MicrosoftVisualStudioThreadingVersion)"
/>
</ItemGroup>
<ItemGroup
Condition=
"'$(TargetFramework)' == 'net472'"
>
<Reference
Include=
"System.ComponentModel.Composition"
/>
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests"
/>
...
...
src/VisualStudio/Core/Def/Implementation/Watson/WatsonReporter.cs
浏览文件 @
bc517499
...
...
@@ -36,9 +36,9 @@ public static void InitializeFatalErrorHandlers(TelemetrySession session)
// We also must set the FailFast handler for the compiler layer as well
var
compilerAssembly
=
typeof
(
Compilation
).
Assembly
;
var
compilerFatalErrorType
=
compilerAssembly
.
GetType
(
"Microsoft.CodeAnalysis.FatalError"
,
throwOnError
:
true
);
var
compilerFatalErrorHandlerProperty
=
compilerFatalErrorType
.
GetProperty
(
nameof
(
FatalError
.
Handler
),
BindingFlags
.
Static
|
BindingFlags
.
Public
);
var
compilerNonFatalErrorHandlerProperty
=
compilerFatalErrorType
.
GetProperty
(
nameof
(
FatalError
.
NonFatalHandler
),
BindingFlags
.
Static
|
BindingFlags
.
Public
);
var
compilerFatalErrorType
=
compilerAssembly
.
GetType
(
"Microsoft.CodeAnalysis.FatalError"
,
throwOnError
:
true
)
!
;
var
compilerFatalErrorHandlerProperty
=
compilerFatalErrorType
.
GetProperty
(
nameof
(
FatalError
.
Handler
),
BindingFlags
.
Static
|
BindingFlags
.
Public
)
!
;
var
compilerNonFatalErrorHandlerProperty
=
compilerFatalErrorType
.
GetProperty
(
nameof
(
FatalError
.
NonFatalHandler
),
BindingFlags
.
Static
|
BindingFlags
.
Public
)
!
;
compilerFatalErrorHandlerProperty
.
SetValue
(
null
,
fatalReporter
);
compilerNonFatalErrorHandlerProperty
.
SetValue
(
null
,
nonFatalReporter
);
}
...
...
@@ -128,7 +128,7 @@ private static string GetDescription(Exception exception)
// walk up the stack looking for the first call from a type that isn't in the ErrorReporting namespace.
foreach
(
var
frame
in
new
StackTrace
(
exception
).
GetFrames
())
{
var
method
=
frame
.
GetMethod
();
var
method
=
frame
?
.
GetMethod
();
var
methodName
=
method
?.
Name
;
if
(
methodName
==
null
)
continue
;
...
...
src/Workspaces/Remote/ServiceHub/Microsoft.CodeAnalysis.Remote.ServiceHub.csproj
浏览文件 @
bc517499
...
...
@@ -4,9 +4,13 @@
<PropertyGroup>
<OutputType>
Library
</OutputType>
<RootNamespace>
Microsoft.CodeAnalysis.Remote
</RootNamespace>
<TargetFramework
>
net472
</TargetFramework
>
<TargetFramework
s>
netcoreapp3.1;net472
</TargetFrameworks
>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<!-- Workaround dependencies that do not yet support netcoreapp3.1 https://github.com/dotnet/roslyn/issues/45114 -->
<NoWarn>
NU1701;$(NoWarn)
</NoWarn>
<AssetTargetFallback
Condition=
"'$(TargetFramework)' == 'netcoreapp3.1'"
>
net472;$(AssetTargetFallback)
</AssetTargetFallback>
<!-- NuGet -->
<IsPackable>
true
</IsPackable>
<PackageDescription>
...
...
@@ -23,9 +27,6 @@
<ProjectReference
Include=
"..\Core\Microsoft.CodeAnalysis.Remote.Workspaces.csproj"
/>
</ItemGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.ComponentModel.Composition"
/>
<Reference
Include=
"System.Core"
/>
<PackageReference
Include=
"StreamJsonRpc"
Version=
"$(StreamJsonRpcVersion)"
/>
<PackageReference
Include=
"Newtonsoft.Json"
Version=
"$(NewtonsoftJsonVersion)"
/>
<PackageReference
Include=
"Microsoft.VisualStudio.CoreUtility"
Version=
"$(MicrosoftVisualStudioCoreUtilityVersion)"
/>
...
...
@@ -37,6 +38,11 @@
<PackageReference
Include=
"Microsoft.VisualStudio.Threading"
Version=
"$(MicrosoftVisualStudioThreadingVersion)"
/>
<PackageReference
Include=
"Microsoft.ServiceHub.Framework"
Version=
"$(MicrosoftServiceHubFrameworkVersion)"
/>
</ItemGroup>
<ItemGroup
Condition=
"'$(TargetFramework)' == 'net472'"
>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.ComponentModel.Composition"
/>
<Reference
Include=
"System.Core"
/>
</ItemGroup>
<ItemGroup>
<PublicAPI
Include=
"PublicAPI.Shipped.txt"
/>
<PublicAPI
Include=
"PublicAPI.Unshipped.txt"
/>
...
...
src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs
浏览文件 @
bc517499
...
...
@@ -244,7 +244,7 @@ private static void SetNativeDllSearchDirectories()
// "appBasePath": "%VSAPPIDDIR%"
//
var
loadDir
=
AppDomain
.
CurrentDomain
.
BaseDirectory
;
var
loadDir
=
AppDomain
.
CurrentDomain
.
BaseDirectory
!
;
try
{
...
...
@@ -372,7 +372,7 @@ public override void CopyTo(int sourceIndex, char[] destination, int destination
public
override
IReadOnlyList
<
TextChangeRange
>
GetChangeRanges
(
SourceText
oldText
)
=>
ImmutableArray
.
Create
(
new
TextChangeRange
(
new
TextSpan
(
0
,
oldText
.
Length
),
_text
.
Length
));
public
override
int
GetHashCode
()
=>
_text
.
GetHashCode
();
public
override
bool
Equals
(
object
obj
)
=>
_text
.
Equals
(
obj
);
public
override
bool
Equals
(
object
?
obj
)
=>
_text
.
Equals
(
obj
);
public
override
string
ToString
()
=>
_text
.
ToString
();
public
override
string
ToString
(
TextSpan
span
)
=>
_text
.
ToString
(
span
);
}
...
...
src/Workspaces/Remote/ServiceHub/Shared/RemoteEndPoint.cs
浏览文件 @
bc517499
...
...
@@ -397,7 +397,7 @@ private void LogDisconnectInfo(JsonRpcDisconnectedEventArgs? e)
/// if there is an issue with the connection. E.g. the client end point might not receive
/// a callback from server, or the server end point might not receive a call from client.
/// </summary>
private
void
OnDisconnected
(
object
sender
,
JsonRpcDisconnectedEventArgs
e
)
private
void
OnDisconnected
(
object
?
sender
,
JsonRpcDisconnectedEventArgs
e
)
{
_disconnectedReason
=
e
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录