Questions tagged [project-reference]

161 questions
2
votes
1 answer

Nuget not adding reference for assemblies whose name ends in .Resources

When using the NuGet package manager to install a package containing an assembly whose name ends in .Resources, the package installs correctly but a reference to that assembly is not added to the project. Tools: - Visual Studio Enterprise 2015…
Wayne Birch
  • 645
  • 6
  • 18
2
votes
2 answers

System.Windows.Forms reference in Resources.resx

I have a class library project (.NET Framework 4.5.1) that compiles and works. When analyzing with ReSharper, it reported that the generated Resources.resx file references System.Windows.Forms, which isn't referenced in the project.
TrueWill
  • 25,132
  • 10
  • 101
  • 150
2
votes
2 answers

Update the reference from Microsoft.Phone.WinJS.2.1, version 1.0.9651.0 to version 1.0.9651.40228

I was building/deploying my Windows Phone app in Visual Studio Professional 2013 with Update 3. The following console output showed up: 1>------ Build started: Project: CapturingVideos, Configuration: Debug ARM ------ 2>------ Deploy started:…
2
votes
2 answers

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 packages.config When I right-click on Controllers…
OceanBlue
  • 9,142
  • 21
  • 62
  • 84
2
votes
2 answers

Adding programmatically in C# a project reference (as opposed to an assembly reference) via EnvDTE

In visual studio when you add a reference to an existing project in your solution in the .csproj file it ends up like so: {15EC8369-B0C5-4F71-A366-19042F450A2D}
Pyramid Newbie
  • 6,865
  • 3
  • 24
  • 28
1
vote
0 answers

Using NuGet with TFS across multiple development machines (DLLs not copied across)

Possible Duplicate: Using NuGet to share code across developers I've recently swapped from managing library use by explicitly referencing 3rd party library DLLs that are stored in my projects in TFS in a 'libs' folder, to letting NuGet handle…
dumbledad
  • 16,305
  • 23
  • 120
  • 273
1
vote
1 answer

Project reference dll --> FileLoadException

I'm having a problem with project references in .Net I have three projects: Console Application MVC 3 Web Application Class library (Mails) Both console and web apps reference the Mails project. Mails project references RazorEngine.dll. Now, when I…
1
vote
1 answer

Class library namespace does not exist in WPF app despite project reference

I have a VS2010 solution with a "hello world" WPF Application and a Class Library project. In my class library, I have defined a class in a namespace called ReportImageMerge.Core. I have that project referenced by my WPF app project, but when I run…
PancakeParfait
  • 175
  • 1
  • 9
1
vote
1 answer

How could an object get a reference to a class that is in a different (and unreferenced) assembly?

I have two projects: A/B. Project A is the project that contains all of the winforms which are bound to objbects in B (logic items) A has an object of type A.Form B has objects of type B.Serializer B.Logic Now, A has a reference to B (but B does…
Steven Evers
  • 16,649
  • 19
  • 79
  • 126
1
vote
1 answer

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 (), to get access to main's project…
1
vote
0 answers

visual studio 2022 .net project reference with wrong package version

I have updated the ef core package in my ServiceModel Project from 6.0.0 to 6.0.1 due to installing ef tools. This resulted in a compiler error stating that there is a missmatch in ef core versions between my main project and the ServiceModel. I…
S. Stumm
  • 290
  • 1
  • 9
1
vote
1 answer

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(userMessage); } ``` But to compile and use this function i need…
1
vote
1 answer

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. Instead, the tsconfig.json is calculated based…
David
  • 2,528
  • 1
  • 23
  • 29
1
vote
1 answer

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 esnext modules, so I want shared to have two configs…
ais
  • 2,514
  • 2
  • 17
  • 24
1
vote
0 answers

Access types of a reference project from another

I have the following project structure: - / - tsconfig.json - tsconfig-base.json - /src - types.ts - tsconfig.json - /test - myTest.ts - tsconfig.json - /dist /tsconfig.json is a solution, it references /src/tsconfig.json…
Johnny Bueti
  • 637
  • 1
  • 8
  • 27