Itiviti / gradle-msbuild-plugin

Gradle plugin for msbuild execution, supports C# project files for now
Apache License 2.0
101 stars 58 forks source link

msbuild task does not specify any outputs #117

Open citizenmatt opened 4 years ago

citizenmatt commented 4 years ago

The README states:

Prior to execution, this task will parse the provided project file and gather all its inputs (which are added to the task inputs):

  • included files (Compile, EmbeddedResource, None, Content)
  • ProjectReference (recursively gathers its inputs) // TODO: should use outputs instead ?
  • References with a HintPath

But when run, the task is found to be not up-to-date because "Task has not declared any outputs despite executing actions".

Is this expected behaviour? Is there an extra step required to register outputs? And if so, will this mean that with inputs/outputs registered, Gradle will do an up-to-date check without having to call msbuild directly?

ngyukman commented 4 years ago

Hi

To allow up-to-date check we should use the incremental build from msbuild (gradle does not understand msbuild's artifact)