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-05-29 17:32:54 +0300
committerMatt Ward <matt.ward@microsoft.com>2019-05-29 17:32:54 +0300
commitc047dcc2c545a607007733140e22f8bd39da8b62 (patch)
treee5ebd989d78d362451238c0861aa0667e9fc4ccb /main/tests/test-projects
parent9b2f52ce8fc73acc6d2802659ed5e0c1c1e98d7e (diff)
[NuGet] Fix restore menu incorrectly disabled.
The restore menu when right clicking a solution or the packages folder is no longer disabled when an SDK style project targets .NET Framework or when the project has RestoreProjectStyle set to PackageReference but has no PackageReferences. Fixes VSTS #764063 - NuGet extension ignores RestoreProjectStyle Fixes VSTS #814579 - Restore NuGet packages menu disabled for sdk style project targeting net47
Diffstat (limited to 'main/tests/test-projects')
-rw-r--r--main/tests/test-projects/netframework-sdk/Class1.cs8
-rw-r--r--main/tests/test-projects/netframework-sdk/netframework-sdk.csproj7
-rw-r--r--main/tests/test-projects/netframework-sdk/netframework-sdk.sln17
3 files changed, 32 insertions, 0 deletions
diff --git a/main/tests/test-projects/netframework-sdk/Class1.cs b/main/tests/test-projects/netframework-sdk/Class1.cs
new file mode 100644
index 0000000000..b9a6178638
--- /dev/null
+++ b/main/tests/test-projects/netframework-sdk/Class1.cs
@@ -0,0 +1,8 @@
+using System;
+
+namespace netstandard_sdk
+{
+ public class Class1
+ {
+ }
+}
diff --git a/main/tests/test-projects/netframework-sdk/netframework-sdk.csproj b/main/tests/test-projects/netframework-sdk/netframework-sdk.csproj
new file mode 100644
index 0000000000..424d2a40e5
--- /dev/null
+++ b/main/tests/test-projects/netframework-sdk/netframework-sdk.csproj
@@ -0,0 +1,7 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net472</TargetFramework>
+ </PropertyGroup>
+
+</Project>
diff --git a/main/tests/test-projects/netframework-sdk/netframework-sdk.sln b/main/tests/test-projects/netframework-sdk/netframework-sdk.sln
new file mode 100644
index 0000000000..41ef1571b0
--- /dev/null
+++ b/main/tests/test-projects/netframework-sdk/netframework-sdk.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "netframework-sdk", "netframework-sdk.csproj", "{5B443F8D-6C84-443F-A395-5429E8F4A47D}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5B443F8D-6C84-443F-A395-5429E8F4A47D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5B443F8D-6C84-443F-A395-5429E8F4A47D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5B443F8D-6C84-443F-A395-5429E8F4A47D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5B443F8D-6C84-443F-A395-5429E8F4A47D}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal