Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
45b48dd7
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,发现更多精彩内容 >>
提交
45b48dd7
编写于
6月 10, 2015
作者:
M
Matt Warren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add test for desktop project referencing portable project
上级
fa2f7505
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
136 addition
and
0 deletion
+136
-0
src/Workspaces/CoreTest/ServicesTest.csproj
src/Workspaces/CoreTest/ServicesTest.csproj
+10
-0
src/Workspaces/CoreTest/TestFiles/CSharpProject_PortableProject.csproj
...s/CoreTest/TestFiles/CSharpProject_PortableProject.csproj
+50
-0
src/Workspaces/CoreTest/TestFiles/CSharpProject_ReferencesPortableProject.csproj
.../TestFiles/CSharpProject_ReferencesPortableProject.csproj
+56
-0
src/Workspaces/CoreTest/WorkspaceTests/MSBuildWorkspaceTests.cs
...rkspaces/CoreTest/WorkspaceTests/MSBuildWorkspaceTests.cs
+20
-0
未找到文件。
src/Workspaces/CoreTest/ServicesTest.csproj
浏览文件 @
45b48dd7
...
...
@@ -306,6 +306,16 @@
<EmbeddedResource
Include=
"TestFiles\CircularProjectReferences\CircularCSharpProject2.csproj"
/>
<EmbeddedResource
Include=
"TestFiles\CircularProjectReferences\CircularSolution.sln"
/>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"TestFiles\CSharpProject_ReferencesPortableProject.csproj"
>
<SubType>
Designer
</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"TestFiles\CSharpProject_PortableProject.csproj"
>
<SubType>
Designer
</SubType>
</EmbeddedResource>
</ItemGroup>
<ImportGroup
Label=
"Targets"
>
<Import
Project=
"..\..\Tools\Microsoft.CodeAnalysis.Toolset.Open\Targets\VSL.Imports.targets"
/>
<Import
Project=
"..\..\..\build\VSL.Imports.Closed.targets"
/>
...
...
src/Workspaces/CoreTest/TestFiles/CSharpProject_PortableProject.csproj
0 → 100644
浏览文件 @
45b48dd7
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Import
Project=
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition=
"Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
/>
<PropertyGroup>
<MinimumVisualStudioVersion>
11.0
</MinimumVisualStudioVersion>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{f4261866-0652-4115-b022-0e4f4e4d903e}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
Portly
</RootNamespace>
<AssemblyName>
Portly
</AssemblyName>
<DefaultLanguage>
en-US
</DefaultLanguage>
<FileAlignment>
512
</FileAlignment>
<ProjectTypeGuids>
{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
<TargetFrameworkProfile>
Profile259
</TargetFrameworkProfile>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
</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>
<!-- A reference to the entire .NET Framework is automatically included -->
</ItemGroup>
<ItemGroup>
<Compile
Include=
"CSharpClass.cs"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
src/Workspaces/CoreTest/TestFiles/CSharpProject_ReferencesPortableProject.csproj
0 → 100644
浏览文件 @
45b48dd7
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
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>
{23293B02-BAAF-4BED-99F0-AC5C44199DEA}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
Bug2824
</RootNamespace>
<AssemblyName>
Bug2824
</AssemblyName>
<TargetFrameworkVersion>
v4.5.2
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<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' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<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"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Program.cs"
/>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"PortableProject.csproj"
>
<Project>
{f4261866-0652-4115-b022-0e4f4e4d903e}
</Project>
<Name>
PortableProject
</Name>
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
src/Workspaces/CoreTest/WorkspaceTests/MSBuildWorkspaceTests.cs
浏览文件 @
45b48dd7
...
...
@@ -77,6 +77,26 @@ public void TestOpenSolution_MultiProjectSolution()
Assert
.
Equal
(
5
,
compReferences
.
Count
);
}
[
WorkItem
(
2824
,
"https://github.com/dotnet/roslyn/issues/2824"
)]
[
Fact
(
Skip
=
"Needs target file update. Activate when we move to new base drop."
)]
public
void
Test_OpenProjectReferencingPortableProject
()
{
var
files
=
new
FileSet
(
new
Dictionary
<
string
,
object
>
{
{
@"CSharpProject\ReferencesPortableProject.csproj"
,
GetResourceText
(
"CSharpProject_ReferencesPortableProject.csproj"
)
},
{
@"CSharpProject\Program.cs"
,
GetResourceText
(
"CSharpProject_CSharpClass.cs"
)
},
{
@"CSharpProject\PortableProject.csproj"
,
GetResourceText
(
"CSharpProject_PortableProject.csproj"
)
},
{
@"CSharpProject\CSharpClass.cs"
,
GetResourceText
(
"CSharpProject_CSharpClass.cs"
)
}
});
CreateFiles
(
files
);
var
project
=
MSBuildWorkspace
.
Create
().
OpenProjectAsync
(
GetSolutionFileName
(
@"CSharpProject\ReferencesPortableProject.csproj"
)).
Result
;
var
hasFacades
=
project
.
MetadataReferences
.
OfType
<
PortableExecutableReference
>().
Any
(
r
=>
r
.
FilePath
.
Contains
(
"Facade"
));
Assert
.
True
(
hasFacades
);
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
public
void
Test_SharedMetadataReferences
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录