-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds conditional dotnet target frameworks to dep tree.
BREAKING CHANGE: For consistency the parser now returns target frameworks as an array with a pluralised key of targetFrameworks.
- Loading branch information
Ryan Taylor
committed
Jan 22, 2019
1 parent
d205c24
commit 6e97e9e
Showing
9 changed files
with
229 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
test/fixtures/dotnet-conditional-frameworks/conditional-frameworks.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<PackageId>LiteDB</PackageId> | ||
<Version>4.1.5</Version> | ||
<AssemblyVersion>4.1.5.0</AssemblyVersion> | ||
<FileVersion>4.1.5</FileVersion> | ||
<VersionPrefix>4.1.5</VersionPrefix> | ||
<Authors>Maurício David</Authors> | ||
<Product>LiteDB</Product> | ||
<Description>LiteDB - A lightweight embedded .NET NoSQL document store in a single datafile</Description> | ||
<Copyright>MIT</Copyright> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<Title>LiteDB</Title> | ||
<PackageId>LiteDB</PackageId> | ||
<PackageTags>database nosql embedded</PackageTags> | ||
<PackageIconUrl>http://www.litedb.org/img/logo_64x64.png</PackageIconUrl> | ||
<PackageProjectUrl>https://www.litedb.org</PackageProjectUrl> | ||
<PackageLicenseUrl>https://raw.github.com/mbdavid/LiteDB/master/LICENSE</PackageLicenseUrl> | ||
<RepositoryUrl>https://github.com/mbdavid/LiteDB</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<RootNamespace>LiteDB</RootNamespace> | ||
<AssemblyName>LiteDB</AssemblyName> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.1</NetStandardImplicitPackageVersion> | ||
<NoWarn>1701;1702;1705;1591;0618</NoWarn> | ||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\LiteDB.xml</DocumentationFile> | ||
<SignAssembly Condition="'$(OS)'=='Windows_NT'">true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>LiteDB.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3' OR '$(TargetFramework)' == 'netstandard2.0'"> | ||
<PackageReference Include="System.Reflection" Version="4.3.0" /> | ||
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard3.0'"> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Web.DynamicData" /> | ||
<Reference Include="System.Web.Entity" /> | ||
</ItemGroup> | ||
|
||
</Project> |
64 changes: 64 additions & 0 deletions
64
test/fixtures/dotnet-conditional-frameworks/expected-tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"dependencies":{ | ||
"System.Reflection":{ | ||
"depType":"prod", | ||
"dependencies":{ | ||
|
||
}, | ||
"name":"System.Reflection", | ||
"version":"4.3.0", | ||
"targetFrameworks":[ | ||
"netstandard1.3", | ||
"netstandard2.0" | ||
] | ||
}, | ||
"System.Reflection.TypeExtensions":{ | ||
"depType":"prod", | ||
"dependencies":{ | ||
|
||
}, | ||
"name":"System.Reflection.TypeExtensions", | ||
"version":"4.3.0", | ||
"targetFrameworks":[ | ||
"netstandard1.3", | ||
"netstandard2.0" | ||
] | ||
}, | ||
"Microsoft.CSharp":{ | ||
"depType":"prod", | ||
"dependencies":{ | ||
|
||
}, | ||
"name":"Microsoft.CSharp", | ||
"version":"", | ||
"targetFrameworks":[ | ||
"netstandard3.0" | ||
] | ||
}, | ||
"System.Web.DynamicData":{ | ||
"depType":"prod", | ||
"dependencies":{ | ||
|
||
}, | ||
"name":"System.Web.DynamicData", | ||
"version":"", | ||
"targetFrameworks":[ | ||
"netstandard3.0" | ||
] | ||
}, | ||
"System.Web.Entity":{ | ||
"depType":"prod", | ||
"dependencies":{ | ||
|
||
}, | ||
"name":"System.Web.Entity", | ||
"version":"", | ||
"targetFrameworks":[ | ||
"netstandard3.0" | ||
] | ||
} | ||
}, | ||
"hasDevDependencies":false, | ||
"name":"LiteDB", | ||
"version":"" | ||
} |
Oops, something went wrong.