Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
db2a9f02
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,发现更多精彩内容 >>
提交
db2a9f02
编写于
9月 07, 2018
作者:
T
Tomas Matousek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix scripting
上级
3eabe82a
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
14 addition
and
19 deletion
+14
-19
src/Interactive/csi/csi.coreclr.rsp
src/Interactive/csi/csi.coreclr.rsp
+2
-2
src/Interactive/csi/csi.desktop.rsp
src/Interactive/csi/csi.desktop.rsp
+0
-1
src/Interactive/vbi/vbi.coreclr.rsp
src/Interactive/vbi/vbi.coreclr.rsp
+2
-2
src/Interactive/vbi/vbi.desktop.rsp
src/Interactive/vbi/vbi.desktop.rsp
+0
-1
src/Scripting/CSharpTest/CommandLineRunnerTests.cs
src/Scripting/CSharpTest/CommandLineRunnerTests.cs
+2
-4
src/Scripting/CSharpTest/ScriptTests.cs
src/Scripting/CSharpTest/ScriptTests.cs
+5
-5
src/Scripting/Core/ScriptOptions.cs
src/Scripting/Core/ScriptOptions.cs
+1
-0
src/Scripting/CoreTest/ScriptOptionsTests.cs
src/Scripting/CoreTest/ScriptOptionsTests.cs
+1
-1
src/Test/Utilities/Portable/Platform/Desktop/TestHelpers.cs
src/Test/Utilities/Portable/Platform/Desktop/TestHelpers.cs
+1
-2
src/VisualStudio/CSharp/Repl/CSharpInteractive.rsp
src/VisualStudio/CSharp/Repl/CSharpInteractive.rsp
+0
-1
未找到文件。
src/Interactive/csi/csi.coreclr.rsp
浏览文件 @
db2a9f02
...
...
@@ -23,11 +23,11 @@
/r:System.Threading.Tasks.Parallel
/r:System.Threading.Thread
# extra references
/r:System.Dynamic.Runtime
/r:System.Linq
/r:System.Linq.Expressions
/r:System.Runtime.Numerics
/r:System.Dynamic.Runtime
/r:System.ValueTuple.dll
/r:System.ValueTuple
/r:Microsoft.CSharp
# imports
/u:System
...
...
src/Interactive/csi/csi.desktop.rsp
浏览文件 @
db2a9f02
/r:System
/r:System.Core
/r:Microsoft.CSharp
/r:System.ValueTuple.dll
/u:System
/u:System.IO
/u:System.Collections.Generic
...
...
src/Interactive/vbi/vbi.coreclr.rsp
浏览文件 @
db2a9f02
...
...
@@ -25,11 +25,11 @@
/r:System.Threading.Tasks.Parallel
/r:System.Threading.Thread
# extra references
/r:System.Dynamic.Runtime
/r:System.Linq
/r:System.Linq.Expressions
/r:System.Runtime.Numerics
/r:System.Dynamic.Runtime
/r:System.ValueTuple.dll
/r:System.ValueTuple
# imports
/u:System
/u:System.IO
...
...
src/Interactive/vbi/vbi.desktop.rsp
浏览文件 @
db2a9f02
/r:System
/r:System.Core
/r:System.ValueTuple.dll
/Imports:System
/Imports:System.IO
/Imports:System.Collections.Generic
...
...
src/Scripting/CSharpTest/CommandLineRunnerTests.cs
浏览文件 @
db2a9f02
...
...
@@ -43,7 +43,6 @@ private static IEnumerable<string> GetReferences()
yield
return
"System"
;
yield
return
"System.Core"
;
yield
return
"Microsoft.CSharp"
;
yield
return
"System.ValueTuple.dll"
;
}
else
{
...
...
@@ -76,7 +75,6 @@ private static IEnumerable<string> GetReferences()
yield
return
"System.Linq.Expressions"
;
yield
return
"System.Runtime.Numerics"
;
yield
return
"System.Dynamic.Runtime"
;
yield
return
"System.ValueTuple"
;
yield
return
"Microsoft.CSharp"
;
}
}
...
...
@@ -170,7 +168,7 @@ > Math.PI
>"
,
runner
.
Console
.
Out
.
ToString
());
}
[
Fact
(
Skip
=
"https://github.com/dotnet/roslyn/issues/17043"
)
]
[
Fact
]
[
WorkItem
(
7133
,
"http://github.com/dotnet/roslyn/issues/7133"
)]
public
void
TestDisplayResultsWithCurrentUICulture2
()
{
...
...
@@ -224,7 +222,7 @@ > Print(2)
> "
,
runner
.
Console
.
Out
.
ToString
());
}
[
Fact
(
Skip
=
"https://github.com/dotnet/roslyn/issues/18479"
)
]
[
Fact
]
[
WorkItem
(
18479
,
"https://github.com/dotnet/roslyn/issues/18479"
)]
public
void
Tuples
()
{
...
...
src/Scripting/CSharpTest/ScriptTests.cs
浏览文件 @
db2a9f02
...
...
@@ -831,7 +831,7 @@ public async Task Pdb_CreateFromString_CodeFromFile_WithEmitDebugInformation_Wit
}
}
[
ConditionalFact
(
typeof
(
DesktopOnly
))
]
[
Fact
]
[
WorkItem
(
19027
,
"https://github.com/dotnet/roslyn/issues/19027"
)]
public
Task
Pdb_CreateFromString_CodeFromFile_WithEmitDebugInformation_WithFileEncoding_ResultInPdbEmitted
()
{
...
...
@@ -853,7 +853,7 @@ public Task Pdb_CreateFromString_CodeFromFile_WithoutEmitDebugInformation_WithFi
return
VerifyStackTraceAsync
(()
=>
CSharpScript
.
Create
(
"throw new System.Exception();"
,
opts
));
}
[
ConditionalFact
(
typeof
(
DesktopOnly
))
]
[
Fact
]
[
WorkItem
(
19027
,
"https://github.com/dotnet/roslyn/issues/19027"
)]
public
Task
Pdb_CreateFromStream_CodeFromFile_WithEmitDebugInformation_ResultInPdbEmitted
()
{
...
...
@@ -868,7 +868,7 @@ public Task Pdb_CreateFromStream_CodeFromFile_WithoutEmitDebugInformation_Result
return
VerifyStackTraceAsync
(()
=>
CSharpScript
.
Create
(
new
MemoryStream
(
Encoding
.
UTF8
.
GetBytes
(
"throw new System.Exception();"
)),
opts
));
}
[
ConditionalFact
(
typeof
(
DesktopOnly
))
]
[
Fact
]
[
WorkItem
(
19027
,
"https://github.com/dotnet/roslyn/issues/19027"
)]
public
Task
Pdb_CreateFromString_InlineCode_WithEmitDebugInformation_WithoutFileEncoding_ResultInPdbEmitted
()
{
...
...
@@ -876,7 +876,7 @@ public Task Pdb_CreateFromString_InlineCode_WithEmitDebugInformation_WithoutFile
return
VerifyStackTraceAsync
(()
=>
CSharpScript
.
Create
(
"throw new System.Exception();"
,
opts
),
line
:
1
,
column
:
1
,
filename
:
""
);
}
[
ConditionalFact
(
typeof
(
DesktopOnly
))
]
[
Fact
]
[
WorkItem
(
19027
,
"https://github.com/dotnet/roslyn/issues/19027"
)]
public
Task
Pdb_CreateFromString_InlineCode_WithEmitDebugInformation_WithFileEncoding_ResultInPdbEmitted
()
{
...
...
@@ -898,7 +898,7 @@ public Task Pdb_CreateFromString_InlineCode_WithoutEmitDebugInformation_WithFile
return
VerifyStackTraceAsync
(()
=>
CSharpScript
.
Create
(
"throw new System.Exception();"
,
opts
));
}
[
ConditionalFact
(
typeof
(
DesktopOnly
))
]
[
Fact
]
[
WorkItem
(
19027
,
"https://github.com/dotnet/roslyn/issues/19027"
)]
public
Task
Pdb_CreateFromStream_InlineCode_WithEmitDebugInformation_ResultInPdbEmitted
()
{
...
...
src/Scripting/Core/ScriptOptions.cs
浏览文件 @
db2a9f02
...
...
@@ -63,6 +63,7 @@ private static ImmutableArray<MetadataReference> GetDefaultMetadataReferences()
"System.Threading.Tasks"
,
"System.Threading.Tasks.Parallel"
,
"System.Threading.Thread"
,
"System.ValueTuple"
,
};
return
ImmutableArray
.
CreateRange
(
files
.
Select
(
CreateUnresolvedReference
));
...
...
src/Scripting/CoreTest/ScriptOptionsTests.cs
浏览文件 @
db2a9f02
...
...
@@ -24,7 +24,7 @@ public void AddReferences()
AddReferences
(
"System.Linq"
).
AddReferences
(
"System.Linq"
);
Assert
.
Equal
(
GacFileResolver
.
IsAvailable
?
5
:
29
,
options
.
MetadataReferences
.
Length
);
Assert
.
Equal
(
GacFileResolver
.
IsAvailable
?
5
:
30
,
options
.
MetadataReferences
.
Length
);
}
[
Fact
]
...
...
src/Test/Utilities/Portable/Platform/Desktop/TestHelpers.cs
浏览文件 @
db2a9f02
...
...
@@ -67,14 +67,13 @@ public class TestAnalyzer : DiagnosticAnalyzer
dir
.
CopyFile
(
typeof
(
System
.
Reflection
.
Metadata
.
MetadataReader
).
Assembly
.
Location
);
var
immutable
=
dir
.
CopyFile
(
typeof
(
ImmutableArray
).
Assembly
.
Location
);
var
analyzer
=
dir
.
CopyFile
(
typeof
(
DiagnosticAnalyzer
).
Assembly
.
Location
);
dir
.
CopyFile
(
Path
.
Combine
(
Path
.
GetDirectoryName
(
typeof
(
CSharpCompilation
).
Assembly
.
Location
),
"System.IO.FileSystem.dll"
));
var
analyzerCompilation
=
CSharpCompilation
.
Create
(
assemblyName
,
new
SyntaxTree
[]
{
SyntaxFactory
.
ParseSyntaxTree
(
analyzerSource
)
},
new
MetadataReference
[]
{
TestReferences
.
NetStandard
13
.
SystemRuntime
,
TestReferences
.
NetStandard
20
.
NetStandard
,
MetadataReference
.
CreateFromFile
(
immutable
.
Path
),
MetadataReference
.
CreateFromFile
(
analyzer
.
Path
)
},
...
...
src/VisualStudio/CSharp/Repl/CSharpInteractive.rsp
浏览文件 @
db2a9f02
/r:System
/r:System.Core
/r:Microsoft.CSharp
/r:System.ValueTuple.dll
/u:System
/u:System.IO
/u:System.Collections.Generic
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录