Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
fb3cfcf4
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,发现更多精彩内容 >>
未验证
提交
fb3cfcf4
编写于
7月 08, 2020
作者:
G
Gen Lu
提交者:
GitHub
7月 08, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #45797 from genlu/RemoteCore
Targeting Remote.ServiceHub project to .Net Core
上级
9e0406ea
8e41facb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
13 deletion
+18
-13
src/Features/LanguageServer/Protocol/Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj
...col/Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj
+6
-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
+5
-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
浏览文件 @
fb3cfcf4
...
...
@@ -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)"
/>
...
...
src/VisualStudio/Core/Def/Implementation/Watson/WatsonReporter.cs
浏览文件 @
fb3cfcf4
...
...
@@ -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
浏览文件 @
fb3cfcf4
...
...
@@ -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)"
/>
...
...
src/Workspaces/Remote/ServiceHub/Services/RemoteHostService.cs
浏览文件 @
fb3cfcf4
...
...
@@ -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
浏览文件 @
fb3cfcf4
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录