Questions tagged [project-reference]

161 questions
0
votes
2 answers

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 &/or the DLL directly. It keeps reverting back to the NuGet DLL in my Nuget folder: C:\Users\jeremy.nuget\packages\ Steps to cause problem: Delete a Base NuGet…
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
0
votes
0 answers

Azure Functions - Adding project reference causes package error

I'm making an Azure Function with an Http Trigger. Using just the basic boilerplate I added a reference to my library project that just contains most of my application logic. The library project works just fine and builds without error but after…
0
votes
1 answer

Cannot find module while using project reference

Im creating a multiplayer dungeon crawler game in typescript. I have three typescript projects, one server, one client, and a common project where the idea is that both the server and the client can share code. One example is the creation of the…
wietze
  • 15
  • 5
0
votes
1 answer

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 repository folder, there are two…
user20291437
  • 99
  • 1
  • 8
0
votes
0 answers

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: Could not load file or assembly 'X' or one of its…
GoldNova
  • 147
  • 1
  • 1
  • 11
0
votes
1 answer

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 (TS sources) node_modules …
Mario Vernari
  • 6,649
  • 1
  • 32
  • 44
0
votes
0 answers

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/668834?space=62 If I setup a reference from…
Derek
  • 7,615
  • 5
  • 33
  • 58
0
votes
0 answers

Assembly unable to detect 1 or 2 referenced project assemblies?

I have a reference to a project here named SocialMedia.Infrastructure which in turn is depended on SocialMedia.Core. When running a command to get referenced assemblies like this Assembly.GetExecutingAssembly().GetReferencedAssemblies() It's…
0
votes
0 answers

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 uses. MyLib.csproj
nrofis
  • 8,975
  • 14
  • 58
  • 113
0
votes
1 answer

How to reference multiple outputs from a project using ProjectReference

Assume Project A produces a primary assembly but also some assemblies through the use of an MSBuild task (of our own making). Is there a way for Project B, that has a ProjectReference to Project A, to also reference the assemblies that are produced…
0
votes
2 answers

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 from other projects. It handles the underlying file…
julian bechtold
  • 1,875
  • 2
  • 19
  • 49
0
votes
1 answer

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.csproj depends on Bar.csproj. Bar.csproj isn't a…
Placu95
  • 11
  • 2
0
votes
1 answer

How to manage Nuget package dependency version with project references from a build server

I have a simple project dependency structure: project A references project B On my build server, both projects are built as Nuget packages: package A and package B. In project B, I have the package version set to 2.0.0 manually. when I test…
0
votes
0 answers

Visual Studio 2015 compiling against a project reference instead of the defined dll reference

I have a Visual Studio 2015 solution with two projects: and . compiles to . has a reference to and NOT to the project. When I try to compile , it appears to be looking at the project instead of…
0
votes
1 answer

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 TestClass() { string json =…
Zephyr
  • 314
  • 2
  • 8