-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Wrong "OutputPath" and "OutDir"? #205
Comments
Buildalyzer doesn't actually process the project file on its own (at least not beyond very rudimentary parsing to figure out how to call MSBuild), and the values in There's a few reasons why this could be:
The best way to diagnose what's going on here is probably to log what Buildalyzer is doing and then do it yourself from the command line. For example:
That'll let you see exactly what command line Buildalyzer ran and from where and then you can run it yourself and compare. The next step after that would probably be to generate a binary log and open it with the Structured Log Viewer. That should let you see exactly what's going on under the hood, how and why those output values are being set the way they are, and where or if the common.props file is being processed:
To really get down to what the differences are, use the Project System Tools extension to generate a binary log file from Visual Studio too and compare the two. |
Thank you for response and the description how to analyze it. |
Please use Directory.Build.props and Directory.Build.targets instead of "common.props".
see also .NET 8.0 SDK Artifacts output layout |
@mcreek, Do you have any updates on this? |
This might be helpful. OutputPath vs OutDir |
With Buildalyzer (version 4.1.3) I'm analyzing CSPROJ files which are part of a solution file.
For build-output configuration I'm using one common "common.props" file instead of configuring it at all csproj files individually.
Example of file "common.props"
This "common.props" file is included in each csproj file with
and the "OutputPath" Property is removed in each csproj file .
My directory structure is:
Analyzing the projects with code:
This will print out for "OutputPath": "<drive>\SampleApp\src\SampleAppProj_1\\build\bin\debug"
instead of "<drive>\SampleApp\build\bin\debug"
Same for "OutDir" property.
I'am doing something wrong?
How can I get the correct "OutputPath" and "OutDir"?
The text was updated successfully, but these errors were encountered: