-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Solution meta-project doesn't propagate target return values for custom targets #3658
Comments
I think that'd be a reasonable enhancement, though I hope it's never needed. |
Why should it not be needed? It if was not needed I wouldn't file an issue. I would like to collect some information from all projects in a given solution. For example, find all test projects and all platforms they target and need to run tests on, so we can schedule test runs more efficiently than if we launch XUnit from within each test project. |
For that use, consider waiting for microsoft/vstest#411, which the test folks are working on. Calling targets for every project in a solution is error-prone, because solutions can contain non-MSBuild projects and heterogeneous projects that don't all contain the desired target. So building infrastructure that depends on it seems risky to me. |
Good point. It would also be useful to have an option for skipping non-existing targets, similarly to the option |
There is |
@rainersigwald Cool. Yes, it's definitely dependent on the scenario. You can either require all projects in the solution to import targets file with the custom target and then expect it to be everywhere or not if it's optional. |
Steps to reproduce
Project file a.csproj
Solution A.sln containing a.csproj.
Project file x.proj
Command line
Expected behavior
Things: 'A;B;C'
Actual behavior
Things: ''
Environment data
msbuild /version
output:The text was updated successfully, but these errors were encountered: