165 questions
0
votes
0
answers
36
views
Can a .NET project template automatically add a project reference to an existing project in the solution when added from Visual Studio?
I have a system where users create .NET plugin libraries. To support this, I’ve built:
A solution template that creates:
a plugin project
a testbed console app
a project reference from the testbed → ...
0
votes
0
answers
71
views
Metadata file '... .dll' could not be found
I have a console application which has project reference of a web application.
This is how the project reference is added in the csproj file of the console application
<ItemGroup>
<...
7
votes
3
answers
10k
views
How to use a C# class in many projects inside the same solution?
I'm learning C# and I don't know exactly how to make a class visible to all projects inside the Solution.
Basically I have many projects, all Windows Forms, all of them have some similarity, so they ...
1
vote
2
answers
1k
views
A Project Reference magically ends up using a NuGet Reference
I've got this weird issue adding a Project Reference via a relative path in csproj file and/or the DLL directly. It keeps reverting back to the NuGet DLL in my Nuget folder: C:\Users\jeremy.nuget\...
2
votes
1
answer
2k
views
NuGet Package can't find and use its own DLLs
I have a problem with making a package of a project with other project as a reference.
In a few words… We have a Net. Core WebAPI with an Onion Architecture. Where those layers are implemented as ...
0
votes
1
answer
631
views
Visual Studio 2022 Resharper can not resolve symbol
I use Visual Studio Enterprise 2022 LTSC 17.2 with ReSharper 2023.1. I work with several projects in one solution and many of them are referenced (we use custom build tool). Visual studio detects them ...
2
votes
1
answer
56
views
Projects reference and Methods signature issue
I got a strange issue after i altered a method signature on a referenced project.
Let me explain what happened:
I got 50 projects P1,P2,..,P50 that depends on a common project C0 that contains common ...
0
votes
0
answers
442
views
How to reference a specific version of a nuget package from another package when both are in the same solution?
I have a solution like that:
Package1
Package2
Both are Nuget packages, Package2 is referencing Package1 as a project reference. Now if I publish Package2 from what I understand this reference will ...
1
vote
0
answers
1k
views
System.IO.FileNotFoundException: Could not load file or assembly 'X' when running the application
I am developing an extension for Autodesk Vault but recently I got the following error when I try to set the references of the programm DLLs to Copy Local = false:
System.IO.FileNotFoundException: ...
5
votes
1
answer
1k
views
PackageReference to project in the same Solution/git repository
At the moment I'm trying to setup a solution with a implementations class library and an abstractions project. I want to have both packages on nuget.org.
Normally when you're just using ...
0
votes
0
answers
877
views
Visual studio add project reference with lib file
It looks like there has been some work done to add support for visual studio c++ project to project references.
https://developercommunity.visualstudio.com/t/MsBuild-to-resolve-and-copy-ProjectRefer/...
0
votes
2
answers
1k
views
Making functions accessible from other classes in same project but not in another Project
I have a project called Category_Helper_Project.
Within this project are two relevant classes: Category_Interface and Category_File_Manager
The purpose of this project is that it can be referenced ...
1
vote
1
answer
1k
views
Add a reference in C# Rider to PresentationFramework
Well, I tried to implement this function
```
static void DisplayMessage()
{
string userMessage = string.Format("1000 in hex is {0:x}", 1000);
System.Windows.MessageBox.Show(...
0
votes
1
answer
175
views
How to leverage dependencies in referenced TypeScript projects?
I'm trying to understand how to break apart my pretty large TypeScript section of a SPA (React with Asp Net 6 as backend).
Let's consider this basic structure:
WebAppSolution
SharedProject
lib
...
5
votes
2
answers
4k
views
Could not load file or assembly for project reference
I have two class library projects and one Web API project. Let it be ClassLibrary1, ClassLibrary2, WebApi.
I add link for Web API to both ClassLibrary1 and ClassLibrary2 as a project reference.
In ...
0
votes
1
answer
431
views
MSBuild -t:pack ProjectReference
I have a C# solution that contains two net472 projects: Foo.csproj, and Bar.csproj.
The projects are in classic format (no SDK version).
The projects use PackageRefernce as package management.
Foo....
10
votes
3
answers
9k
views
XamlParseException: Could not load file or assembly 'ResourceLibrary, ...' or one of its dependencies. The system cannot find the file specified
System.Windows.Markup.XamlParseExceptionoccurred
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'Set ...
12
votes
4
answers
11k
views
Reference in two projects
I've two projects say P1 and P2.
P1 has a reference of P2.
so I can access P2's methods from P1. But what if I want to access P1's methods from P2 then how can I access them?
I know I can't add ...
0
votes
1
answer
1k
views
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 ...
1
vote
1
answer
1k
views
Do `rush build` and `tsc -b` play nice together?
I'm exploring Rush/PNPM and Typescript with project references and incremental builds but I'm a little confused about which of the two will be the best at managing incremental builds.
If I use the ...
6
votes
0
answers
2k
views
Enabling transitive project references in .Net Framework => .Net Standard project
I've got a project setup as follows:
Project B has a dependency on Project A
Project C has a dependency on Project B
I would like Project C to have access to Project A's types transitively. However, ...
3
votes
1
answer
867
views
To which Project should LibVLC dependencies be added?
I have a Solution with .NET Framework Project A which builds a winforms application containing a class, MyPlayer which requires LibVLCSharp. In order for the application to build and run correctly I ...
-1
votes
1
answer
185
views
Should Project References be avoided between C++ projects?
Our large C++ solution has a lot of project references between different projects and it seems to cause problems, most commonly it will try to link the wrong version of the dependency e.g. You'll ...
0
votes
1
answer
386
views
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 ...
16
votes
1
answer
25k
views
TFS dll and references issues
We use Team Foundation Server for our main project. Every time we add a new employee either onsite or offsite we always have to set up the references manually.
Is it possible for TFS to copy/save/...