Skip to content

Add Type Metadata to each Definition item - #61

Merged
natidea merged 4 commits into
dotnet:masterfrom
natidea:addTypeMetadata
Aug 19, 2016
Merged

natidea merged 4 commits into
dotnet:masterfrom
natidea:addTypeMetadata

Conversation

@natidea

@natidea natidea commented Aug 17, 2016

Copy link
Copy Markdown
Contributor

Resolves #27

To facilitate building dependency tree, added the following type Metadata to definitions:

Definition Types
TargetDefinitions target
PackageDefinitions package, project, externalProject, unresolved (i.e. using types provided by NuGet)
FileDefinitions assembly, frameworkAssembly, content, unknown
DiagnosticDefinitions (TODO #26) diagnostic

/cc @abpiskunov @dotnet/project-system

}
else if (currentFileType != fileType)
{
throw new Exception($"Unexpected file type for {fileKey}. Type is both {fileType} and {currentFileType}");

@abpiskunov abpiskunov Aug 18, 2016 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string is hardcoded, should we put it to Resources?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, need to resolve some errors with resource file. Tracked by #33


In reply to: 75345953 [](ancestors = 75345953)

@abpiskunov

Copy link
Copy Markdown
Contributor

Please add unit tests for the whole task logic (in a separate checkin if you want, to bring those changes quicker).

:shipit:

}
}

// save file type metadata based on the group the file appears in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seems unnecessary. The code seems clear enough.

@natidea
natidea merged commit 0937869 into dotnet:master Aug 19, 2016
nguerrera pushed a commit that referenced this pull request Oct 10, 2016
Add Type Metadata to each Definition item
sbomer pushed a commit to sbomer/sdk that referenced this pull request Sep 19, 2017
mmitche pushed a commit to mmitche/sdk that referenced this pull request Jun 5, 2020
Checkin RC updates for web targets file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Type metadata to all Definition items in Package Dependency Resolution task

4 participants