The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard'

I have 1 project. Studio works on 1 computer with the new version. On another, it doesn’t work. Why? What

Main.xaml: The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.

Hi, you have problem with dependency:

image

Download / Update the package in the project.

Nooo :slight_smile:

it’s not this fault. it would be too beautiful;)

And by the way, this package doesn’t work either. And the update doesn’t fix the problem. please do not pay attention to it. As I wrote on 1 computer, it works. and not on others

Have you read this?:

Maybe you will find a clue.

Thanks for the hint.
I have seen. I tried to add in the project.json file.
But I had mistakes. How should I add it correctly?
If I copy a project from 1 computer to another computer, are the references also copied?

Can I add a missing reference with Manage Packages?

Did you copy the entire project or just the workflow from the project?
If you copy the whole project 1: 1 everything moves (only not all packages may be installed from the manager to the local folder: C:\Users\ UserName.nuget\packages.
Or maybe you haven’t added a namespace to the IMPORTS tab?

image

ExcelUtility is a separate problem. It does not work on 1 PC or 2 PCs

The project was copied 1: 1 (but different Studio versions) which should have no effect.

The problem is: dict1.FirstOrDefault (x => x.Value == ‘AQUINOV’). Key

What generates this error:

The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘netstandard, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = cc7b13ffcd2ddd51’.

This problem is very important to me because I cannot solve it. How? and what exactly reference should I add to make Lambda expression work? dict1.FirstOrDefault (x => x.Value == ‘AQUINOV’). Key

The lambda expression worked in the older Studio, but it did not work in the newer studio?

That’s how it goes :).
Copies 1: 1 project and does not work on the older version. And in the newer the project comes from. But that is clearly the library’s fault, not the Studio’s. When I try to compile I get the error:
The type ‘ValueType’ is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = cc7b13ffcd2ddd51 ’…

As you can see, I am trying to get the Key based on the value from the dictionary using lambda.
There is no reference. But I have no idea why or what. And how do I add to make it work.

Please try identify what is the method causing the error like, sometimes its necessary use () in the method if you update the .nuget versions

dict1.FirstOrDefault(x => x.Value == "QUINOV").Key()

And check if your dictionary its correct

Dictionary<int, string>

CORRECT:
Im just add the () at the end of the method ToList

One example like this issue: