.net-assembly Questions

3

Solved

I get the following error when trying to update-package on the NuGet Console: At line:1 char:1 + Update-Package Microsoft.AspNet.WebApi -reinstall + CategoryInfo : InvalidOperation: (:) [Update-Pa...
Holdfast asked 20/7, 2018 at 0:15

1

I have a .Net Framework WPF application that I'm currently migrating to .Net6. At startup it examines certain assemblies in the executable folder looking for any with a custom assembly attribute. T...
Antebellum asked 29/6, 2022 at 15:9

1

Solved

I have found an interesting case which I can't fully understand. My runtime - PowerShell 7.2.4 I have two PowerShell Core modules: Net6PowerShellModule and NetstandardPowerShellModule. Net6PowerSh...
Espionage asked 3/6, 2022 at 14:17

1

Let's say I got projects A, B and C. Project A references projects B (v. 2.0.0.0) and C (v. 3.0.0.0). Project B references only project C (v. 1.0.0.0). We got a conflict on our hands, since project...

3

I have a C# project that has direct reference to Newtonsoft.Json and some other references(which has indirect reference to Newtonsoft.Json). I want to upgrade Newtonsoft.Json version from 6.0.8 to ...
Viridi asked 23/5, 2019 at 13:10

1

Solved

Say I have a library, in Nuget, that compiled to netstandard2.0 to support both netcoreapp2.1 and net471. Now, at compile-time, I don't know if I running under net471, netcoreapp2.1, or netstandar...
Permeable asked 9/12, 2019 at 7:45

2

Solved

For some reason when I try to load some assembly and analyze it, I'm getting error Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly... I don't really care about why this exceptio...
Cyrstalcyrus asked 13/6, 2017 at 14:29

2

Solved

I created my Azure Function v2 using Visual Studio 2017. I created a new Queue Trigger function. using System; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.E...
Scriptorium asked 28/2, 2019 at 0:34

1

After dig and search. I find that AssemblyVersion only accept System.Int16 That mean it can't exceed 65,535 value. the output *.DLL assembly version style I need (YYYY.M.D.HHMMSS) (2022.02.20.06092...
Monocoque asked 20/2, 2022 at 4:17

6

Solved

In my Visual Studio 2013 RC project, I'm getting this err msg: "The type 'System.Net.Http.Formatting.MediaTypeFormatter' is defined in an assembly that is not referenced. You must add a referen...

2

Solved

In a C++ project, I can add different Product Version and File Version values to my assembly using VERSIONINFO in a Version resource file: #define VER_PRODUCTVERSION 1,0,0,0 #define VER_PRODUCTVER...
Prestissimo asked 7/2, 2020 at 12:26

21

Solved

I have found plenty of information out there about this error: 'ERROR: Could not load file or assembly '*.dll' or one of its dependencies. Access is denied.’ But i haven't found answer specific to...
Engdahl asked 19/6, 2012 at 7:23

6

Solved

I'm looking for pointers, suggestions, and even dictation on how to manage the three different assembly version numbers for a .NET assembly. The Product version is the simplest, as this seems would...

2

I have integration test project which is hosted in memory usingMicrosoft.AspNetCore.TestHost package. Then I have library that is used in these tests. I want to get assembly name of tests project f...
Weatherworn asked 13/7, 2019 at 19:41

3

I'm using Microsoft.Bcl.Async in my Word addin, my addin is compiled as an exe (test_addin.exe) file, that is loaded as an assembly from Microsoft Word, when I start the executable directly, everyt...
Washedout asked 4/9, 2014 at 11:31

6

I am using the visual studio 2010 for designing a web,and I have used the layer programming,I am using a gidview and objectdatasource, but I get this exeption: "The type 'WebApplication4.view1' ...
Jaenicke asked 18/5, 2013 at 8:0

4

Solved

Using dotnet core: .NET Core SDK Version: 3.1.102 Why is the following returning null ? typeof(MyClassName).GetTypeInfo().Assembly.GetManifestResourceStream("MyFile.cs") I verified the file ex...
Traipse asked 15/3, 2020 at 13:55

2

Solved

I'm working for a .NET Core web api application. My requirement is to show repository's (Bitbucket) latest local git commit id of in the home controller. Can someone help me on this please?
Bibulous asked 25/6, 2021 at 16:48

5

We have custom DLL's that are not included in our initial setup file. They are loaded at runtime. This process worked fine while using .NET 2.0, but we are getting the "The invoked member is not su...
Kamerun asked 10/4, 2012 at 15:2

7

Solved

In a project, there are several references to Ninject library which have their version, and the unit test fails, this is the error : Message: System.IO.FileLoadException : Could not load file or...
Mandibular asked 8/10, 2017 at 6:12

3

Solved

I am trying to build a xamarin component. I have a created a SomeLibrary.dll from a Binding project. Using this SomeLibrary.dll and the Component Template(https://components.xamarin.com/guidelines ...
Absorbent asked 4/10, 2013 at 18:42

3

Solved

I am using the "InternalsVisibleTo" attribute with an assembly to expose the internal methods/classes to my unit test project. I now need to install that assembly into the GAC, so I need to give ...
Loosejointed asked 19/6, 2015 at 16:51

1

I'm struggling to find why a certain assembly is not loaded in a dotnetcore 3.1 webproject (I'm getting Could not load file or assembly 'MyCool.Services.Interfaces, Version=1.0.0.0, Culture=neutral...
Yapok asked 2/3, 2021 at 16:17

9

Goal: From a .NET 4.7 console app, using reflection with Assembly.GetType(), I am trying extract the Type of a netstandard 2.0 class from Assembly X. Then I want to create an instance of this Type ...
Disendow asked 10/7, 2017 at 21:32

8

Solved

What is the best way to check if a DLL file is a Win32 DLL or if it is a CLR assembly. At the moment I use this code try { this.currentWorkingDirectory = Path.GetDirectoryName(assemblyPath); ...
Coly asked 2/9, 2009 at 8:42

© 2022 - 2025 — McMap. All rights reserved.