Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
72a6857b
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,发现更多精彩内容 >>
提交
72a6857b
编写于
10月 17, 2018
作者:
D
Dustin Campbell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add failing test for issue #29494
上级
08b8ae2f
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
76 addition
and
0 deletion
+76
-0
src/Workspaces/CoreTestUtilities/Resources/ProjectFiles/CSharp/MallformedAdditionalFilePath.csproj
...s/ProjectFiles/CSharp/MallformedAdditionalFilePath.csproj
+48
-0
src/Workspaces/CoreTestUtilities/Resources/SourceFiles/Text/ValidAdditionalFile.txt
...lities/Resources/SourceFiles/Text/ValidAdditionalFile.txt
+1
-0
src/Workspaces/CoreTestUtilities/TestFiles/Resources.cs
src/Workspaces/CoreTestUtilities/TestFiles/Resources.cs
+6
-0
src/Workspaces/MSBuildTest/MSBuildWorkspaceTests.cs
src/Workspaces/MSBuildTest/MSBuildWorkspaceTests.cs
+21
-0
未找到文件。
src/Workspaces/CoreTestUtilities/Resources/ProjectFiles/CSharp/MallformedAdditionalFilePath.csproj
0 → 100644
浏览文件 @
72a6857b
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"15.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Import
Project=
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition=
"Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{CE26EDB5-9F46-46D4-8EC0-9BC9293A8BE8}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
MalformedProject
</RootNamespace>
<AssemblyName>
MalformedProject
</AssemblyName>
<TargetFrameworkVersion>
v4.0
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<Deterministic>
true
</Deterministic>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Class1.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</ItemGroup>
<ItemGroup>
<AdditionalFiles
Include=
"ValidAdditionalFile.txt"
/>
<AdditionalFiles
Include=
"TEST::"
/>
</ItemGroup>
<ItemGroup
/>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
src/Workspaces/CoreTestUtilities/Resources/SourceFiles/Text/ValidAdditionalFile.txt
0 → 100644
浏览文件 @
72a6857b
\ No newline at end of file
src/Workspaces/CoreTestUtilities/TestFiles/Resources.cs
浏览文件 @
72a6857b
...
...
@@ -126,6 +126,7 @@ public static class CSharp
public
static
string
ExternAlias2
=>
GetText
(
"ProjectFiles.CSharp.ExternAlias2.csproj"
);
public
static
string
ForEmittedOutput
=>
GetText
(
"ProjectFiles.CSharp.ForEmittedOutput.csproj"
);
public
static
string
MsbuildError
=>
GetText
(
"ProjectFiles.CSharp.MsbuildError.csproj"
);
public
static
string
MallformedAdditionalFilePath
=>
GetText
(
"ProjectFiles.CSharp.MallformedAdditionalFilePath.csproj"
);
public
static
string
NetCoreApp2_Project
=>
GetText
(
"NetCoreApp2.Project.csproj"
);
public
static
string
NetCoreApp2AndLibrary_Project
=>
GetText
(
"NetCoreApp2AndLibrary.Project.csproj"
);
public
static
string
NetCoreApp2AndLibrary_Library
=>
GetText
(
"NetCoreApp2AndLibrary.Library.csproj"
);
...
...
@@ -206,6 +207,11 @@ public static class FSharp
public
static
string
NetCoreMultiTFM_ProjectReferenceToFSharp_FSharpLib_Library
=
GetText
(
"NetCoreMultiTFM_ProjectReferenceToFSharp.fsharplib.Library.fs"
);
}
public
static
class
Text
{
public
static
string
ValidAdditionalFile
=>
GetText
(
"SourceFiles.Text.ValidAdditionalFile.txt"
);
}
public
static
class
VisualBasic
{
public
static
string
Application
=>
GetText
(
"SourceFiles.VisualBasic.Application.myapp"
);
...
...
src/Workspaces/MSBuildTest/MSBuildWorkspaceTests.cs
浏览文件 @
72a6857b
...
...
@@ -3579,6 +3579,27 @@ public async Task TestOpenSolution_ProjectReferencesWithUnconventionalOutputPath
}
}
[
ConditionalFact
(
typeof
(
VisualStudioMSBuildInstalled
)),
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
MSBuildWorkspace
)]
[
WorkItem
(
29494
,
"https://github.com/dotnet/roslyn/issues/29494"
)]
public
async
Task
TestOpenProjectAsync_MalformedAdditionalFilePath
()
{
var
files
=
GetSimpleCSharpSolutionFiles
()
.
WithFile
(
@"CSharpProject\CSharpProject.csproj"
,
Resources
.
ProjectFiles
.
CSharp
.
MallformedAdditionalFilePath
)
.
WithFile
(
@"CSharpProject\ValidAdditionalFile.txt"
,
Resources
.
SourceFiles
.
Text
.
ValidAdditionalFile
);
CreateFiles
(
files
);
var
projectFilePath
=
GetSolutionFileName
(
@"CSharpProject\CSharpProject.csproj"
);
using
(
var
workspace
=
CreateMSBuildWorkspace
())
{
var
project
=
await
workspace
.
OpenProjectAsync
(
projectFilePath
);
// Project should open without an exception being thrown.
Assert
.
NotNull
(
project
);
}
}
private
class
InMemoryAssemblyLoader
:
IAnalyzerAssemblyLoader
{
public
void
AddDependencyLocation
(
string
fullPath
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录