Repository navigation
Conversation
See https://msdn.microsoft.com/en-us/library/dd393574.aspx: > In MSBuild, element and attribute names are case-sensitive. However, property, > item, and metadata names are not. This is needed to make regular .pp templates work correctly.
|
what is PP template? |
|
@forki no clue about that |
|
One thing that's missing here, and the part that complicates the template feature somewhat, is that nuget files can have content both per-language and per-framework. Here's the relevant portion from the documentation(check the Here's the relevant paragraphs:
What this means is that during install we need to inspect the package layout and filter the list of content to include conditionally by target framework, possibly by wrapping in Choose nodes like we have to with package references. |
|
@baronfel and I have talked about this before, this currently a bugged feature in Paket where content files in |
cloudRoutine
left a comment
There was a problem hiding this comment.
@gimpf this is a feature that's been on our TODO list for a while, but we just haven't gotten around to it. Is this properly taking into account the language sub directories */cs/*,*/fs/*,etc. ?
| open System | ||
| open System.Collections.Generic | ||
|
|
||
| type CiString(value) = |
There was a problem hiding this comment.
needs a doccom explaining what this is for
| fun f -> f.Name.EndsWith ".tt" | ||
| fun f -> f.Name.EndsWith ".ttinclude" | ||
| fun f -> f.Name.EndsWith ".install.xdt" | ||
| fun f -> f.Name.EndsWith ".uninstall.xdt" ] |
There was a problem hiding this comment.
couldn't this be achieved with an active pattern for EndsWith and a pattern match on fileinfo.Name?
There was a problem hiding this comment.
also it'd be good to emit a warning when a "blacklisted" file has been encountered
|
Closing due to inactivity, because we refactored a lot in the mean time (so it might be better to start from scratch) and because I think needs to go into |
PP Templates are very primitive; they allow substitute$TAGS$ with the value of the project property (sometimes stuff like RootNamespace etc.).
Tests, again, are still missing, but would you consider integrating that functionality?