Giter Site home page Giter Site logo

OutputPath vs OutDir about msbuild HOT 6 CLOSED

dotnet avatar dotnet commented on May 22, 2024 11
OutputPath vs OutDir

from msbuild.

Comments (6)

AndyGerlicher avatar AndyGerlicher commented on May 22, 2024 12

Team triage: We also agree that this is unfortunate, but we need to be conservative on this because of legacy issues. This is not something we plan to address at this time.

from msbuild.

JunielKatarn avatar JunielKatarn commented on May 22, 2024 10

OutDir and OutputPath are distinguished for legacy reasons, and OutDir should be used if at all possible.

@rainersigwald Sorry, I didn't really get it. Which one should I use (new project, no legacy dependencies).

from msbuild.

sliekens avatar sliekens commented on May 22, 2024 4

Thanks for taking time to look at this. I really appreciate it.

The way that seems to work best is to keep the OutputPath that is generated by Visual Studio, then set the OutDir as a command argument.

from msbuild.

rainersigwald avatar rainersigwald commented on May 22, 2024 3

To expand on what @AndyGerlicher said, we can't do what you're asking because we too have lost the reasoning behind this decision. The current team thinks it looks pretty broken.

From comments in the targets

OutDir and OutputPath are distinguished for legacy reasons, and OutDir should be used if at all possible.

It seems like we got stuck in the middle of a transition. However, as you've discovered, there's a ton of MSBuild code out there that exploits the differences between the two variables. That keeps us from completing the transition (or for that matter backing it out), because it would cause a lot of churn in customer projects.

from msbuild.

michael-freidgeim-webjet avatar michael-freidgeim-webjet commented on May 22, 2024 3

I found that for Asp.Net Core only OutputPath parameter is working, and in mixed .net 4.61/Core solutions OutDir command argument should be avoided. See my post OutDir vs OutputPath for Visual studio 2015 and Asp.Net Core

from msbuild.

arivoir avatar arivoir commented on May 22, 2024 3

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> Worked for me

from msbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.