Comments (6)
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.
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.
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.
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.
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.
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Worked for me
from msbuild.
Related Issues (20)
- Expose LockCheck to task authors
- [NETSDKE2E]With NET9 preview 4 SDK installed, Reductant "build succeed" log displays during creating project in CLI. HOT 4
- Transitive package reference from project reference ignores Copy Local/Private setting for .Net Framework projects. HOT 5
- [Bug]: Artifacts are placed in directory of lowest `Directory.Build.props` if more than one is present HOT 1
- [Feature Request]: The warning in the WriteCodeFragment task should be changed to report the name of the attribute type whose definition it did not find. HOT 9
- [Feature Request]: SolutionFile.Parse doesn't work with the new slnx file HOT 4
- Fix non-thread safe Flush() in RedirectConsoleWriter HOT 3
- [Performance]: dotnet/runtime tests are bottlenecked by MSBuild performance HOT 6
- [Performance]: SmallElementLocation optimisation doesn't actually do anything HOT 1
- Broken MSBuild on Android Build .NET MAUI HOT 2
- [Feature Request]: Support management of daemons and other long-lived binaries using the same lifetime as MSBuild worker nodes
- [Infra] SampleAnalyzerIntegrationTest randomly timeouting in CI HOT 4
- Research meaning of null keyword in MSBuild
- [Feature Request]: Add ProjectGraph APIs for target framework negotiation
- Complex project setup with plugins and git submodules, need help building very specific output HOT 2
- Refactor Expander.TryExecuteWellKnownFunction
- .NET Framework MSBuild doesn't cast `char` to `string` in property functions HOT 4
- [Feature Request]: Expose `SolutionFile._solutionFilter` as a read-only HOT 1
- Check performance with/without analyzers. HOT 11
- Fix indentation of multiline messages in Terminal Logger with quiet verbosity. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msbuild.