Skip to content

Commit

Permalink
Adding Test Solution
Browse files Browse the repository at this point in the history
Test Solution will be used to test future releases
  • Loading branch information
digitalcoyote committed Apr 20, 2020
1 parent d10813d commit dab64bb
Show file tree
Hide file tree
Showing 14 changed files with 244 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
*.cache
*.blob
**/.idea/**/*
Src/TestFiles/packages/**/*
**/*.suo
6 changes: 3 additions & 3 deletions Src/NuGetDefense/TestFiles/test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Data.Edm, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<Reference Include="Microsoft.Data.Edm, Version=5.7.0.0, Culture=neutral, internalKeyToken=31bf3856ad364e35">
<HintPath>packages\Microsoft.Data.Edm.5.7.0\lib\net40\Microsoft.Data.Edm.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Data.OData, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<Reference Include="Microsoft.Data.OData, Version=5.7.0.0, Culture=neutral, internalKeyToken=31bf3856ad364e35">
<HintPath>packages\Microsoft.Data.OData.5.7.0\lib\net40\Microsoft.Data.OData.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Spatial, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<Reference Include="System.Spatial, Version=5.7.0.0, Culture=neutral, internalKeyToken=31bf3856ad364e35">
<HintPath>packages\System.Spatial.5.7.0\lib\net40\System.Spatial.dll</HintPath>
<Private>True</Private>
</Reference>
Expand Down
34 changes: 34 additions & 0 deletions Src/TestFiles/Test.sln
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Src/TestFiles/net461.TestLib/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace net461.TestLib
{
public class Class1
{
}
}
35 changes: 35 additions & 0 deletions Src/TestFiles/net461.TestLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
66 changes: 66 additions & 0 deletions Src/TestFiles/net461.TestLib/net461.TestLib.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.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>{3E337F00-F958-4DD1-B05E-9C84090486E7}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>net461.TestLib</RootNamespace>
<AssemblyName>net461.TestLib</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Linux|AnyCPU' ">
<OutputPath>bin\Linux\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\NuGetDefense.1.0.4\build\nugetdefense.targets" Condition="Exists('..\packages\NuGetDefense.1.0.4\build\nugetdefense.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\NuGetDefense.1.0.4\build\nugetdefense.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NuGetDefense.1.0.4\build\nugetdefense.targets'))" />
</Target>
<!-- 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>
5 changes: 5 additions & 0 deletions Src/TestFiles/net461.TestLib/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NuGetDefense" version="1.0.4" targetFramework="net461" />
<package id="Bootstrap" version="3.4.1" targetFramework="net461"/>
</packages>
8 changes: 8 additions & 0 deletions Src/TestFiles/netcoreapp3.1.TestLib/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace netcoreapp3_1
{
public class Class1
{
}
}
24 changes: 24 additions & 0 deletions Src/TestFiles/netcoreapp3.1.TestLib/NuGetDefense.json
Original file line number Diff line number Diff line change
@@ -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
}
}
13 changes: 13 additions & 0 deletions Src/TestFiles/netcoreapp3.1.TestLib/netcoreapp3.1.TestLib.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>netcoreapp3_1</RootNamespace>
<Configurations>Debug;Release;Linux</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="jQuery" Version="2.2.2" />
<PackageReference Include="NuGetDefense" Version="1.0.4" />
<PackageReference Include="Bootstrap" Version="3.4.1" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions Src/TestFiles/netstandard2.1.TestLib/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace netstandard2._1.TestLib
{
public class Class1
{
}
}
26 changes: 26 additions & 0 deletions Src/TestFiles/netstandard2.1.TestLib/NuGetDefense.json
Original file line number Diff line number Diff line change
@@ -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
}
}
14 changes: 14 additions & 0 deletions Src/TestFiles/netstandard2.1.TestLib/netstandard2.1.TestLib.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>netstandard2._1.TestLib</RootNamespace>
<Configurations>Debug;Release;Linux</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="jQuery" Version="2.2.2" />
<PackageReference Include="NuGetDefense" Version="1.0.4" />
<PackageReference Include="Bootstrap" Version="3.4.1" />
</ItemGroup>
</Project>
5 changes: 0 additions & 5 deletions Src/global.json

This file was deleted.

0 comments on commit dab64bb

Please sign in to comment.