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 → ...
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>
<...
0
votes
1
answer
357
views
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:
...
0
votes
1
answer
655
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
1
answer
1k
views
Intellisense and navigation to references and definitions not working in VS2022
WARNING: I have posted this on Reddit a few weeks ago but never got a response.
I have obtained a large .NET solution from a third-party, and I'm having the following issues with it:
Right click > ...
1
vote
2
answers
489
views
How do I add a conditional attribute in my project file to detect if the code is being built locally versus built in Azure DevOps?
We have decided that even though our data layer is in a separate Azure project, we want to include the .csproj file in our solution so that we are able to debug through API and Datalayers. We do not ...
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 ...
5
votes
1
answer
1k
views
MSBuild - race condition while trying to build project references
I'm facing a weird issue while trying to build using MSBuild.
I'm using MSBuild to build a solution file with /m (parallel build) and BuildProjectReferences set to true.
Suppose I have A.vcxproj and B....
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 ...
0
votes
1
answer
189
views
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 ...
3
votes
2
answers
2k
views
Getting nunit framework not found error when adding a controller
Please bear with me on this, since I am a Java developer just dipping a toe into the ASP.Net world
I started coding in an existing C# VS2012 codebase. It uses nuget and Newtonsoft is mentioned 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
...
0
votes
1
answer
2k
views
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 ...
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(...
1
vote
1
answer
512
views
Programmatically compile Typescript Project references solution and passing options per project
To programmatically compile/build a project references, I use the ts.createSolutionBuilder API.
Problem is that in my use case I don't have the tsconfig.json file written in the filesystem per package....
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 ...
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 ...
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> ...
1
vote
1
answer
60
views
How can I use project reference with difference tsconfig files?
For example I have three projects
shared
frontend
backend
I want to use shared project as project reference in the frontend and the backend
But the backend use commonjs modules and frontend use ...
6
votes
1
answer
3k
views
How can you include/reference a file in a project without copying it to the project directory?
I am writing an application in Visual Studio 2008.
I have a help file that I want to be included in the output of my project.
I want the most recent version of my help file to stay in a folder that is ...
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 ...
18
votes
1
answer
6k
views
dotnet pack project references
I quite like separating functionality across a few assemblies, for example a facade to a data provider, contracts for the data provider and the data provider implementation itself... to my mind, it ...
1
vote
0
answers
235
views
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 ...