Comments (4)
@drewnoakes for investigation
from project-system.
@govert thank you for the detailed repro. That's very helpful. We will take a look asap.
In ClassLibrary1.csproj, add an assembly reference to the output of ClassLibrary2. This adds a Reference item with its HintPath.
Why use a Reference instead of a ProjectReference? Referencing the output of another project in this way is not supported. For one thing, it hides the build order dependency from the build system. It's possible that the bug here is just a race condition.
from project-system.
In our actual case, we were just referencing an external library (for which we did not have a project, solution or NuGet package) on its own. But when writing up the repro, I tried picking some random assembly from a NuGet package, but that was harder to explain in the write-up than just to add another project and use its output.
The point is not that the extra reference is from a project that is part of the solution, or how it is built. It's just an assembly that is outside the solution and projects and pulled in as a <Reference>
item with a HintPath
(not sure that's important) into a ProjectReferenced
library project. Then the FUTD build transitively copies the extra assembly, inconsistent with a normal build.
(An extra quirk in our case was that the assembly .dll file had been renamed, so the internal assembly name did not match the .dll file name. But that seemed incidental too, and not needed to reproduce the extra copy.)
from project-system.
I tried it now and referencing a library from a NuGet package in the C:\Users\<User>\.NuGet\Packages
cache, or another faraway location, does not cause the copy under FUTD build. Then copying that same library to a directory under the solution directory does causes the FUTD problem again. So, the location relative to the solution file (or ConsoleApp project ?) seems important, but nothing about the assembly itself.
from project-system.
Related Issues (20)
- Flaky: New json files in project directories aren't shown in the Solution Explorer consistently HOT 1
- Unexplained warnings while trying to add System.Web reference HOT 3
- Pipeline template updates
- SDL Renewal - March 2024
- Consider adding "send feedback" on property menu in Project Properties UI HOT 1
- Properties page is blank after close and reopen solution while current tab is not Properties page HOT 3
- PackageReference added under Target is not displayed in Dependency Tree HOT 1
- Visual Studio Build Acceleration not respecting "Copy Local" setting on dependencies. HOT 7
- Support TargetPath and Link metadata on CopyToOutputDirectory items in Properties window
- Copies performed by the Build Acceleration feature should trigger the PostBuild event HOT 1
- Replace occurrences of AsyncSemaphore with JTF-aware semaphore
- Move to Archive Symbols task v4 for servicing branches
- Update Build Acceleration documentation around opt-in/out
- FUTDC doesn't check packed items when GeneratePackageOnBuild is true HOT 6
- VS FUTDC is not considering updates to file-based resources HOT 13
- Files linked into ResX files are not checked by the FUTDC HOT 8
- Generation of Application.myapp while Visual Basic Application Framework is disabled HOT 3
- Support for file nesting for legacy projects HOT 6
- Illegal and C#-only warning levels shown for F# projects
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 project-system.