Questions tagged [project-reference]
161 questions
1
vote
1 answer
Is it possible to reference a C++ project from a C# project?
I'm trying to call some C++ I've written from some C# (also my code) and having troubles with Interop/PInvoke getting a populated int[] back. Is there a way I could just add a compile-time reference to the C++ project from the C# project and call…

Matt Arnold
- 668
- 2
- 8
- 21
1
vote
1 answer
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 built-in command to rush build an incremental build,…

Jason Kleban
- 20,024
- 18
- 75
- 125
1
vote
1 answer
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 release configurations of the solution using MSBuild…

GTAE86
- 1,780
- 3
- 29
- 39
1
vote
1 answer
Why aren't project references being added in visual studio 2019?
I'm trying to build a project downloaded from here to help automate SSIS project builds (SQLSrvIntegrationSrv\sourceCode\sourceCode\main\SSISMSBuild\Project):
https://archive.codeplex.com/?p=sqlsrvintegrationsrv
When I've downloaded, the following…

JTDotNet
- 65
- 11
1
vote
1 answer
How do I make project reference from another "project"?
Before I start, I did try to make an effort to search for answer, but nothing showed up.
Scenario: I created a .net standard library project (via the menu bar) and checked it in TFS. Then, I created a Windows project that needs to use the .net…

Johnny Wu
- 1,297
- 15
- 31
1
vote
1 answer
Is there a way to have a C# solution use project references when local and nuget packages during TFS builds?
We've got two sets of projects, one is framework projects and the other is the actual app. The app references the framework projects directly via the visual studio project reference feature. The framework build process publishes a nuget package…

Omegam44
- 31
- 5
1
vote
2 answers
Adding a service fabric project reference to a unit test is generating an unexpected reference path
Each time we attempt to add a reference to a service fabric Web Api project to a unit test project we have just created we are getting the following issue:
C:\TFS\Finance\Payments.Card\Int\Source\Finance.Payments.Card.ServiceFabric.Web.Api\ obj\x64…

BenM
- 4,218
- 2
- 31
- 58
1
vote
3 answers
Project reference v. reference - C# RuntimeBinding difference?
I have spent the last couple of days refactoring a project. This project uses Dapper and the SqlMapper functionality to map the result of Sql queries onto objects. As part of my refactoring I moved some of the objects to a separate assembly and…

Andrue Cope
- 249
- 3
- 8
1
vote
1 answer
Find out which reference is clicked in a Visual Studio extension
I'm developing a Visual Studio extension where I add elements to the right click (context) menu of the references in a project. This is done by defining a Group with the parent of IDM_VS_CTXT_REFERENCE.
I want to show-hide the menu elements…

vinczemarton
- 7,756
- 6
- 54
- 86
1
vote
0 answers
Using same nuget package for more than one project in solution
I am trying to fix warning
The type 'X' in 'A' conflicts with the imported type 'X' in 'B'
I have solution with 2 projects: A.exe and B.dll, both are referencing same nuget Newtonsoft.Json, therefore a warning.
This question (which seems to be…

Sinatr
- 20,892
- 15
- 90
- 319
1
vote
1 answer
Difficulty with Adding a Reference in Visual Studio (Windows Azure StorageClient)
I've been following alone with this tutorial. Everything is going great, until I get to this part:
Set a reference to the StorageClient
library. You can either add the
sample project to the solution and add
a project reference or you can add…

Nick Heiner
- 119,074
- 188
- 476
- 699
1
vote
1 answer
Import XSD targetNameSpace From another Visual Studio project
I have a VB solution with many VB projects in it. One of them, the "Core" project, has a .xsd file in it with a targetNameSpace of urn:CustomNamespace.
In the Core project, I am able to import the xsd namespace by doing the following:
Imports…

ps2goat
- 8,067
- 1
- 35
- 68
1
vote
2 answers
Impact of adding dll reference vs project reference
Is there any build time impact ? We have around 30 projects in our .Net solution and they shared projects are added by project reference. I am thinking to change to dll reference instead to see if there is any build performance gain.
Did anyone have…

user2837167
- 221
- 1
- 5
- 15
1
vote
0 answers
VS2013 Fsharp project assembly reference bin debug not found
In a solution with Fsharp projects (Visual Studio 2013), intellisense can start complaining that references to other Fsharp projects cannot be found. It then tries to locate the referenced dll file in the bin/Debug folder while in every project and…

halcwb
- 1,480
- 1
- 13
- 26
1
vote
1 answer
How does the fusion assembly loader decide which DLL version to load
Keeping things simple, assume are no DLLs in the local folder, or configuration files involved, or publisher policies, or custom resolution. The only place referenced DLLs are is in the GAC.
How does fusion decide which version of the DLLs in the…

Lee
- 1,591
- 1
- 14
- 28