165 questions
0
votes
0
answers
35
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 → ...
1
vote
1
answer
72
views
How to get all projectReferences of .NET 8.0 project as an array in Startup.cs
I have an ASP.NET backend project that includes several small class library projects as references.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<...
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 ...
1
vote
1
answer
683
views
How to use two different package versions in one solutions with project dependencies
I've created a solution with three projects inside.
One of the projects is named Controller and uses Appium.WebDriver, which requires Selenium version 3.141.
The second project is named Runner and ...
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 ...
2
votes
1
answer
4k
views
Include Nuget packages in project reference
I have tried searching for an answer to this question, but everything I find is referring to building a Nuget package of my own. To be clear, I am not looking to create a Nuget package, i simply want ...
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 ...
1
vote
1
answer
655
views
Visual studio which DLL to select when adding project references
I'm really confused with all these different DLL files that can be used to add a project reference in Visual Studio.
After having clicked on 'Add Project Reference', I choose for 'Browse'. In the ...
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
...
1
vote
1
answer
285
views
C# Project Reference Warning Type confilict
I have a main asp.net core project which is called "API" and inside of it I have another project called "API.Tests" for xunit tests. So when I'm referencing main project (<...
0
votes
1
answer
653
views
Hide public classes of a reference project
I have created a library project that uses several NuGet packages. When I load my library into another project as a reference, the outer project can see and call all the references that my library ...
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 ...
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....
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
0
answers
65
views
Visual Studio 2015 compiling against a project reference instead of the defined dll reference
I have a Visual Studio 2015 solution with two projects: <foo> and <bar>. <bar> compiles to <bar.dll>. <foo> has a reference to <bar.dll> and NOT to the <bar> ...
0
votes
1
answer
280
views
Creating and maintaining same codebase (class library) with multiple assembly versions as dependency
Given following source code which need to be maintained within a class library project:
using Newtonsoft.Json;
namespace Zephyr.SharedProject.Core
{
public class TestClass
{
public ...
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
269
views
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: ...
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 ...
1
vote
1
answer
1k
views
Visual Studio 2019 C++ Reference Project Not Built Before Dependent Project Tries To Link in Release Configuration using MSBuild
I have a solution that contains both C++ and C# projects that is built in a nightly CI build on a remote machine. The build script checks out a clean copy of the source and builds both debug and ...
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, ...
0
votes
2
answers
217
views
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 ...