From dab64bb0b12c129362b9ac2e54c9057d6a7c2802 Mon Sep 17 00:00:00 2001 From: Curtis Carter Date: Mon, 20 Apr 2020 11:27:33 -0500 Subject: [PATCH] Adding Test Solution Test Solution will be used to test future releases --- .gitignore | 2 + Src/NuGetDefense/TestFiles/test.csproj | 6 +- Src/TestFiles/Test.sln | 34 ++++++++++ Src/TestFiles/net461.TestLib/Class1.cs | 6 ++ .../net461.TestLib/Properties/AssemblyInfo.cs | 35 ++++++++++ .../net461.TestLib/net461.TestLib.csproj | 66 +++++++++++++++++++ Src/TestFiles/net461.TestLib/packages.config | 5 ++ Src/TestFiles/netcoreapp3.1.TestLib/Class1.cs | 8 +++ .../netcoreapp3.1.TestLib/NuGetDefense.json | 24 +++++++ .../netcoreapp3.1.TestLib.csproj | 13 ++++ .../netstandard2.1.TestLib/Class1.cs | 8 +++ .../netstandard2.1.TestLib/NuGetDefense.json | 26 ++++++++ .../netstandard2.1.TestLib.csproj | 14 ++++ Src/global.json | 5 -- 14 files changed, 244 insertions(+), 8 deletions(-) create mode 100644 Src/TestFiles/Test.sln create mode 100644 Src/TestFiles/net461.TestLib/Class1.cs create mode 100644 Src/TestFiles/net461.TestLib/Properties/AssemblyInfo.cs create mode 100644 Src/TestFiles/net461.TestLib/net461.TestLib.csproj create mode 100644 Src/TestFiles/net461.TestLib/packages.config create mode 100644 Src/TestFiles/netcoreapp3.1.TestLib/Class1.cs create mode 100644 Src/TestFiles/netcoreapp3.1.TestLib/NuGetDefense.json create mode 100644 Src/TestFiles/netcoreapp3.1.TestLib/netcoreapp3.1.TestLib.csproj create mode 100644 Src/TestFiles/netstandard2.1.TestLib/Class1.cs create mode 100644 Src/TestFiles/netstandard2.1.TestLib/NuGetDefense.json create mode 100644 Src/TestFiles/netstandard2.1.TestLib/netstandard2.1.TestLib.csproj delete mode 100644 Src/global.json diff --git a/.gitignore b/.gitignore index 7cf53197..104ce008 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ *.cache *.blob **/.idea/**/* +Src/TestFiles/packages/**/* +**/*.suo diff --git a/Src/NuGetDefense/TestFiles/test.csproj b/Src/NuGetDefense/TestFiles/test.csproj index 59184776..8a3bdc6a 100644 --- a/Src/NuGetDefense/TestFiles/test.csproj +++ b/Src/NuGetDefense/TestFiles/test.csproj @@ -36,18 +36,18 @@ 4 - + packages\Microsoft.Data.Edm.5.7.0\lib\net40\Microsoft.Data.Edm.dll True - + packages\Microsoft.Data.OData.5.7.0\lib\net40\Microsoft.Data.OData.dll True - + packages\System.Spatial.5.7.0\lib\net40\System.Spatial.dll True diff --git a/Src/TestFiles/Test.sln b/Src/TestFiles/Test.sln new file mode 100644 index 00000000..45e5df52 --- /dev/null +++ b/Src/TestFiles/Test.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "netcoreapp3.1.TestLib", "netcoreapp3.1.TestLib\netcoreapp3.1.TestLib.csproj", "{B8B72B1E-A2BF-46C6-B61B-FA66635E3102}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "net461.TestLib", "net461.TestLib\net461.TestLib.csproj", "{3E337F00-F958-4DD1-B05E-9C84090486E7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "netstandard2.1.TestLib", "netstandard2.1.TestLib\netstandard2.1.TestLib.csproj", "{763F6151-A315-4CF4-A3D4-0553DDC3BAF2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + Linux|Any CPU = Linux|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B8B72B1E-A2BF-46C6-B61B-FA66635E3102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B8B72B1E-A2BF-46C6-B61B-FA66635E3102}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B8B72B1E-A2BF-46C6-B61B-FA66635E3102}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B8B72B1E-A2BF-46C6-B61B-FA66635E3102}.Release|Any CPU.Build.0 = Release|Any CPU + {B8B72B1E-A2BF-46C6-B61B-FA66635E3102}.Linux|Any CPU.ActiveCfg = Linux|Any CPU + {B8B72B1E-A2BF-46C6-B61B-FA66635E3102}.Linux|Any CPU.Build.0 = Linux|Any CPU + {3E337F00-F958-4DD1-B05E-9C84090486E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3E337F00-F958-4DD1-B05E-9C84090486E7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3E337F00-F958-4DD1-B05E-9C84090486E7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3E337F00-F958-4DD1-B05E-9C84090486E7}.Release|Any CPU.Build.0 = Release|Any CPU + {3E337F00-F958-4DD1-B05E-9C84090486E7}.Linux|Any CPU.ActiveCfg = Linux|Any CPU + {763F6151-A315-4CF4-A3D4-0553DDC3BAF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {763F6151-A315-4CF4-A3D4-0553DDC3BAF2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {763F6151-A315-4CF4-A3D4-0553DDC3BAF2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {763F6151-A315-4CF4-A3D4-0553DDC3BAF2}.Release|Any CPU.Build.0 = Release|Any CPU + {763F6151-A315-4CF4-A3D4-0553DDC3BAF2}.Linux|Any CPU.ActiveCfg = Linux|Any CPU + {763F6151-A315-4CF4-A3D4-0553DDC3BAF2}.Linux|Any CPU.Build.0 = Linux|Any CPU + EndGlobalSection +EndGlobal diff --git a/Src/TestFiles/net461.TestLib/Class1.cs b/Src/TestFiles/net461.TestLib/Class1.cs new file mode 100644 index 00000000..8608eba4 --- /dev/null +++ b/Src/TestFiles/net461.TestLib/Class1.cs @@ -0,0 +1,6 @@ +namespace net461.TestLib +{ + public class Class1 + { + } +} \ No newline at end of file diff --git a/Src/TestFiles/net461.TestLib/Properties/AssemblyInfo.cs b/Src/TestFiles/net461.TestLib/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..232521ee --- /dev/null +++ b/Src/TestFiles/net461.TestLib/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("net461.TestLib")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("net461.TestLib")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3E337F00-F958-4DD1-B05E-9C84090486E7")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/Src/TestFiles/net461.TestLib/net461.TestLib.csproj b/Src/TestFiles/net461.TestLib/net461.TestLib.csproj new file mode 100644 index 00000000..89c451b4 --- /dev/null +++ b/Src/TestFiles/net461.TestLib/net461.TestLib.csproj @@ -0,0 +1,66 @@ + + + + + Debug + AnyCPU + {3E337F00-F958-4DD1-B05E-9C84090486E7} + Library + Properties + net461.TestLib + net461.TestLib + v4.6.1 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + bin\Linux\ + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}. + + + + + + diff --git a/Src/TestFiles/net461.TestLib/packages.config b/Src/TestFiles/net461.TestLib/packages.config new file mode 100644 index 00000000..509a818c --- /dev/null +++ b/Src/TestFiles/net461.TestLib/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Src/TestFiles/netcoreapp3.1.TestLib/Class1.cs b/Src/TestFiles/netcoreapp3.1.TestLib/Class1.cs new file mode 100644 index 00000000..3f37f6cb --- /dev/null +++ b/Src/TestFiles/netcoreapp3.1.TestLib/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace netcoreapp3_1 +{ + public class Class1 + { + } +} \ No newline at end of file diff --git a/Src/TestFiles/netcoreapp3.1.TestLib/NuGetDefense.json b/Src/TestFiles/netcoreapp3.1.TestLib/NuGetDefense.json new file mode 100644 index 00000000..e5483548 --- /dev/null +++ b/Src/TestFiles/netcoreapp3.1.TestLib/NuGetDefense.json @@ -0,0 +1,24 @@ +{ + "WarnOnly": true, + "ErrorSettings": { + "ErrorSeverityThreshold": 5, + "CVSS3Threshold": -1, + "WhiteListedPackages": [], + "BlackListedPackages": [ + { + "Package": { + "Id": "Blacklisted.Example", + "Version": "1.0.0" + } + } + ] + }, + "OssIndex": { + "Enabled": true, + "BreakIfCannotRun": false + }, + "NVD": { + "Enabled": true, + "BreakIfCannotRun": false + } +} \ No newline at end of file diff --git a/Src/TestFiles/netcoreapp3.1.TestLib/netcoreapp3.1.TestLib.csproj b/Src/TestFiles/netcoreapp3.1.TestLib/netcoreapp3.1.TestLib.csproj new file mode 100644 index 00000000..86bbaf08 --- /dev/null +++ b/Src/TestFiles/netcoreapp3.1.TestLib/netcoreapp3.1.TestLib.csproj @@ -0,0 +1,13 @@ + + + netcoreapp3.1 + netcoreapp3_1 + Debug;Release;Linux + AnyCPU + + + + + + + \ No newline at end of file diff --git a/Src/TestFiles/netstandard2.1.TestLib/Class1.cs b/Src/TestFiles/netstandard2.1.TestLib/Class1.cs new file mode 100644 index 00000000..5f58582b --- /dev/null +++ b/Src/TestFiles/netstandard2.1.TestLib/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace netstandard2._1.TestLib +{ + public class Class1 + { + } +} \ No newline at end of file diff --git a/Src/TestFiles/netstandard2.1.TestLib/NuGetDefense.json b/Src/TestFiles/netstandard2.1.TestLib/NuGetDefense.json new file mode 100644 index 00000000..159be994 --- /dev/null +++ b/Src/TestFiles/netstandard2.1.TestLib/NuGetDefense.json @@ -0,0 +1,26 @@ +{ + "WarnOnly": true, + "ErrorSettings": { + "ErrorSeverityThreshold": 5, + "CVSS3Threshold": -1, + "IgnoredPackages": [ + { + "Id": "NugetDefense", + "Version": null, + "PackageUrl": "pkg:nuget/NugetDefense@" + } + ], + "IgnoredCvEs": [], + "WhiteListedPackages": [], + "BlackListedPackages": [] + }, + "OssIndex": { + "Enabled": true, + "BreakIfCannotRun": false + }, + "NVD": { + "SelfUpdate": false, + "Enabled": true, + "BreakIfCannotRun": false + } +} \ No newline at end of file diff --git a/Src/TestFiles/netstandard2.1.TestLib/netstandard2.1.TestLib.csproj b/Src/TestFiles/netstandard2.1.TestLib/netstandard2.1.TestLib.csproj new file mode 100644 index 00000000..4516fa4b --- /dev/null +++ b/Src/TestFiles/netstandard2.1.TestLib/netstandard2.1.TestLib.csproj @@ -0,0 +1,14 @@ + + + + netstandard2.1 + netstandard2._1.TestLib + Debug;Release;Linux + AnyCPU + + + + + + + diff --git a/Src/global.json b/Src/global.json deleted file mode 100644 index c685cffc..00000000 --- a/Src/global.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "sdk": { - "version": "3.1.101" - } -}