You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there could be many use cases for such functionality. In our case it is using custom SDK, that can recognize project name (suffix) and e.g add necessary references to that project just by knowing its name. All in the spirit of "convention over configuration".
The text was updated successfully, but these errors were encountered:
@swiato
I have analyzed the configuration attached - there is an issue with this configuration: primaryOutputs should include the source filenames, and not the names after the rename, therefore the config file doesn't work. Unfortunately, for same reason it is not possible to use same file as the source for 2 target files in case these files are meant to be primary outputs.
I'm attaching the configuration that should work for your case. TemplateProjectRestore - corrected.zip
It's correct that this configuration worked in 2.1, however we don't plan to fix it for later versions.
Please do not hesitate to reopen the issue in case of follow-up questions.
In dotnet version 2.1.604 it was possible to use following construction:
And after that using renamed filenames in primaryOutputs:
Then after using restore postAction everything behaved as expected, restore was performed for both generated projects.
In dotnet version 2.2.204 it does not work anymore, all we get is "MSBUILD : error MSB1009". Attached is simple example of this behaviour:
TemplateProjectRestore.zip
I believe there could be many use cases for such functionality. In our case it is using custom SDK, that can recognize project name (suffix) and e.g add necessary references to that project just by knowing its name. All in the spirit of "convention over configuration".
The text was updated successfully, but these errors were encountered: