Questions tagged [assembly-references]

142 questions
1
vote
2 answers

C# ListView SelectedIndices and SelectedItems Count Issue

Having some trouble with these methods on C# 2010 express with a new winform project both data types have the method count, which seems to be documented on MSDN, however I can not seem to get them to work. The listview control itself seems fine when…
user427165
1
vote
2 answers

Visual Studio adds unnecessary dll files in the output directory

I'm using Visual Studio 2022 preview. I have a .NET 4.8 solution that contains two library projects, to make it simple let's say one is named "First" (which generates "First.dll") and the other is named "Second" (which generates "Second.dll"). The…
1
vote
0 answers

.NET Core - why do 'classic' assembly references not get put into the generated .deps.json files at a higher level?

In .NET core, the generated .deps.json file controls assembly loading - if your dependencies aren't in the .deps.json for your top level application, they will not get loaded unless you start handling AssemblyResolve events and all that stuff. The…
1
vote
2 answers

Unity : namespace TMPro not found

I have a little problem. Unity doens't recognize a namespace : TMPro. It's the name space that make us to use Text Mesh Pro component with scripts. However, It is not found only in files of a package downloaded on git : XCharts. I don't know how to…
1
vote
0 answers

How can I solve the missing Office Reference when building on DevOps?

I'm trying to compile a c# project on azure DevOPS but I get this error on the Build Solution step of the pipeline: ##[error]AddColumnLSCT\MainWindow.xaml.cs(3,22): Error CS0234: The type or namespace name 'Office' does not exist in the namespace…
TemoZat
  • 23
  • 1
  • 5
1
vote
1 answer

Can't load System.ValueTuple in dynamically compiled code

I want to use Tuple in dynamically compiled code on .net 4.6.1 . Below is a minimum test case. Any help would be appreciated. Thanks! // First, install System.ValueTuple 4.5 package via nuget into test Project. using System; using…
Ben
  • 1,133
  • 1
  • 15
  • 30
1
vote
1 answer

Duplicate FrameworkReference for Microsoft.WindowsDesktop.App

I have a .NET Core 3.1 WPF application that uses System.Reactive version 4.4.1. It builds and works successfully but gives the following warning after building: "A FrameworkReference for 'Microsoft.WindowsDesktop.App' was included in the project.…
arlvin
  • 379
  • 1
  • 4
  • 11
1
vote
1 answer

Why am I getting: The type 'IThirdParty' is defined in an assembly that is not referenced. You must add a reference to assembly 'ThirdPartyAssembly'?

Suppose there is third party assembly ThirdPartyAssembly.dll that expose following: namespace ThirdPartyAssembly { public interface IThirdParty { void GetInstance(ThirdPartyInfo info); } public class ThirdPartyInfo { …
Tim
  • 398
  • 2
  • 6
  • 13
1
vote
1 answer

ComputeJobOptimization Attribute isnt working. Missing a using directive or an assembly reference?

Trying to use the job system in unity. [ComputeJobOptimization] cant be put in my code. Assets/GameManager.cs(26,6): error CS0246: The type or namespace name 'ComputeJobOptimization' could not be found (are you missing a using directive or an…
1
vote
0 answers

Scaffolding Error Microsoft.EntityFramework

I am currently learning how to work with Razor Pages using the following tutorial on Microsoft's Website: Getting Started with Razor Pages in ASP.NET Core In the Add a Model section of the tutorial, it shows how to Scaffold using the Command…
1
vote
1 answer

MessageDialog missing in C# WPF

I am new in WPF C#. I want to use a MessageDialog, but I can't instantiate it because I can't find its namespace reference. Please note that I can use a MessageBox. I take a screenshot here: What should I look to solve the problem? Update I tried…
shogitai
  • 1,823
  • 1
  • 23
  • 50
1
vote
0 answers

Issue with references after pc restart

Hi guys as title says i just restarted my pc and got this missing references issue, I dont know why I came into this trouble related to msil architecture, missings dlls, in code is not even recognize extensions methods, please help me guys. I'm…
1
vote
1 answer

.NET Core vs Classic: differences compiling generic type. Error: "The type '..' is defined in an assembly "

We have three assemblies: Assembly1 (Standard) public class ClassParent{ } Assembly2 (Standard) references Assembly1 public class ClassChild: ClassParent{ } Assembly3 (uses Shared project) references Assembly2 public interface…
Roman Pokrovskij
  • 9,449
  • 21
  • 87
  • 142
1
vote
0 answers

Could not load file or assembly WebDriver.Support (Selenium)

At run-time I get the following error: Could not load file or assembly 'WebDriver.Support, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly…
Lee
  • 1,591
  • 1
  • 14
  • 28
1
vote
0 answers

Sandcastle Unresolved Assembly Reference

I am trying to use Sandcastle Help File Builder to take the XML from my methods and create documentation for my project. I have the XML and the DLL added as Documentation Sources and have configured the Wildcard Assembly References plugin to add my…
Andrew
  • 1,544
  • 1
  • 18
  • 36