-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to support Publish in multi-TFM projects #175
Comments
Wouldn't it be useful to publish all to an output folder and then have sub-folders for each TFM? Can we make that the semantics of outer publish? |
For a single TFM, that would irk me. "I told you to put my project in When a user doesn't specify an output folder, then yes we have sub-folders for each TFM. But if they explicitly passed in an output folder, we should put the end app in the folder they specified. Thus, why it is an error to only specify the output folder when you have multiple TFMs. |
Do you feel the same way about build output dir for single TFM? |
Yes, build and publish output should work the same. If I told you to put it in folder |
We probably need to take a step back and re-optimize for single TFM. If we were to allow/encourage cc @srivatsn |
There are two work items here:
|
Filed a separate issue for 2 above - #251 |
Adding IsInnerBuild check for CleanCopiedAssemblies
See dotnet/cli#4237 (review)
We don't have "outer build" support for the "Publish" target. Thus, you can only publish single-TFM projects, or multi-TFM projects when you explicitly specify the single TFM.
When enabling this scenario, we need to think about how
dotnet publish3 --output C:\temp
works with multi-TFM projects. In the project.json based projects, the CLI raised an error if a user specified an output path, but didn't specify a framework. I'd like to see our tooling support only specifying an output path if the project only targets a single framework. It should only throw if there are multi-TFMs specified in the project and the user only specifies a --output path.The text was updated successfully, but these errors were encountered: