Questions tagged [project-reference]
161 questions
0
votes
1 answer
A Nuget package copies the static files from its reference project when installed
I have a project called "A" project, and it contain some static files (like dll or others).
And it's csproj is as follow
Always
…

CYL
- 95
- 1
- 12
0
votes
1 answer
Visual Studio: Copy files into output with their package
I have a project called "A" project, and it contain some files (like dll or others).
In my main project, I used "Project Reference" to reference this project, and add some context into the .csproj of A as follow:
…

CYL
- 95
- 1
- 12
0
votes
1 answer
Project dependencies in a nuget package are being copied to the application bin folder despite being marked PrivateAssets
I have .netcore2.0 app called MyHelper.
MyHelper is referencing a .netstandard2.0 project called B.
MyHelper is published as a nuget package.
I need to use MyHelper in other projects and solutions only at build time, therefore in my other projects I…

daregazi
- 65
- 9
0
votes
1 answer
Uno WASM could not resolve package when using DLL
I'm working on an WASM app built with the Uno Platform, and have added a project reference that has been compiled and points to a DLL.
Now, when compiling, I get the error:
Error: Unhandled Exception: Could not resolve System.Text.Json (1, 1)
at…

Arlo
- 963
- 3
- 11
- 20
0
votes
0 answers
Meaning and Purpose of Different Visual Studio Project References
Can anyone tell me what the difference is here between the two Visual Studio project reference types? One has two grey squares connected by a line, while the other has a rounded blue sqaure with two circles in it with a small circle in the upper…

Barry Franklin
- 1,781
- 1
- 27
- 45
0
votes
1 answer
Prevent Visual Studio from duplicating referenced dll
I'm working on a plugin system for my app (C#, WPF). My project structure is like this:
Solution 'App'
Plugins (solution folder)
Plugin1 project (dll)
Plugin2 project (dll)
MainApp project (WPF)
PluginInterface project…

AmirSina Mashayekh
- 498
- 1
- 5
- 21
0
votes
1 answer
Project Reference & Nuget Package Reference Conflict - Key with same name already exists
Using Visual Studio 2019 Version 16.6.0 Preview 2.1 - I have a solution with two projects:
Project A - Has a nuget package dependency Package1
Project B - Has a project reference to Project A
I now also require that Project B include the same nuget…

Thrifty2100
- 105
- 1
- 8
0
votes
2 answers
How to handle references in a C# Visual Studio solution?
Let's say I have a visual studio 2019 solution containing two projects written in C#, one of which is a console app and the other one is a class library.
The console app now has a reference to the class library which by itself needs entity…

chris_copper
- 3
- 2
0
votes
2 answers
How to access to some project which is referred to from another project?
Project 1
-- Class X
Project 2
References Project 1
Project 3
* References Project 2
* Needs ClassX ?
I want to access ClassX from Project 3 - is there anyway to do that?

Thang Dinh
- 13
- 2
0
votes
2 answers
using MySql.Data.MySqlClient; is not working; Release error
Error Message:
CS0246: The type or namespace name 'MySql' could not be found (are you
missing a using directive or an assembly reference?)
Reference file is included in reference folder.
Project is running on debug, but not working on release…
0
votes
0 answers
In a published application on IIS a project reference is unloaded everytime I restart the server or change something in the application config
I wrote a rest app in C#, in one solution I have two projects. Main project, lets say project1 uses project2. Project2 is connected via reference system and adequate dll is created when I publish project1. After that publish project1 is hosted on…

Jędrzej
- 49
- 8
0
votes
1 answer
Adding WCF proxy class hides Visual Studio project reference
I have a weird visual studio error which is bugging me.
I am using Visual Studio 2010
My solution is small and contains 2 projects:
Project 1 a class library contains the following classes:
Namespace1.DataClass (a serializable class to hold…

Shane
- 875
- 1
- 6
- 24
0
votes
0 answers
Including a non referenced dll from a package
I have a nuspec file that looks like this:
MyDll.Service
1.0.0
…

Bagzli
- 6,254
- 17
- 80
- 163
0
votes
0 answers
Adding the references to the project just before the build
I need to add some references to another project or dll just before the build process in Visual Studio 2015 starts and then I need to remove the reference after build.
Is it possible and what is the best approach for this?
Can I also add shared…

Dzior
- 1,485
- 1
- 14
- 30
0
votes
0 answers
Adding a project reference FROM .csproj TO .wixproj
I have a visual studio 2010 solution with multiple C# projects and WiX projects. I'm specifying my build order through project reference, because I am using MSBuild to build my project. Using build order references won't work, because they only work…

Mahogany
- 73
- 1
- 8