Output directories not in msbuild files?

Please look at this build log (at the end where it runs GitLink):

https://ci.appveyor.com/project/objorke/oxyplot/build/2014.1.590-alpha

On all build servers, this works good except AppVeyor. I already implemented several workarounds in GitLink to support fallback values, etc. Basically it tries to get the output directory of a project:

https://github.com/CatenaLogic/GitLink/blob/develop/src/GitLink/Extensions/ProjectExtensions.cs#L92

It uses TargetDir (which should be available). After that it falls back to OutputPath and OutDir. None of these properties have an evaluated property value in AppVeyor. Do you have any idea how this is possible? If I run this on other systems (continua ci, teamcity, etc, it works fine). Maybe the agent uses a different installation setup of visual studio / msbuild?

If you want I can give you a command line tool that dumps all available properties to the console, but you can also easily clone GitLink and run it on any project on your local machine as well.

  1. OK, I see MSBuild API is used to analyze the project. Yes, a simple command line tool localizing the issue would be great.

    Btw, I'm wondering where do you select current platform/configuration to read correct settings?

  2. I have created the command line tool here:

    https://github.com/GeertvanHorrik/DumpMsbuildProperties/releases/tag/untagged-bcc062d82fff636262b9

    Full source here:

    https://github.com/GeertvanHorrik/DumpMsbuildProperties

    Note that you have to run it in the directory containing a solution file *or* set the working directory. It will create output.log in the same directory as the DumpMsbuildProperties.exe with all properties dumped.

    I hope it can help you find the issue.

    • DumpMsBuildProperties.exe (available to support staff) 553 KB
  3. Bizarre. Can you update the configuration by also building https://github.com/oxyplot/oxyplot?

  4. But I did nothing - just ran your example on AV...

    How do you pass current configuration into GitLink? Maybe this is the problem?

  5. Defaults to release (just like this one does), I actually just copy/pasted the ProjectHelper. In GitLink you can specify -c debug to specify debug. The strange thing is that if I run it locally (just compile the sln => run gitlink), it all works.

  6. This is "works on my machine" problem :)

  7. I use GitLink on a lot of projects, never had this issue before. So for me it's either OxyPlot or AppVeyor (but since it worked locally, I assumed AppVeyor).

  8. Added -debug to GitLink and reran the build. Looks like OutDir is empty. Going to investigate why:

    https://ci.appveyor.com/project/objorke/oxyplot/build/2014.1.591-alpha

  9. Found the issue. You need to explicitly set the platform to "AnyCPU" instead of the default "Any CPU" it defaults to.

    https://ci.appveyor.com/project/objorke/oxyplot/build/2014.1.593-alpha

  10. That's great, thanks for the update!

    -Feodor

  11. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions