Questions tagged [copy-local]
26 questions
2
votes
1 answer
Xap file contents changes if built in Visual Studio or build server
I'm using MEF with my Silverlight 4 app to dynamically load xap files. To optimize this process, I've removed various assemblies from my xaps since I know they've already been loaded by the base xap. This reduces the size of my dynamically loaded…

Raj R
- 502
- 1
- 4
- 13
2
votes
3 answers
how to set all projects in solution to copy local false
is there a quick way to mark all the solution projects references as Copy local false? is there some tool that does that? it's pretty messy to mark about 200 projects manually

atikot
- 4,761
- 4
- 26
- 34
2
votes
1 answer
Why do I get "System.IO.FileNotFoundException: Could not load file or assembly" when setting reference to "copylocal=false"?
Here is the situation: I am trying to run unit tests using a test project that I'll call "TestProject". It is testing a class in another project that I'll call "Class1" and "Project1".
Project1 does some dynamic lazy-loading of various dll's at…

FireWingLead
- 439
- 6
- 19
1
vote
1 answer
"FileNotFoundException" exception thrown because of "Copy local = false"
I have about 20 solutions with 5-10 projects each and they reference each other and some 3rd party libraries as well. I have an Output folder, were all of them are built. So I don't want to have any copies of each assembly that is being referenced…

Miroslav Georgiev
- 11
- 2
0
votes
1 answer
Copy local - .dlls not being copied
I have 3 projects in a Visual Studio solution. One of the projects (Driver) contains references to the .dlls produced by the other two projects. The copy local property is set to true for both. Neither of these .dlls get copied to Driver's bin/Debug…

KyleM
- 4,445
- 9
- 46
- 78
0
votes
0 answers
How can I stop auto-generating dll files I am referencing ? (Visual Studio)
When I build my Visual C# Project, It generates not only .exe file but also .dll files which are referenced in this project.
I tried to find where to turn on/off it, I couldn't find it.
How can I stop generating ?
0
votes
1 answer
.NET Core 3.0 WPF "Copy Local" Assembly Issue
I've switched my current WPF application to .NET Core 3.0. Everything works fine, except one thing! I added a project reference to my app, and set the "Copy Local" property to "No" (I want to use it as embedded). And now, my application is…

Tamakwa
- 21
- 4
0
votes
0 answers
System.Buffers NuGet package >=4.4.0 copies ~100 System dlls to output directory when targeting .NET 4.6.1 through 4.7.0
I am using Visual Studio 2017. When I create a new Console Application targeting .NET 4.5, 4.5.1, 4.5.2, 4.6, or 4.7.2 and add the NuGet package System.Buffers versions 4.4.0 or 4.5.0 when I build the output directory has only one DLL in it, the…

Quantic
- 1,779
- 19
- 30
0
votes
1 answer
I need to exclude a reference when the solution is published
There is a reference we are using in our solution that is causing a problem when we deploy the code.
The reference is System.Management.Automation. When we publish solution we archive the files using EncryptionWizard 3.4.13 (the government edition)…

Abbey Normal
- 33
- 1
- 8
0
votes
0 answers
How to guarantee that a project has all references from the projects it references?
Consider a solution with many class library projects. Each of them has a bunch of NuGet packages installed, and there is a single unit tests project for each of these projects. Keeping in mind that the class library projects' references are…

julealgon
- 7,072
- 3
- 32
- 77
0
votes
1 answer
Visual Studio 2008 : Default value for CopyLocal on different PCs
I am currently training a junior engineer in this job I have been working on for several years. It is in C# under Visual Studio and has one solution with several projects under it.
One of the projects generates an application, and when I debug that…

jdl_sopra
- 91
- 1
- 9