Skip to content

Commit

Permalink
feat: support empty target framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Votradovec committed Jan 4, 2019
1 parent 9d4ece5 commit 4618bdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/parsers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ export function getTargetFrameworksFromProjectConfig(manifestFile) {
const packages = _.get(manifestFile, 'packages.package', []);

packages.forEach((item) => {
if (!item.$.targetFramework) {
return;
}
const targetFramework = item.$.targetFramework;

if (!_.includes(targetFrameworksResult, targetFramework)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="jQuery" version="3.1.1" targetFramework="net46" />
<package id="NLog" version="4.3.10" targetFramework="net46" />
<package id="NLog" version="4.3.10" />
<package id="bootstrap" version="3.0.0" targetFramework="net451" />
</packages>

0 comments on commit 4618bdf

Please sign in to comment.