Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@microsoft.com>2019-08-13 20:20:51 +0300
committerMatt Ward <ward.matt@gmail.com>2019-08-15 14:50:35 +0300
commitb98132dcbb346b8332d72cb2e5c256d271d2d7d1 (patch)
treee6cb9f31de45331c0a97fb55e9ad40aa446611af /main/tests/test-projects
parent3217eca13baf70bf2fd0bf3e71ecbb8328ea4dfc (diff)
[NuGet] Make references dialog aware of multi-target projects
The Edit References dialog uses the Project.CanReferenceProject method to determine if a project can be referenced. This does not consider multi-target framework projects. Now a DotNetProjectExtension has been added to the NuGet addin that uses NuGet to determine the compatibility of all target frameworks the projects use. Report all target frameworks as incompatible in the Edit References dialog instead of just the first target framework. Fixes VSTS #959111 - Unable to add references with multi-target framework project
Diffstat (limited to 'main/tests/test-projects')
-rw-r--r--main/tests/test-projects/CanReferenceProjectTests/CanReferenceProjectTests.sln35
-rw-r--r--main/tests/test-projects/CanReferenceProjectTests/Net46NetStandard10/Net46NetStandard10.csproj7
-rw-r--r--main/tests/test-projects/CanReferenceProjectTests/Net472/Net472.csproj33
-rw-r--r--main/tests/test-projects/CanReferenceProjectTests/NetCore21Net472/NetCore21Net472.csproj8
-rw-r--r--main/tests/test-projects/CanReferenceProjectTests/NetStandard11/NetStandard11.csproj7
5 files changed, 90 insertions, 0 deletions
diff --git a/main/tests/test-projects/CanReferenceProjectTests/CanReferenceProjectTests.sln b/main/tests/test-projects/CanReferenceProjectTests/CanReferenceProjectTests.sln
new file mode 100644
index 0000000000..a5035d7257
--- /dev/null
+++ b/main/tests/test-projects/CanReferenceProjectTests/CanReferenceProjectTests.sln
@@ -0,0 +1,35 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetStandard11", "NetStandard11\NetStandard11.csproj", "{FC899F17-8CC6-4D85-87B8-09FC18149D3F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCore21Net472", "NetCore21Net472\NetCore21Net472.csproj", "{9F8B4E87-AF6E-4294-AA0D-34027B5B1B0B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Net472", "Net472\Net472.csproj", "{A2D131B4-7D16-476F-ADD8-0D96A5FC4455}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Net46NetStandard10", "Net46NetStandard10\Net46NetStandard10.csproj", "{0583B083-6FB6-4FB3-80A5-781A7A68F20B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {FC899F17-8CC6-4D85-87B8-09FC18149D3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FC899F17-8CC6-4D85-87B8-09FC18149D3F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FC899F17-8CC6-4D85-87B8-09FC18149D3F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FC899F17-8CC6-4D85-87B8-09FC18149D3F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9F8B4E87-AF6E-4294-AA0D-34027B5B1B0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9F8B4E87-AF6E-4294-AA0D-34027B5B1B0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9F8B4E87-AF6E-4294-AA0D-34027B5B1B0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9F8B4E87-AF6E-4294-AA0D-34027B5B1B0B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A2D131B4-7D16-476F-ADD8-0D96A5FC4455}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2D131B4-7D16-476F-ADD8-0D96A5FC4455}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A2D131B4-7D16-476F-ADD8-0D96A5FC4455}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A2D131B4-7D16-476F-ADD8-0D96A5FC4455}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0583B083-6FB6-4FB3-80A5-781A7A68F20B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0583B083-6FB6-4FB3-80A5-781A7A68F20B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0583B083-6FB6-4FB3-80A5-781A7A68F20B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0583B083-6FB6-4FB3-80A5-781A7A68F20B}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/main/tests/test-projects/CanReferenceProjectTests/Net46NetStandard10/Net46NetStandard10.csproj b/main/tests/test-projects/CanReferenceProjectTests/Net46NetStandard10/Net46NetStandard10.csproj
new file mode 100644
index 0000000000..2abeebf2f0
--- /dev/null
+++ b/main/tests/test-projects/CanReferenceProjectTests/Net46NetStandard10/Net46NetStandard10.csproj
@@ -0,0 +1,7 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFrameworks>net46;netstandard10</TargetFrameworks>
+ </PropertyGroup>
+
+</Project>
diff --git a/main/tests/test-projects/CanReferenceProjectTests/Net472/Net472.csproj b/main/tests/test-projects/CanReferenceProjectTests/Net472/Net472.csproj
new file mode 100644
index 0000000000..1ed77f7b17
--- /dev/null
+++ b/main/tests/test-projects/CanReferenceProjectTests/Net472/Net472.csproj
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{A2D131B4-7D16-476F-ADD8-0D96A5FC4455}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Net472</RootNamespace>
+ <AssemblyName>Net472</AssemblyName>
+ <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project> \ No newline at end of file
diff --git a/main/tests/test-projects/CanReferenceProjectTests/NetCore21Net472/NetCore21Net472.csproj b/main/tests/test-projects/CanReferenceProjectTests/NetCore21Net472/NetCore21Net472.csproj
new file mode 100644
index 0000000000..a5ca3a3eb4
--- /dev/null
+++ b/main/tests/test-projects/CanReferenceProjectTests/NetCore21Net472/NetCore21Net472.csproj
@@ -0,0 +1,8 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFrameworks>netcoreapp2.1;net472</TargetFrameworks>
+ </PropertyGroup>
+
+</Project>
diff --git a/main/tests/test-projects/CanReferenceProjectTests/NetStandard11/NetStandard11.csproj b/main/tests/test-projects/CanReferenceProjectTests/NetStandard11/NetStandard11.csproj
new file mode 100644
index 0000000000..23103c903b
--- /dev/null
+++ b/main/tests/test-projects/CanReferenceProjectTests/NetStandard11/NetStandard11.csproj
@@ -0,0 +1,7 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>netstandard1.1</TargetFramework>
+ </PropertyGroup>
+
+</Project>